In reply to your contribution on the tasmota github issues :
This is the relevant part from my configuration.yaml
- platform: mqtt
name: "Upstairs"
state_topic: "stat/h80102/RESULT"
state_value_template: "{{ value_json.POWER }}"
command_topic: "cmnd/h80102/POWER"
payload_on: "ON"
payload_off: "OFF"
availability_topic: tele/h80102/LWT
payload_available: "Online"
payload_not_available: "Offline"
rgb_command_topic: "cmnd/h80102/COLOR"
rgb_state_topic: "cmnd/h80102/STATUS11"
rgb_value_template: "{{ value_json.StatusSTS.Color.split(',')[:3] | join(',') }}"
brightness_command_topic: "cmnd/h80102/DIMMER"
brightness_state_topic: "stat/h80102/DIMMER"
brightness_value_template: "{{ value_json.Dimmer }}"
brightness_scale: 100
on_command_type: "brightness"
qos: 0
optimistic: false
retain: false
Also i have this in automations.yaml :
- action:
- alias: read MQTT Power states on start-up
data:
payload: ''
topic: cmnd/h80102/POWER
service: mqtt.publish
condition: []
id: '1519993573961'
trigger:
- event: start
platform: homeassistant