NEWS
ESPHome: mit ESP8266 Funksteckdosen schalten
-
Ich möchte hier beschreiben, wie ich meine Funksteckdosen mit ESPHome geschaltet habe.
Hardware:
ESP8266NOD
433Mhz Funkmodul (Transmitter)
Funksteckdosen "arendo Funkschalterset Mod.-Nr.: 300812" (baugl. mit Brennstuhl). Protokoll: transmit_rc_swich_type_a. Diese Kombination hat zehn Dip-Switches, fünf zum Einstellen der Gruppe (System-Code 1 bis 5) und fünf für die Adressierung der jeweiligen Steckdose (unit-code A bis E).Hier das Listing:
esphome: name: 433mhz esp8266: board: nodemcuv2 # Enable logging logger: # Enable Home Assistant API api: password: !secret api_pw_04 ota: password: !secret ota_pw_04 wifi: ssid: !secret wifi_ssid password: !secret wifi_pw # Manual IP manual_ip: static_ip: meine IP gateway: mein gateway subnet: 255.255.255.0 # Enable fallback hotspot (captive portal) in case wifi connection fails ap: ssid: !secret ap_ssid_04 password: !secret ap_pw_04 captive_portal: # Example configuration entry web_server: port: 80 status_led: pin: number: D0 inverted: true # -------------------------------------------------- # 433Mhz Steckdose remote_transmitter: - id: Mhz pin: GPIO10 # RF uses a 100% carrier signal carrier_duty_percent: 100% switch: #Steckdosen - platform: template id: A name: "Steckdose A" turn_on_action: - remote_transmitter.transmit_rc_switch_type_a: group: '10000' device: '10000' state: on protocol: 1 repeat: times: 10 wait_time: 0s - turn_on_aktion: A turn_off_action: - remote_transmitter.transmit_rc_switch_type_a: group: '10000' device: '10000' state: off protocol: 1 repeat: times: 10 wait_time: 0s - turn_off_aktion: A - platform: template id: B turn_on_action: - remote_transmitter.transmit_rc_switch_type_a: group: '10000' device: '01000' state: on protocol: 1 repeat: times: 10 wait_time: 0s turn_off_action: - remote_transmitter.transmit_rc_switch_type_a: group: '10000' device: '01000' state: off protocol: 1 repeat: times: 10 wait_time: 0s - platform: template id: C turn_on_action: - remote_transmitter.transmit_rc_switch_type_a: group: '10000' device: '00100' state: on protocol: 1 repeat: times: 10 wait_time: 0s turn_off_action: - remote_transmitter.transmit_rc_switch_type_a: group: '10000' device: '00100' state: off protocol: 1 repeat: times: 10 wait_time: 0s
Den GPIO-Pin (Zeile 47) kann man individuell wählen.
Sehr wichtig ist der Eintrag "wait_time: 0s". Dieser Eintrag fehlte im Beispiellisting aus dem Netz und hat mich etwa einen Tag Suche gekostet.