Advertisement
Guest User

Sensibo Sky Midea

a guest
Apr 12th, 2024
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 2.35 KB | None | 0 0
  1. substitutions:
  2.   devicename: sensibo-sky
  3.   devicecode: sensibo_sky
  4.   displayname: Sensibo Sky
  5.  
  6. esphome:
  7.   name: $devicename
  8.   friendly_name: $displayname
  9.  
  10.   on_boot:
  11.     then:
  12.       #Blink status LED twice to show that we have booted
  13.       - light.turn_on: led
  14.       - delay: 100ms
  15.       - light.turn_off: led
  16.       - delay: 100ms
  17.       - light.turn_on: led
  18.       - delay: 100ms
  19.       - light.turn_off: led
  20.  
  21. esp8266:
  22.   board: esp_wroom_02
  23.  
  24. # Enable logging
  25. logger:
  26. # Enable Home Assistant API
  27. api:
  28.   encryption:
  29.     key: <removed>
  30. ota:
  31.   password: <removed>
  32. wifi:
  33.   ssid: !secret wifi_ssid
  34.   password: !secret wifi_password
  35.  
  36.   # Enable fallback hotspot (captive portal) in case wifi connection fails
  37.   ap:
  38.     ssid: "${displayname} Fallback Hotspot"
  39.     password: <removed>
  40.   use_address: <removed>
  41. captive_portal:
  42.    
  43. i2c:
  44.   sda: 02
  45.   scl: 14
  46.   scan: true
  47.   id: bus_a
  48.  
  49. sensor:
  50.   - platform: hdc1080
  51.     temperature:
  52.       id: "${devicecode}_dht_temp"
  53.       name: "Temperature"
  54.     humidity:
  55.       id: "${devicecode}_dht_humidity"
  56.       name: "Humidity"
  57.     update_interval: 60s
  58.  
  59. binary_sensor:
  60.   - platform: gpio
  61.     id: button
  62.     name: "Button"
  63.     pin:
  64.       number: 13
  65.       mode: INPUT_PULLUP
  66.       inverted: true
  67.     on_press:
  68.       - light.toggle: led
  69.  
  70. light:
  71.   - platform: status_led
  72.     name: "Feedback LED"
  73.     id: led
  74.     output: light_output
  75.  
  76. output:
  77.   - id: light_output
  78.     platform: gpio
  79.     pin: 12
  80.  
  81. remote_transmitter:
  82.   id: ${devicecode}_ir_tx
  83.   pin: 15
  84.   carrier_duty_percent: 50%
  85.  
  86. remote_receiver:
  87.   id: ${devicecode}_ir_rx
  88.   pin:
  89.    number: 4
  90.    inverted: true
  91.    mode: INPUT_PULLUP
  92.   dump: all
  93.  
  94. climate:
  95.   - platform: midea_ir
  96.     id: midea_controller
  97.     name: Midea Controller
  98.     receiver_id: ${devicecode}_ir_rx
  99.     transmitter_id: ${devicecode}_ir_tx
  100.     sensor: ${devicecode}_dht_temp
  101.     supports_cool: true
  102.     supports_heat: false
  103.     visual:
  104.       temperature_step: 1
  105.       min_temperature: 17
  106.       max_temperature: 30
  107.     on_control:
  108.       then:
  109.         #Blink status LED to show that command was sent
  110.         - light.turn_on: led
  111.         - delay: 500ms
  112.         - light.turn_off: led
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement