Edit esp-underhouselights.yaml
This commit is contained in:
@@ -304,40 +304,40 @@ mqtt:
|
|||||||
on_message:
|
on_message:
|
||||||
# Relay 1 control
|
# Relay 1 control
|
||||||
- topic: "${mqtt_local_command_topic}/relay1/set"
|
- topic: "${mqtt_local_command_topic}/relay1/set"
|
||||||
payload: "ON"
|
payload: "On"
|
||||||
then:
|
then:
|
||||||
- switch.turn_on: relay1
|
- switch.turn_on: relay1
|
||||||
- topic: "${mqtt_local_command_topic}/relay1/set"
|
- topic: "${mqtt_local_command_topic}/relay1/set"
|
||||||
payload: "OFF"
|
payload: "Off"
|
||||||
then:
|
then:
|
||||||
- switch.turn_off: relay1
|
- switch.turn_off: relay1
|
||||||
|
|
||||||
# Relay 2 control
|
# Relay 2 control
|
||||||
- topic: "${mqtt_local_command_topic}/relay2/set"
|
- topic: "${mqtt_local_command_topic}/relay2/set"
|
||||||
payload: "ON"
|
payload: "On"
|
||||||
then:
|
then:
|
||||||
- switch.turn_on: relay2
|
- switch.turn_on: relay2
|
||||||
- topic: "${mqtt_local_command_topic}/relay2/set"
|
- topic: "${mqtt_local_command_topic}/relay2/set"
|
||||||
payload: "OFF"
|
payload: "Off"
|
||||||
then:
|
then:
|
||||||
- switch.turn_off: relay2
|
- switch.turn_off: relay2
|
||||||
|
|
||||||
# Relay 3 control
|
# Relay 3 control
|
||||||
- topic: "${mqtt_local_command_topic}/relay3/set"
|
- topic: "${mqtt_local_command_topic}/relay3/set"
|
||||||
payload: "ON"
|
payload: "On"
|
||||||
then:
|
then:
|
||||||
- switch.turn_on: relay3
|
- switch.turn_on: relay3
|
||||||
- topic: "${mqtt_local_command_topic}/relay3/set"
|
- topic: "${mqtt_local_command_topic}/relay3/set"
|
||||||
payload: "OFF"
|
payload: "Off"
|
||||||
then:
|
then:
|
||||||
- switch.turn_off: relay3
|
- switch.turn_off: relay3
|
||||||
|
|
||||||
# Relay 4 control
|
# Relay 4 control
|
||||||
- topic: "${mqtt_local_command_topic}/relay4/set"
|
- topic: "${mqtt_local_command_topic}/relay4/set"
|
||||||
payload: "ON"
|
payload: "On"
|
||||||
then:
|
then:
|
||||||
- switch.turn_on: relay4
|
- switch.turn_on: relay4
|
||||||
- topic: "${mqtt_local_command_topic}/relay4/set"
|
- topic: "${mqtt_local_command_topic}/relay4/set"
|
||||||
payload: "OFF"
|
payload: "Off"
|
||||||
then:
|
then:
|
||||||
- switch.turn_off: relay4
|
- switch.turn_off: relay4
|
||||||
Reference in New Issue
Block a user