payload_command: to send the command via payload, user must define a regex filter, and can give the maximum number of characters accepted for security
button: single predefined command
switch: two commands and one optional command for getting the state
sensor: for reading the output of a command. Optional unit of measurement and number of decimals can be set.
binary sensor: getting the exit code of a command
cover: 3 commands and a sensor for simulating a cover :) I need this for my "smart" shutters, I control them with an rpi with rpi-tx
All other changes are related to this.
EntityData: CustomPayload option. For setting the unit of the sensor, and other reasons. You have to send the unit in the autodiscovery message, and it can be set by the user this way.
HomeAssistantWH: Support for CustomPayload, also made it a bit more readable, and on commands with state do not send the state if the entity is optimistic.
Configurator changes:
MenuPreset: I wrote some logic to select which questions to show for which entity types. QuestionPreset is for just making the code more readable and maintainable. Some logic moved here from Configurator
ConfiguratorObject is a base class for entities and warehouses. No more duplicate defs.
Notify, FileSwitch, EntityMQTTWarehouse and Warehouse: changes related to Configurator
Added different type of terminal entities:
payload_command
: to send the command via payload, user must define a regex filter, and can give the maximum number of characters accepted for securitybutton
: single predefined commandswitch
: two commands and one optional command for getting the statesensor
: for reading the output of a command. Optional unit of measurement and number of decimals can be set.binary sensor
: getting the exit code of a commandcover
: 3 commands and a sensor for simulating a cover :) I need this for my "smart" shutters, I control them with an rpi with rpi-txAll other changes are related to this.
EntityData
:CustomPayload
option. For setting the unit of the sensor, and other reasons. You have to send the unit in the autodiscovery message, and it can be set by the user this way.HomeAssistantWH
: Support for CustomPayload, also made it a bit more readable, and on commands with state do not send the state if the entity is optimistic.Configurator changes:
MenuPreset
: I wrote some logic to select which questions to show for which entity types.QuestionPreset
is for just making the code more readable and maintainable. Some logic moved here fromConfigurator
ConfiguratorObject
is a base class for entities and warehouses. No more duplicate defs.Notify
,FileSwitch
,Entity
MQTTWarehouse
andWarehouse
: changes related to ConfiguratorI tested it on linux and windows.