Zum Hauptinhalt springenZur Hauptnavigation springen

Empfohlene Produkte

📦 Das könnte dir gefallen

Ausgewählte Empfehlungen für dein Smart Home Projekt

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

Hier findet Ihr ein Beispiel für einen ESPHome Code passend für einen Sonoff 4-Kanal Schalter.

Danke @derrodi für das bereitstellen des Codes!

Hier findet Ihr den Sonoff 4-CH

[asa2 id=“6424″/]


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 esphome: name: sonoff_4ch_pro # Name of the Node. platform: ESP8266 # Even if the chip is a ESP8285, they have the same family. board: esp01_1m on_boot: priority: -100 then: light.turn_on: id: status_led wifi: ssid: WLAN password: PASSWORT api: logger: ota: # Enable Web server web_server: port: 80 binary_sensor: - platform: gpio on_press: then: - switch.toggle: button_1 pin: number: GPIO0 mode: INPUT_PULLUP inverted: True name: "Sonoff 4CH Button 1" - platform: gpio on_press: then: - switch.toggle: button_2 pin: number: GPIO9 mode: INPUT_PULLUP inverted: True name: "Sonoff 4CH Button 2" - platform: gpio on_press: then: - switch.toggle: button_3 pin: number: GPIO10 mode: INPUT_PULLUP inverted: True name: "Sonoff 4CH Button 3" - platform: gpio on_press: then: - switch.toggle: button_4 pin: number: GPIO14 mode: INPUT_PULLUP inverted: True name: "Sonoff 4CH Button 4" - platform: status name: "Sonoff 4CH Status" switch: - platform: gpio id: button_1 name: "Sonoff 4CH Relay 1" pin: GPIO12 - platform: gpio id: button_2 name: "Sonoff 4CH Relay 2" pin: GPIO5 - platform: gpio id: button_3 name: "Sonoff 4CH Relay 3" pin: GPIO4 - platform: gpio id: button_4 name: "Sonoff 4CH Relay 4" pin: GPIO15 output: - platform: esp8266_pwm id: blue_led pin: GPIO13 inverted: True light: - platform: monochromatic id: status_led name: "Sonoff 4CH Blue LED" output: blue_led

Shopping-Empfehlungen

Passende sensor-Produkte

Weitere empfohlene Produkte für dein Smart Home

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

Artikel teilen

Teilen: