Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- substitutions:
- devicename: sensibo-sky
- devicecode: sensibo_sky
- displayname: Sensibo Sky
- esphome:
- name: $devicename
- friendly_name: $displayname
- on_boot:
- then:
- #Blink status LED twice to show that we have booted
- - light.turn_on: led
- - delay: 100ms
- - light.turn_off: led
- - delay: 100ms
- - light.turn_on: led
- - delay: 100ms
- - light.turn_off: led
- esp8266:
- board: esp_wroom_02
- # Enable logging
- logger:
- # Enable Home Assistant API
- api:
- encryption:
- key: <removed>
- ota:
- password: <removed>
- wifi:
- ssid: !secret wifi_ssid
- password: !secret wifi_password
- # Enable fallback hotspot (captive portal) in case wifi connection fails
- ap:
- ssid: "${displayname} Fallback Hotspot"
- password: <removed>
- use_address: <removed>
- captive_portal:
- i2c:
- sda: 02
- scl: 14
- scan: true
- id: bus_a
- sensor:
- - platform: hdc1080
- temperature:
- id: "${devicecode}_dht_temp"
- name: "Temperature"
- humidity:
- id: "${devicecode}_dht_humidity"
- name: "Humidity"
- update_interval: 60s
- binary_sensor:
- - platform: gpio
- id: button
- name: "Button"
- pin:
- number: 13
- mode: INPUT_PULLUP
- inverted: true
- on_press:
- - light.toggle: led
- light:
- - platform: status_led
- name: "Feedback LED"
- id: led
- output: light_output
- output:
- - id: light_output
- platform: gpio
- pin: 12
- remote_transmitter:
- id: ${devicecode}_ir_tx
- pin: 15
- carrier_duty_percent: 50%
- remote_receiver:
- id: ${devicecode}_ir_rx
- pin:
- number: 4
- inverted: true
- mode: INPUT_PULLUP
- dump: all
- climate:
- - platform: midea_ir
- id: midea_controller
- name: Midea Controller
- receiver_id: ${devicecode}_ir_rx
- transmitter_id: ${devicecode}_ir_tx
- sensor: ${devicecode}_dht_temp
- supports_cool: true
- supports_heat: false
- visual:
- temperature_step: 1
- min_temperature: 17
- max_temperature: 30
- on_control:
- then:
- #Blink status LED to show that command was sent
- - light.turn_on: led
- - delay: 500ms
- - light.turn_off: led
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement