diff --git a/esphome/esp8266-roomnode-gang-beneden.yaml b/esphome/esp8266-roomnode-gang-beneden.yaml deleted file mode 100644 index 4bfae96..0000000 --- a/esphome/esp8266-roomnode-gang-beneden.yaml +++ /dev/null @@ -1,21 +0,0 @@ -substitutions: - device_name: 'esp8266-roomnode-gang-beneden' - friendly_name: 'Roomnode Gang (Beneden)' - room: 'Gang (Beneden)' - -esp8266: - board: d1_mini - -packages: - base_config: !include ./shared/base_config.yaml - wifi: !include ./shared/wifi.yaml - api: !include ./shared/api.yaml - metrics: !include ./shared/metrics.yaml - i2c: !include ./shared/i2c.yaml - - roomnode: !include ./lib/roomnode.yaml - -sensor: - - platform: bh1750 - address: 0x23 - name: "${room} Illuminance" diff --git a/esphome/esp8266-roomnode-tv-kamer.yaml b/esphome/esp8266-roomnode-tv-kamer.yaml deleted file mode 100644 index 44ff7e7..0000000 --- a/esphome/esp8266-roomnode-tv-kamer.yaml +++ /dev/null @@ -1,16 +0,0 @@ -substitutions: - device_name: 'esp8266-roomnode-tv-kamer' - friendly_name: 'Roomnode TV Kamer' - room: 'TV Kamer' - -esp8266: - board: nodemcuv2 - -packages: - base_config: !include ./shared/base_config.yaml - wifi: !include ./shared/wifi.yaml - api: !include ./shared/api.yaml - metrics: !include ./shared/metrics.yaml - i2c: !include ./shared/i2c.yaml - - roomnode: !include ./lib/roomnode.yaml diff --git a/esphome/esp8266-siren-buzzer.yaml b/esphome/esp8266-siren-buzzer.yaml deleted file mode 100644 index 824a58b..0000000 --- a/esphome/esp8266-siren-buzzer.yaml +++ /dev/null @@ -1,112 +0,0 @@ -substitutions: - device_name: 'esp8266-siren-buzzer' - friendly_name: 'Sirene Gang (Beneden)' - -esp8266: - board: d1_mini - -packages: - base_config: !include ./shared/base_config.yaml - wifi: !include ./shared/wifi.yaml - api: !include ./shared/api.yaml - metrics: !include ./shared/metrics.yaml - -globals: - - id: sound_alarm - type: std::string - initial_value: '"PoliceSiren:d=2,o=5,b=160:g,c6,g,c6,g,c6,g,c6,g,c6,g,c6,g,c6,g,c6,g,c6,g,c6,g,c6,g,c6"' - -output: - - platform: esp8266_pwm - pin: D1 - id: buzzer_output - -rtttl: - output: buzzer_output - -script: - - id: loop_alarm - then: - - while: - condition: - - lambda: 'return true;' - then: - - rtttl.play: - rtttl: !lambda 'return id(sound_alarm);' - - wait_until: - - not: - rtttl.is_playing - - - id: loop_beep - then: - - while: - condition: - - lambda: 'return true;' - then: - - output.esp8266_pwm.set_frequency: - id: buzzer_output - frequency: 800Hz - - output.set_level: - id: buzzer_output - level: 50% - - output.turn_off: buzzer_output - - delay: 1500ms - - wait_until: - - not: - rtttl.is_playing - - - id: play_success - then: - - output.esp8266_pwm.set_frequency: - id: buzzer_output - frequency: 800Hz - - output.set_level: - id: buzzer_output - level: 50% - - delay: 120ms - - output.turn_off: buzzer_output - - delay: 200ms - - output.esp8266_pwm.set_frequency: - id: buzzer_output - frequency: 1000Hz - - output.set_level: - id: buzzer_output - level: 50% - - delay: 120ms - - output.turn_off: buzzer_output - -api: - services: - - service: alarm_arm - then: - - script.execute: loop_beep - - - service: alarm_armed - then: - - script.stop: loop_beep - - delay: 200ms - - rtttl.stop - - script.execute: play_success - - - service: alarm_trigger - then: - - script.execute: loop_alarm - - - service: alarm_disarm - then: - - script.stop: loop_beep - - script.stop: loop_alarm - - rtttl.stop - - script.execute: play_success - - - service: play_alarm_sound - then: - - rtttl.play: - rtttl: !lambda 'return id(sound_alarm);' - - - service: play_rtttl_command - variables: - rtttl_song_string: string - then: - - rtttl.play: - rtttl: !lambda 'return rtttl_song_string;'