Optional
brightnessFlag that defines if the light supports setting the brightness BUG: This seems to be ignored by Home Assistant
Optional
colorFlag that defines if the light supports color mode
Readonly
componentOne of the supported MQTT components, for instance binary_sensor
Optional
deviceInformation about the device this sensor belongs to
Optional
deviceSets the class of the device, changing the device state and icon that is displayed on the frontend.
Optional
effectFlag that defines if the light supports effects
Optional
effectList of supported effects. Required if effect is set
Optional
enabledFlag which defines if the entity should be enabled when first added.
Optional
entityClassification of a non-primary entity.
Optional
expireIf set, it defines the number of seconds after the sensor’s state expires, if it’s not updated. After expiry, the sensor’s state becomes unavailable. Default the sensors state never expires.
Optional
forceSends update events even if the value hasn’t changed. Useful if you want to have meaningful value graphs in history.
Optional
iconIcon of the entity
Name of the sensor inside Home Assistant
Optional
objectSet this to generate the entity_id
in HA instead of using name
Optional
optimisticFlag that defines if light works in optimistic mode. Default: true if no state_topic defined, else false.
The payload that represents off state. If specified, will be used for both comparing to the value in the state_topic (see value_template and state_off for details) and sending as off command to the command_topic
The payload that represents on state. If specified, will be used for both comparing to the value in the state_topic (see value_template and state_on for details) and sending as on command to the command_topic.
Optional
qosThe maximum QoS level to be used when receiving messages.
Optional
retainIf the published message should have the retain flag on or not
Sets the schema of the state topic, ie the 'schema' field in the configuration
Optional
stateThe MQTT topic subscribed to receive state updates.
Optional
supportedList of supported color modes. See https://www.home-assistant.io/integrations/light.mqtt/#supported_color_modes for current list of supported modes. Required if color_mode is set
Optional
uniqueSet this to enable editing sensor from the HA ui and to integrate with a device
Generates a JSON object that can be used as an MQTT payload.
Protected
propertyMapping of class properties to MQTT payload keys.
Static
createStatic
wholeValidates that uniqueId
is set if device
is provided.
Light specific information