
Philips Hue White and Color Ambiance Play Lightbar 2-er Pack, schwarz, bis zu 16 Millionen Farben, steuerbar via App, kompatibel mit Amazon Alexa
Unverb. Preisempf.: 139,99 € (70,00 € / stück)
102,99 € (51,50 € / stück)Sie sparen 37,00 € (26%)
Arek Swistak war so nett ein Beispiel für eine ESPHome Automatisierung mit uns zu teilen, die nur ausgeführt wird, wenn der hinterlegte MQTT-Broker nicht erreichbar ist.
Danke dafür!
binary_sensor:
- platform: gpio
pin:
number: GPIO5
name: "Schalter"
on_state:
if:
condition:
mqtt.connected:
then:
- logger.log: Mqtt is connected!
else:
- light.toggle: schalter_id
internal: true
output:
- platform: gpio
pin: GPIO4
id: lampe
mqtt:
broker: broker ip
username: "user"
password: "passwordmqtt"