Skip to content

Instantly share code, notes, and snippets.

@davehng
Last active October 24, 2023 08:41
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davehng/1c83cbbe75e0e034eedffd3d6f679e0c to your computer and use it in GitHub Desktop.
Save davehng/1c83cbbe75e0e034eedffd3d6f679e0c to your computer and use it in GitHub Desktop.
esphome:
name: "sensibo-sky"
esp8266:
board: esp01_1m
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
captive_portal:
substitutions:
devicecode: "sensibo_sky"
devicename: "sensibo-sky"
# see https://www.reddit.com/r/Esphome/comments/q1cwsu/converting_a_sensibo_sky_to_esphome/ for more info
# sensibo i2c pins
i2c:
sda: 02
scl: 14
scan: true
id: bus_a
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: true
pullup: true
sensor:
- platform: hdc1080
temperature:
id: ${devicecode}_dht_temp
name: ${devicename} Temperature
filters:
- offset: -2.0 # hdc1080 is reading about 2C above ambient so reduce by this offset
humidity:
id: ${devicecode}_dht_humidity
name: ${devicename} Humidity
update_interval: 60s
output:
- id: ${devicecode}_light_output
platform: esp8266_pwm
frequency: 1000 Hz
pin: 12
light:
- platform: monochromatic
name: "Sensibo LED"
id: ${devicecode}_led
output: ${devicecode}_light_output
climate:
- platform: fujitsu_general # change to the platform for your air conditioners
id: ${devicecode}
name: ${devicename} Controller
receiver_id: ${devicecode}_ir_rx
transmitter_id: ${devicecode}_ir_tx
sensor: ${devicecode}_dht_temp
supports_cool: true
supports_heat: true
on_state:
then: # dim up and down the LED to show state changes, n.b. at the moment this triggers when any state changes including temp changes
- light.turn_on:
id: ${devicecode}_led
transition_length: 0.2s
brightness: 100%
- delay: 0.6s
- light.turn_off:
id: ${devicecode}_led
transition_length: 0.2s
@erumaithi
Copy link

the code is not compiling and giving an error because of the action delay on the line 87 after the esp home update.

@davehng
Copy link
Author

davehng commented Oct 24, 2023

the code is not compiling and giving an error because of the action delay on the line 87 after the esp home update.

Lines 81 to 90 can be removed - they're just cosmetic changes to make the LED dim up and down. I'll update this gist later on to take this out.

@erumaithi
Copy link

can we have LED flashing for sending the IR command ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment