
DERUC Geeetech Acryl Prusa 3D Drucker DIY Kit Pro B Einfache Montage Prusa I3 Acryl-3D-Drucker kit
--
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"