-
-
Notifications
You must be signed in to change notification settings - Fork 17
HA_Impulso
Roncoa edited this page Jan 12, 2019
·
1 revision
light: # o switch:
- platform: mqtt
name: "Nome che volete"
command_topic: "Impulso/1"
payload_on: "on"
payload_off: "off"
state_topic: "Impulso/1/ack"
value_template: "{{value_json.STATO}}"
availability_topic: "123456789012"
qos: 0
retain: false
optimistic: 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