78 lines
No EOL
1.6 KiB
YAML
78 lines
No EOL
1.6 KiB
YAML
esphome:
|
|
name: ir-blaster
|
|
platform: ESP8266
|
|
board: d1_mini
|
|
|
|
wifi:
|
|
networks:
|
|
- ssid: "NETZ39"
|
|
password: !secret WifiPassword
|
|
|
|
# Enable logging
|
|
logger:
|
|
level: INFO
|
|
|
|
# Enable Web server
|
|
web_server:
|
|
port: 80
|
|
|
|
# Enable Home Assistant API
|
|
#api:
|
|
# reboot_timeout: 0s
|
|
# encryption:
|
|
# key: ""
|
|
|
|
mqtt:
|
|
broker: mqtt.n39.eu
|
|
port: 1883
|
|
|
|
ota:
|
|
- platform: esphome
|
|
password: !secret OtaPassword
|
|
|
|
time:
|
|
- platform: sntp
|
|
id: sntp_time
|
|
servers:
|
|
- ptbtime1.ptb.de
|
|
- ptbtime2.ptb.de
|
|
- ptbtime3.ptb.de
|
|
|
|
button:
|
|
- platform: template
|
|
name: Casio Power Button
|
|
on_press:
|
|
- remote_transmitter.transmit_nec:
|
|
address: 0xF484
|
|
command: 0xF40B
|
|
command_repeats: 3
|
|
- platform: template
|
|
name: "Monitor An/Aus"
|
|
on_press:
|
|
- remote_transmitter.transmit_lg:
|
|
data: 0x02FD48B7 # power on/off
|
|
nbits: 32
|
|
- platform: template
|
|
name: "Ventilator An/Aus"
|
|
on_press:
|
|
- remote_transmitter.transmit_pronto:
|
|
data: "0000 006D 0018 0000 002E 0013 002E 0013 000E 0034 002D 0013 002E 0013 000E 0034 000D 0034 000D 0034 000D 0034 000D 0034 000D 0034 002E 0117 002E 0013 002E 0013 000E 0034 002E 0013 002E 0013 000E 0034 000D 0034 000D 0034 000D 0034 000D 0034 000D 0034 002E 0181 06C3"
|
|
|
|
remote_receiver:
|
|
pin:
|
|
number: GPIO2
|
|
inverted: True
|
|
dump: all
|
|
|
|
remote_transmitter:
|
|
pin: GPIO04
|
|
# Infrared remotes use a 50% carrier signal
|
|
carrier_duty_percent: 50%
|
|
|
|
sensor:
|
|
# Extra sensor to keep track of plug uptime
|
|
- platform: uptime
|
|
name: Uptime Sensor
|
|
- platform: wifi_signal
|
|
name: "WiFi Signal Sensor"
|
|
update_interval: 60s |