init
This commit is contained in:
commit
5f31d8b191
3 changed files with 90 additions and 0 deletions
7
.gitignore
vendored
Normal file
7
.gitignore
vendored
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
# Gitignore settings for ESPHome
|
||||||
|
# This is an example and may include too much for your use-case.
|
||||||
|
# You can modify this file to suit your needs.
|
||||||
|
/.esphome/
|
||||||
|
/secrets.yaml
|
||||||
|
|
||||||
|
/venv/
|
9
README.md
Normal file
9
README.md
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
# IR Blaster
|
||||||
|
|
||||||
|
http://ir-blaster.n39.eu
|
||||||
|
|
||||||
|
### Steuerung Monitor
|
||||||
|
* OK (0x2FD847B)
|
||||||
|
* Lauter (0x2FD58A7)
|
||||||
|
* Leiser (0x2FD7887)
|
||||||
|
* On/Off (0x2FD48B7)
|
74
config.yaml
Normal file
74
config.yaml
Normal file
|
@ -0,0 +1,74 @@
|
||||||
|
esphome:
|
||||||
|
name: ir-blaster
|
||||||
|
platform: ESP8266
|
||||||
|
board: d1_mini
|
||||||
|
|
||||||
|
wifi:
|
||||||
|
networks:
|
||||||
|
- ssid: "NETZ39"
|
||||||
|
password: "MarvinIsHappy"
|
||||||
|
|
||||||
|
# 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: "radish-lavish-subtly"
|
||||||
|
|
||||||
|
time:
|
||||||
|
- platform: sntp
|
||||||
|
id: sntp_time
|
||||||
|
servers:
|
||||||
|
- ptbtime1.ptb.de
|
||||||
|
- ptbtime2.ptb.de
|
||||||
|
- ptbtime3.ptb.de
|
||||||
|
|
||||||
|
switch:
|
||||||
|
- platform: template
|
||||||
|
name: Casio Power Button
|
||||||
|
turn_on_action:
|
||||||
|
- remote_transmitter.transmit_nec:
|
||||||
|
address: 0x84f4
|
||||||
|
command: 0x0bf4
|
||||||
|
command_repeats: 3
|
||||||
|
- platform: template
|
||||||
|
name: "Monitor An/Aus"
|
||||||
|
turn_on_action:
|
||||||
|
- remote_transmitter.transmit_lg:
|
||||||
|
data: 0x02FD48B7 # power on/off
|
||||||
|
nbits: 32
|
||||||
|
|
||||||
|
|
||||||
|
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
|
Loading…
Reference in a new issue