Changes:
- New power switch (can be changed back to a button in the device configuration)
- New
set_valueservice for controllable sensors - An error is raised when the value of a controllable sensor was not set correctly
- Improved turn off/restart logic
- Turn off/restart raises an error if the command exit code is greater than 0
- Update entities can be selected when using
poll_sensorservice - Error messages are included in the
poll_sensorservice response - When polling sensors of the same command, the command is only executed once
- Network/SSH status sensors are always available
- Pipe status is not checked anymore when invoke shell is enabled (same as without invoke shell)
- All sensors are reset when the device goes offline or an error occures
- All sensors (also those without interval) are polled on the first successful update after a reset
- In disconnect mode, SSH only disconnects when no commands are waiting to be executed
- Device info displays total memory in MB if it's less then 1 GB
- Device status keeps updating after an authentication error
- Leading/trailing spaces are removed from names and keys of action commands/sensors
- Requires Home Assistant 2024.4.4 or newer
Fixed Bugs:
- Child sensor entity ID is generated from ID instead of name
- Command loops are detected correctly in device configuration
Default commands changes (Linux):
- New sensor command for
os_releaseto get pretty name from/etc/os-releaseto show in device info - Sensor command for
network_interfaceusesiporroutecommand - Sensor command for
cpu_loadusesvmstatinstead oftop - Commands for the following sensors should now return an error code if they fail:
network_interface,device_name,device_model,manufacturer,serial_number,cpu_name,cpu_cores,cpu_hardware,cpu_model,total_memory,free_memory,free_disk_space,cpu_load
To update the default commands of existing devices, please select Reset commands in the device configuration!