pin:
number: GPIO15
inverted: true
+ on_turn_on:
+ then:
+ - mqtt.publish_json:
+ topic: domoticz/in
+ payload: |-
+ root["command"] = "udevice";
+ root["idx"] = 516;
+ root["nvalue"] = 1;
+ on_turn_off:
+ then:
+ - mqtt.publish_json:
+ topic: domoticz/in
+ payload: |-
+ root["command"] = "udevice";
+ root["idx"] = 516;
+ root["nvalue"] = 0;
- platform: gpio
id: pool_pump
pin:
number: GPIO16
inverted: true
+ on_turn_on:
+ then:
+ - mqtt.publish_json:
+ topic: domoticz/in
+ payload: |-
+ root["command"] = "udevice";
+ root["idx"] = 518;
+ root["nvalue"] = 1;
+ on_turn_off:
+ then:
+ - mqtt.publish_json:
+ topic: domoticz/in
+ payload: |-
+ root["command"] = "udevice";
+ root["idx"] = 518;
+ root["nvalue"] = 0;
- platform: gpio
id: pool_light
pin:
number: GPIO4
inverted: true
+ on_turn_on:
+ then:
+ - mqtt.publish_json:
+ topic: domoticz/in
+ payload: |-
+ root["command"] = "udevice";
+ root["idx"] = 515;
+ root["nvalue"] = 1;
+ on_turn_off:
+ then:
+ - mqtt.publish_json:
+ topic: domoticz/in
+ payload: |-
+ root["command"] = "udevice";
+ root["idx"] = 515;
+ root["nvalue"] = 0;
- platform: gpio
id: shed_fan
pin:
number: GPIO32
inverted: true
+ on_turn_on:
+ then:
+ - mqtt.publish_json:
+ topic: domoticz/in
+ payload: |-
+ root["command"] = "udevice";
+ root["idx"] = 517;
+ root["nvalue"] = 1;
+ on_turn_off:
+ then:
+ - mqtt.publish_json:
+ topic: domoticz/in
+ payload: |-
+ root["command"] = "udevice";
+ root["idx"] = 517;
+ root["nvalue"] = 0;