Skip to content
Snippets Groups Projects
Commit bcd04f49 authored by void's avatar void
Browse files
parents b6a61cc7 d4b01c13
No related branches found
No related tags found
No related merge requests found
......@@ -29,6 +29,7 @@
with_items:
- docker-compose.yml
- compile.sh
- config/esphome_alarm.yaml
- config/esphome_dach.yaml
- config/esphome_display01.yaml
- config/esphome_display02.yaml
......
{% set devicename = "esphome_strommesser" %}
{% include "/includes/ansible.inc.yaml" %}
{% include "/includes/board.d1_mini.inc.yaml" %}
{% include "/includes/common.inc.yaml" %}
switch:
- platform: gpio
pin: D2
id: sirene_pin
- platform: gpio
pin: D1
id: blaulicht
name: Blaulicht
- platform: template
name: Sirene
id: sirene
optimistic: true
turn_on_action:
- switch.turn_on: sirene_pin
- delay: 300ms
- switch.turn_off: sirene_pin
- delay: 100ms
# turn self on again if still enabled
- if:
condition:
lambda: 'return id(sirene).state;'
then:
- switch.turn_on: sirene
turn_off_action:
- switch.turn_off: sirene_pin
binary_sensor:
- platform: gpio
pin: D6
name: "Alarm-Button"
id: "alarm_button"
filters:
- delayed_on_off: 300ms
on_release:
then:
- switch.turn_on: sirene
- switch.turn_on: blaulicht
on_press:
then:
- switch.turn_off: sirene
- switch.turn_off: blaulicht
......@@ -21,11 +21,6 @@ logger:
# Enable integrated WebServer
web_server:
port: 80
css_include: "webserver-v1.min.css"
css_url: ""
js_include: "webserver-v1.min.js"
js_url: ""
# Activates prometheus /metrics endpoint
prometheus:
......@@ -34,4 +29,4 @@ prometheus:
mqtt:
broker: 192.168.0.201
discovery: false
topic_prefix: "ESPHome/{{ devicename }}"
\ No newline at end of file
topic_prefix: "ESPHome/{{ devicename }}"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment