I have a MQTT/Tasmota basd Dimmer Switch.
I have used the following code to place in my MQTT file.
- platform: mqtt
name: "Dimmer Office"
state_topic: "stat/dimmer_office/POWER"
command_topic: "cmnd/dimmer_office/POWER"
availability_topic: "tele/dimmer_office/LWT"
brightness_state_topic: "stat/dimmer_office/RESULT"
brightness_command_topic: "cmnd/dimmer_office/Dimmer"
brightness_scale: 100
brightness_value_template: "{{ value_json.Dimmer }}"
qos: 1
payload_on: "ON"
payload_off: "OFF"
payload_available: "Online"
payload_not_available: "Offline"
retain: false
But after a config check it gives me the following error.
Invalid config for [switch.mqtt]: [brightness_state_topic] is an invalid option for [switch.mqtt]. Check: switch.mqtt->brightness_state_topic. (See ?, line ?).
Can someone explain firstly what I have done incorrectly and then how to fix it.
Thanks