Zum Hauptinhalt springenZur Hauptnavigation springen

Empfohlene Produkte

📦 Empfohlene Gadgets

Ausgewählte Empfehlungen für dein Smart Home Projekt

Lädt Produkte... (sensor → smartswitch → led → camera)

Hier findet Ihr ein Beispiel, wie der Sonoff Touch (2-Kanal Variante) zum steuern eurer elektrischen Jalousiemotoren verwendet werden kann.

Alle Details zur Pinbelegung oder wie man den Wandschalter als einfachen Lichtschalter nutzen kann, könnt Ihr unter folgendem Link nachlesen:
/wiki/esphome/sonoff-touch-2-kanal-wandschalter-t0eu2c/

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 esphome: name: t0_schalter_Jalousie platform: ESP8266 board: esp01_1m wifi: ssid: !secret WLanSSID password: !secret WLanPassword ap: ssid: "Sonoff T1 Ch2 Fallback Hotspot" password: "123456789" captive_portal: logger: api: ota: binary_sensor: - platform: gpio pin: number: GPIO0 mode: INPUT_PULLUP inverted: True id: button_1 on_press: then: - lambda: | if (id(my_cover).current_operation == COVER_OPERATION_IDLE) { id(my_cover).open(); } else { id(my_cover).stop(); } - platform: gpio pin: number: GPIO9 mode: INPUT_PULLUP inverted: True id: button_2 on_press: then: - lambda: | if (id(my_cover).current_operation == COVER_OPERATION_IDLE) { id(my_cover).close(); } else { id(my_cover).stop(); } - platform: status name: "Jalousie Status" switch: - platform: gpio name: "Jalousie rauf" pin: GPIO12 interlock: &interlock [open_cover, close_cover] id: open_cover on_turn_on: - script.execute: switch_open_cover_off - platform: gpio name: "Jalousie runter" pin: GPIO5 interlock: *interlock id: close_cover on_turn_on: - script.execute: switch_close_cover_off cover: - platform: time_based name: "Jalousie" id: my_cover open_action: - switch.turn_on: open_cover open_duration: 22s close_action: - switch.turn_on: close_cover close_duration: 20s stop_action: - switch.turn_off: open_cover - switch.turn_off: close_cover status_led: pin: number: GPIO13 inverted: yes script: - id: switch_open_cover_off mode: restart then: - delay: 1min - switch.turn_off: open_cover - id: switch_close_cover_off mode: restart then: - delay: 1min - switch.turn_off: close_cover

Shopping-Empfehlungen

Passende sensor-Produkte

Weitere empfohlene Produkte für dein Smart Home

Lädt Produkte... (sensor → smartswitch → led → camera)

Artikel teilen

Teilen: