You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
light: # o switch:
- platform: mqttname: "Nome che volete"command_topic: "Interruttore/1"payload_on: "on"payload_off: "off"state_topic: "Interruttore/1/ack"value_template: "{{value_json.STATO}}"availability_topic: "123456789012"qos: 0retain: falseoptimistic: false
si puo' usare anche come switch:
nel campo "command_topic" mettere il topic che avete impostato nel firmware
nel campo "state_topic" mettere lo stesso valore del campo "command_topic" + "/ack"
nel campo "availability_topic" al posto di "123456789012" mettere il MacAddress dell'ESP (12 caratteri in minuscolo senza ':') oppure il valore che avete impostato nel campo "WillTopic" nel firmware