The configuration type specific to this component
The type of state data this component can handle
Creates a new subscribable entity
The component settings including MQTT configuration
Array of state topic names
Callback function to handle state changes
Array of command topic names
Callback function to handle received commands
Protected
attributesMQTT topic for entity attributes
Protected
availabilityMQTT topic for entity availability status
Protected
baseBase MQTT topic name for this entity
Protected
commandList of MQTT topics for entity commands.
Protected
componentThe component configuration containing entity-specific settings
Protected
configMQTT topic for entity configuration
Protected
identifierUnique identifier for this entity
Protected
loggerLogger instance for debugging and error reporting
Protected
mqttThe MQTT client instance used for communication
Protected
settingsThe component settings including MQTT configuration
Protected
stateCallback function to handle state changes
Protected
stateList of MQTT topics for entity state
Protected
wroteFlag indicating whether configuration has been written to MQTT
Protected
getGets the complete configuration for this entity including command topic
The resolved component configuration with all required MQTT topics
Sets additional attributes for the entity
Key-value pairs of attributes to set
Sets the availability state of the entity
True if the entity is available, false otherwise
Writes the entity's configuration to MQTT for Home Assistant discovery Also sets the entity's initial availability state if not manually managed
A base class for Home Assistant MQTT entities that can receive commands. Extends Discoverable to add command handling capabilities.
Type Param: TCommandMessage
Type of command messages this component can receive