From 5f31d8b1913e54c3587ecaccf672d721e1332622 Mon Sep 17 00:00:00 2001 From: subDesTagesMitExtraKaese Date: Sun, 14 Jul 2024 23:18:46 +0200 Subject: [PATCH] init --- .gitignore | 7 +++++ README.md | 9 +++++++ config.yaml | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 90 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 config.yaml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fbff169 --- /dev/null +++ b/.gitignore @@ -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/ \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..3ef41f8 --- /dev/null +++ b/README.md @@ -0,0 +1,9 @@ +# IR Blaster + +http://ir-blaster.n39.eu + +### Steuerung Monitor + * OK (0x2FD847B) + * Lauter (0x2FD58A7) + * Leiser (0x2FD7887) + * On/Off (0x2FD48B7) \ No newline at end of file diff --git a/config.yaml b/config.yaml new file mode 100644 index 0000000..706fe40 --- /dev/null +++ b/config.yaml @@ -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 \ No newline at end of file