93 lines
1.6 KiB
Plaintext
93 lines
1.6 KiB
Plaintext
substitutions:
|
|
esp_name: "ir-004-c3"
|
|
|
|
external_components:
|
|
- source: github://Jorre05/remote_receiver
|
|
components: [ remote_receiver ]
|
|
|
|
esphome:
|
|
name: ${esp_name}
|
|
comment: ${esp_name}
|
|
|
|
esp32:
|
|
variant: ESP32C3
|
|
board: esp32dev
|
|
framework:
|
|
type: esp-idf
|
|
sdkconfig_options:
|
|
CONFIG_BT_BLE_50_FEATURES_SUPPORTED: y
|
|
CONFIG_BT_BLE_42_FEATURES_SUPPORTED: y
|
|
CONFIG_ESP_TASK_WDT_TIMEOUT_S: "10"
|
|
|
|
|
|
# Enable logging
|
|
logger:
|
|
baud_rate: 0
|
|
|
|
# uart:
|
|
# rx_pin: GPIO3
|
|
# tx_pin: GPIO1
|
|
# baud_rate: 9600
|
|
|
|
# Enable Home Assistant API
|
|
api:
|
|
encryption:
|
|
key: !secret hvac_woonkamer_api
|
|
|
|
ota:
|
|
password: !secret hvac_woonkamer_ota
|
|
|
|
wifi:
|
|
ssid: !secret wifi_ssid
|
|
password: !secret wifi_password
|
|
|
|
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
|
ap:
|
|
ssid: ${esp_name} fallback
|
|
password: !secret fallback_password
|
|
|
|
#bluetooth_proxy:
|
|
|
|
time:
|
|
- platform: homeassistant
|
|
id: homeassistant_time
|
|
|
|
remote_transmitter:
|
|
pin: GPIO3
|
|
carrier_duty_percent: 50%
|
|
|
|
status_led:
|
|
pin: GPIO18
|
|
|
|
remote_receiver:
|
|
id: rcvr
|
|
pin:
|
|
number: GPIO19 #ESP32-C3 #GPIO5 ESP8266
|
|
inverted: true
|
|
# mode:
|
|
# input: true
|
|
# pullup: true
|
|
tolerance: 55%
|
|
dump: all
|
|
|
|
climate:
|
|
- platform: fujitsu_general
|
|
name: "Airco"
|
|
receiver_id: rcvr
|
|
|
|
# binary_sensor:
|
|
# - platform: gpio
|
|
# name: "Button"
|
|
# id: button
|
|
# pin:
|
|
# number: GPIO5
|
|
# mode: INPUT_PULLUP
|
|
# inverted: True
|
|
|
|
|
|
#GPIO4 - status (ESP32-C3 = GPIO18)
|
|
#GPIO5 - IR rcvr. (ESP32-C3 = GPIO19)
|
|
#GPIO14 - IR tx (ESP32-C3 = GPIO3)
|
|
#GPIO13 - button. (ESP32-C3 = GPIO5)
|
|
#GPIO2 - strapping to 3v3 (ESP32-C3 specific)
|