Die „date:“ Abschnitte unten sind stark verkürzte Beispieleinträge. Hier benötigt ihr wie im Video erklärt die von euch ausgelesenen Codes.

esphome:
    name: irreciever
    platform: esp32
    board: az-delivery-devkit-v4
  
  # Enable logging
  logger:
  
  # Enable Home Assistant API
  api:
    encryption:
      key: "encryptionKey"
  
  ota:
    password: "OTApassword"
  
  wifi:
    ssid: !secret wifi_ssid
    password: !secret wifi_password
  
    # Enable fallback hotspot (captive portal) in case wifi connection fails
    ap:
      ssid: "Fallback Hotspot SSID"
      password: "FHpassoword"
  
  captive_portal:

remote_receiver:
  pin:
    number: GPIO016
    inverted: true
  dump: pronto

remote_transmitter:
  pin: GPIO17
  carrier_duty_percent: 50%

switch:
  - platform: template
    name: "Anlage Toggle send"
    id: anlage_toggle_send
    turn_on_action:
      remote_transmitter.transmit_pronto:
        data: "0000 006D 0022 0000 015D 00AC 0018 0016 0016 0040 0017 0040 0017 0015 0015 0016 0015 0016 0016 0016"

  - platform: template
    name: "Anlage Plus send"
    id: anlage_plus_send
    turn_on_action:
      remote_transmitter.transmit_pronto:
        data: "0000 006D 0022 0000 015B 00AD 0016 0016 0016 0041 0015 0042 0015 0017 0014 0018 0016 0015 0016 0016"

  - platform: template
    name: "Anlage Minus send"
    id: anlage_minus_send
    turn_on_action:
      remote_transmitter.transmit_pronto:
        data: "0000 006D 0022 0000 015A 00AD 0015 0017 0016 0041 0016 0041 0014 0017 0013 0018 0014 0016 0015 0016"

binary_sensor:
  - platform: remote_receiver
    name: "Lautstärke Plus"
    pronto:
      data: "0000 006D 0027 0000 00AE 00AB 0013 0014 0012 0014 0013 0013 0012 0014 0013 003A 0013 003A 0012 0014 0013"
    on_state:
      then:
        - delay: 2s
        - switch.turn_on: anlage_plus_send

  - platform: remote_receiver
    name: "Lautstärke Minus"
    pronto:
      data: "0000 006D 0027 0000 00AC 00AD 0012 0014 0012 0014 0012 0014 0012 0014 0012 003A 0012 003B 0012 0014 0012"
    on_state:
      then:
        - delay: 2s
        - switch.turn_on: anlage_minus_send

  - platform: remote_receiver
    name: "Anlage Toggle"
    pronto:
      data: "0000 006D 0022 0000 015A 00AE 0016 0015 0016 0015 0016 0015 0014 0016 0016 0015 0016 0040 0016 0040 0015"
    on_state:
      then:
        - delay: 2s
        - switch.turn_on: anlage_toggle_send

Diesen Beitrag teilen: