--- substitutions: name: "sensiboo" friendly_name: "Sensiboo" static_ip: 10.18.44.205 packages: board: !include boards/esp_wroom_02.yaml base: !include common/base.yaml esphome: name: ${name} friendly_name: ${friendly_name} on_boot: then: - delay: !lambda "return 500;" - light.turn_on: led api: on_client_connected: then: # Blink three times - light.turn_off: led - delay: !lambda "return 300;" - light.turn_on: led - delay: !lambda "return 300;" - light.turn_off: led - delay: !lambda "return 300;" - light.turn_on: led - delay: !lambda "return 300;" - light.turn_off: led - delay: !lambda "return 300;" - light.turn_on: led i2c: sda: 02 scl: 14 scan: true id: bus_a # switch: # - platform: template # name: "Raw Code Sender" # turn_on_action: # - remote_transmitter.transmit_raw: # carrier_frequency: 38kHz # code: 0x88 sensor: - platform: hdc1080 temperature: name: "Temperature" humidity: name: "Humidity" update_interval: 60s binary_sensor: - platform: gpio name: "Button" pin: number: 13 mode: INPUT_PULLUP inverted: true on_press: - button.press: kefmute # - light.toggle: led remote_transmitter: pin: 15 carrier_duty_percent: 50% remote_receiver: pin: number: 4 inverted: true mode: INPUT_PULLUP dump: all light: - platform: binary name: "LED" id: led output: light_output output: - id: light_output platform: gpio pin: 12 button: - platform: template name: "KEF Power On/Off" id: kefpower on_press: then: - logger.log: kefpower triggered - remote_transmitter.transmit_nec: address: 0x7F80 command: 0xFD02 repeat: times: 2 - platform: template name: KEF Change Input id: kefinput on_press: then: - logger.log: kefinput triggered - remote_transmitter.transmit_nec: address: 0x7F80 command: 0xE51A repeat: times: 3 - platform: template name: KEF Lower Volume id: keflowvol on_press: then: - logger.log: keflowvol triggered - remote_transmitter.transmit_nec: address: 0x7F80 command: 0xFA05 repeat: times: 3 - platform: template name: KEF Higher Volume id: kefhighvol on_press: then: - logger.log: kefhighvol triggered - remote_transmitter.transmit_nec: address: 0x7F80 command: 0xF906 repeat: times: 3 - platform: template name: KEF Volume Mute id: kefmute on_press: then: - logger.log: kefmute triggered - remote_transmitter.transmit_nec: address: 0x7F80 command: 0xFB04 repeat: times: 3 - platform: template name: "KEF Play/Pause" id: kefplaypause on_press: then: - logger.log: kefplaypause triggered - remote_transmitter.transmit_nec: address: 0x7F80 command: 0xE718 repeat: times: 3 - platform: template name: KEF Backward id: kefback on_press: then: - logger.log: kefback triggered - remote_transmitter.transmit_nec: address: 0x7F80 command: 0xB44B repeat: times: 3 - platform: template name: KEF Forward id: kefforward on_press: then: - logger.log: kefforward triggered - remote_transmitter.transmit_nec: address: 0x7F80 command: 0xB54A repeat: times: 3