Edit esp-officeusbhubpower.yaml
This commit is contained in:
@@ -203,12 +203,12 @@ binary_sensor:
|
||||
on_press:
|
||||
- mqtt.publish:
|
||||
topic: "${mqtt_status_topic}"
|
||||
payload: "ON"
|
||||
payload: "On"
|
||||
retain: false
|
||||
on_release:
|
||||
- mqtt.publish:
|
||||
topic: "${mqtt_status_topic}"
|
||||
payload: "OFF"
|
||||
payload: "Off"
|
||||
retain: false
|
||||
|
||||
#:########################################################################################:#
|
||||
@@ -229,11 +229,11 @@ status_led:
|
||||
mqtt:
|
||||
on_message:
|
||||
- topic: "${mqtt_command_topic}"
|
||||
payload: "ON"
|
||||
payload: "On"
|
||||
then:
|
||||
- switch.turn_on: relay1
|
||||
|
||||
- topic: "${mqtt_command_topic}"
|
||||
payload: "OFF"
|
||||
payload: "Off"
|
||||
then:
|
||||
- switch.turn_off: relay1
|
||||
|
||||
Reference in New Issue
Block a user