From dc9575ff335d9a441457de0adeedcc83a682b610 Mon Sep 17 00:00:00 2001 From: Bastian Schnorbus Date: Sun, 4 May 2025 15:43:28 +0200 Subject: [PATCH] update --- alexa.yaml | 4 +- automations.yaml | 765 ++++++++++++++---- binary_sensors/ping.yaml | 18 - ...-notification-for-all-battery-sensors.yaml | 3 +- configuration.yaml | 77 +- docker-compose.yml | 102 +-- scenes.yaml | 186 +++-- 7 files changed, 839 insertions(+), 316 deletions(-) delete mode 100755 binary_sensors/ping.yaml mode change 100644 => 100755 scenes.yaml diff --git a/alexa.yaml b/alexa.yaml index 5e95809..04f5b61 100755 --- a/alexa.yaml +++ b/alexa.yaml @@ -1,8 +1,8 @@ TempOutsideIntent: speech: text: > - {%- set temp = states('sensor.neomulti4in1_temperature') | round -%} - {%- set hum = states('sensor.neomulti4in1_humidity') | round -%} + {%- set temp = states('sensor.0x14b457fffe0bde4c_temperature') | round -%} + {%- set hum = states('sensor.0x14b457fffe0bde4c_humidity') | round -%} Aktuell ist es draussen {{ temp }} Grad bei {{ hum }} Prozent Luftfeuchtigkeit TempRoomInfoIntent: speech: diff --git a/automations.yaml b/automations.yaml index 83ca3a9..c7d3dbf 100644 --- a/automations.yaml +++ b/automations.yaml @@ -1,5 +1,5 @@ - id: '1653242475391' - alias: 'Kinderzimmer Nacht Rollo Luft ' + alias: 'Zeit: Kinderzimmer Nacht Rollo Luft ' description: '' trigger: - platform: time @@ -62,7 +62,8 @@ initial_state: true mode: single - id: ZwaveTemperatureToHomematicTimed - alias: ZwaveTemperatureToHomematicTimed + alias: 'Timed: Provide Humidity Aussen to Homematic' + description: '' trigger: - platform: time_pattern minutes: /5 @@ -71,10 +72,11 @@ data_template: entity_id: homematic.ccu2 name: AussenTemp - value: '{{states.sensor.neomulti4in1_temperature.state}}' + value: '{{ states.sensor[''0x14b457fffe0bde4c_temperature''].state }}' initial_state: true - id: ZwaveHumidityToHomematicTimed - alias: ZwaveHumidityToHomematicTimed + alias: 'Timed: Provide Temp Aussen to Homematic' + description: '' trigger: - platform: time_pattern minutes: /5 @@ -83,7 +85,7 @@ data_template: entity_id: homematic.ccu2 name: ZWHumidity - value: '{{states.sensor.neomulti4in1_humidity.state}}' + value: '{{ states.sensor[''0x14b457fffe0bde4c_humidity''].state }}' initial_state: true - id: standlamp_on alias: Stehlampe ein Abends @@ -228,7 +230,7 @@ alias: 'Aus: Lichter aus bei Helligkeit Morgens' trigger: - above: '800' - entity_id: sensor.neomulti4in1_illuminance_lux + entity_id: sensor.0x14b457fffe0bde4c_illuminance_lux platform: numeric_state condition: [] action: @@ -261,7 +263,7 @@ - id: '1566136553211' alias: sonos_nachtmodus trigger: - - at: '22:30:00' + - at: '19:30:00' platform: time condition: [] action: @@ -315,28 +317,6 @@ - cover.bedroom_cover_r - cover.00115a498e0439 mode: single -- id: '1579939003577' - alias: Rollos hoch Sonnenaufgang - description: '' - trigger: - - event: sunrise - platform: sun - condition: - - condition: time - weekday: - - mon - - tue - - wed - - thu - - fri - - condition: state - entity_id: input_boolean.vacation_mode - state: 'Off' - action: - - data: - entity_id: group.all_covers - service: cover.open_cover - mode: single - id: '1582149264429' alias: 'Aus: Lichter beim Verlassen morgens' description: '' @@ -473,9 +453,9 @@ tag_id: f8a8e7d1-4b41-4db2-b358-5028c7084d15 condition: [] action: - - service: notify.mobile_app_pixel4a + - service: notify.mobile_app_pixel_6a data: - message: fsafsadf + message: Schlaf schön - scene: scene.schlafenszeit mode: single - id: '1627567078221' @@ -529,31 +509,6 @@ - switch.run_script_musikstreamingstarten - switch.run_script_radiostarten mode: single -- id: '1661800146764' - alias: 'Kinderzimmer: Rollo runter bei Kälte oder Helligkeit' - description: '' - trigger: - - platform: state - entity_id: - - sensor.neomulti4in1_temperature - condition: [] - action: - - choose: - - conditions: - - condition: numeric_state - entity_id: sensor.neomulti4in1_temperature - below: '18' - - condition: numeric_state - entity_id: sensor.neomulti4in1_illuminance_lux - above: '50' - sequence: - - service: cover.set_cover_position - data: - position: 2 - target: - entity_id: cover.00115a498e0439 - default: [] - mode: single - id: '1662547547972' alias: 'Aus: Aida Ei, Aura Lampe (Zeit/Sonne)' description: '' @@ -574,28 +529,6 @@ - light.aura_table_lamp - light.aida_ei mode: single -- id: '1663085252318' - alias: 'Abwesenheit: TVs aus bei verlassen' - description: '' - trigger: - - platform: state - entity_id: - - group.all_mobile_devices - from: home - to: not_home - condition: - - condition: state - entity_id: group.all_mobile_devices - state: not_home - action: - - data: {} - service: switch.turn_off - target: - entity_id: - - switch.neq1809644 - - switch.tp_link_smart_plug_b251 - - switch.0xc4988600000f75a3 - mode: single - id: '1658352177825' alias: 'Webhook: Rollo Kinderzimmer schliessen' description: Webhook für IFTTT um auf Alexa zu reagieren @@ -636,33 +569,6 @@ target: entity_id: light.peq1195568 mode: single -- id: '1665484519306' - alias: 'Abwesenheit: Lichter & Geräte aus.' - description: '' - trigger: - - platform: state - entity_id: - - group.all_mobile_devices - from: home - to: not_home - condition: - - condition: state - entity_id: group.all_mobile_devices - state: not_home - action: - - service: light.turn_off - data: {} - target: - entity_id: - - light.aura_table_lamp - - light.schlummerlicht - area_id: kinderzimmer - - service: switch.turn_off - data: {} - target: - entity_id: switch.smartplug1 - area_id: 1d171e588f714f2f8bd7f2abdeb22a85 - mode: single - id: '1665853168244' alias: 'Webhook: TV ein' description: '' @@ -697,18 +603,17 @@ attribute: current_position above: 70 - condition: numeric_state - entity_id: sensor.neomulti4in1_illuminance_lux - attribute: illuminance_lux - below: 80 + entity_id: sensor.0x14b457fffe0bde4c_illuminance_lux + below: 350 action: - - service: cover.set_cover_position - data: + - data: position: 20 target: entity_id: - cover.00115a498e0439 - cover.bedroom_cover_l - cover.bedroom_cover_r + action: cover.set_cover_position mode: single - id: '1666731752157' alias: 'Morgens: Kinderzimmer Lampe an' @@ -742,36 +647,38 @@ - id: '1669913615090' alias: 'Deko: Weihnachtsstern WZ ein' description: '' - trigger: - - platform: time_pattern - hours: '16' + triggers: + - hours: '16' minutes: '30' - condition: [] - action: - - type: turn_on - device_id: 943c6b2308bc1a2864bab0e091efed3a - entity_id: switch.0xc4988600000fb820 - domain: switch + trigger: time_pattern + conditions: [] + actions: + - action: switch.turn_on + metadata: {} + data: {} + target: + entity_id: switch.tasmota mode: single - id: '1669913660233' alias: 'Deko: WZ Weihnachtsstern aus' description: '' - trigger: - - platform: time_pattern - hours: '23' + triggers: + - hours: '23' minutes: '21' seconds: '10' - condition: [] - action: + trigger: time_pattern + conditions: [] + actions: - delay: minutes: '{{ range(10, 21) | random }}' - - type: turn_off - device_id: 943c6b2308bc1a2864bab0e091efed3a - entity_id: switch.0xc4988600000fb820 - domain: switch + - action: switch.turn_off + metadata: {} + data: {} + target: + entity_id: switch.tasmota mode: single - id: '1669925435788' - alias: 'Deko: Weihnachtsstern Studio ein' + alias: 'Zeit: Weihnachtsstern Studio ein' description: '' trigger: - platform: time_pattern @@ -779,7 +686,7 @@ minutes: /6 condition: - condition: numeric_state - entity_id: sensor.neomulti4in1_illuminance_lux + entity_id: sensor.0x14b457fffe0bde4c_illuminance_lux attribute: illuminance_lux below: 200 action: @@ -789,7 +696,7 @@ domain: switch mode: single - id: '1669925528967' - alias: 'Deko: Weihnachtsstern Studio aus' + alias: 'Zeit: Weihnachtsstern Studio aus' description: '' trigger: - platform: time @@ -800,6 +707,10 @@ device_id: f4c163f600b540628bdf34fbdc6fac2e entity_id: switch.smartplug2 domain: switch + - service: switch.turn_off + target: + entity_id: switch.0xf0d1b8be24094ecd + data: {} mode: single - id: '1673124529316' alias: Low battery level detection & notification for all battery sensors @@ -807,12 +718,22 @@ use_blueprint: path: sbyx/low-battery-level-detection-notification-for-all-battery-sensors.yaml input: - day: 6 + day: 0 actions: - - service: notify.persistent_notification + - action: notify.pushover + metadata: {} data: - message: 'Battery low: {{sensors}}' - time: '11:00:00' + title: Batterie + message: 'Batterie wechseln: {{sensors}}' + time: '17:00:00' + threshold: 80 + exclude: + entity_id: + - sensor.btv_w09_battery_level + - sensor.sm_a505fn_battery_level + - sensor.ipad_von_bastian_battery_level + - sensor.iphone_battery_level + - sensor.pixel_8_battery_level - id: '1676665076953' alias: 'Schlafzimmer: TV an bei Anwesenheit Abends' description: '' @@ -843,7 +764,7 @@ entity_id: switch.0xc4988600000f75a3 mode: single - id: '1679422560183' - alias: 'Studio: Abends aus bei Abwesenheit' + alias: 'Zeit: Studio Abends aus bei Abwesenheit' description: '' trigger: - platform: time_pattern @@ -870,7 +791,7 @@ target: entity_id: - switch.smartplug1 - - switch.tp_link_smart_plug_b251 + - switch.tv_studio - service: light.turn_off data: transition: 14 @@ -1037,12 +958,570 @@ - input_boolean.alertingrollos - input_boolean.dnsreportsent mode: single -- id: '1689434776158' - alias: Bewegungsaktiviertes Licht Keller +- id: '1700947981382' + alias: 'Zeit: Reset Heizung' + description: '' + trigger: + - platform: time + at: '22:34:00' + condition: [] + action: + - service: climate.set_preset_mode + data: + preset_mode: auto + target: + entity_id: climate.peq1457703 + mode: single +- id: '1702159176908' + alias: Helligkeit - Weihnachtsstern Terrasse ein + description: '' + trigger: + - platform: numeric_state + entity_id: + - sensor.0x14b457fffe0bde4c_illuminance_lux + for: + hours: 0 + minutes: 0 + seconds: 30 + attribute: illuminance_lux + below: '400' + condition: [] + action: + - service: switch.turn_on + target: + entity_id: switch.0xf0d1b8be24094ecd + data: {} + mode: single +- id: '1702568645110' + alias: Helligkeit - Bodenlampe Flur einschalten + description: '' + trigger: + - platform: numeric_state + entity_id: + - sensor.0x14b457fffe0bde4c_illuminance_lux + attribute: illuminance_lux + below: 50 + condition: [] + action: + - service: light.turn_on + target: + entity_id: light.bodenlampe + data: + brightness_pct: 4 + mode: single +- id: '1704873252946' + alias: 'Timer: Lüften' + description: '' + trigger: + - platform: state + entity_id: + - binary_sensor.neq0627526_state + to: 'on' + - platform: state + entity_id: + - binary_sensor.neq0632846_state + to: 'on' + condition: + - condition: state + entity_id: binary_sensor.neq0632846_state + state: 'on' + - condition: state + entity_id: binary_sensor.neq0627526_state + state: 'on' + action: + - service: timer.start + metadata: {} + data: {} + target: + entity_id: timer.fensterlueften + mode: single +- id: '1707239595814' + alias: 'Temperatur: Rollo ganz wenn kalt' + description: Rollos werden um 18:30 ganz runter gefahren, wenn Aussentemperatur + unter 10 Grad. + trigger: + - platform: time + at: '19:06:00' + condition: + - condition: numeric_state + entity_id: sensor.0x14b457fffe0bde4c_temperature + below: 10 + - condition: numeric_state + entity_id: cover.00115a498e0439 + below: 50 + attribute: current_position + action: + - service: cover.close_cover + metadata: {} + data: {} + target: + entity_id: + - cover.00115a498e0439 + - cover.bedroom_cover_r + - cover.bedroom_cover_l + mode: single +- id: '1708199197494' + alias: 'Assist: Fenster offen' + description: '' + trigger: + - platform: conversation + command: Sind noch Fenster auf + condition: [] + action: + - set_conversation_response: 'Es sind folgende Fenster auf: {{ expand(''binary_sensor.allefenster'') + | selectattr(''state'' , ''eq'' , ''on'') | map(attribute=''name'') | list | + join('', '')}}' + mode: single +- id: '1709071431998' + alias: 'Anwesenheit: TV im Schlafzimmer wieder ein' + description: '' + trigger: + - platform: state + entity_id: + - group.all_mobile_devices + from: not_home + to: home + condition: [] + action: + - service: switch.turn_on + metadata: {} + data: {} + target: + entity_id: switch.innrpowerplugtv + mode: single +- id: '1712162921511' + alias: 'Zeit: Rollos runter kurz vor 19h für Joel' + description: '' + triggers: + - at: '18:28:00' + trigger: time + - trigger: numeric_state + entity_id: + - sensor.0x14b457fffe0bde4c_illuminance_lux + attribute: illuminance_lux + below: 200 + conditions: + - condition: state + entity_id: input_boolean.baby_bed + state: 'off' + - condition: and + conditions: + - condition: time + after: '16:00:00' + before: '18:29:00' + actions: + - data: + position: 0 + target: + entity_id: + - cover.bedroom_cover_l + - cover.bedroom_cover_r + - cover.00115a498e0439 + action: cover.set_cover_position + mode: single +- id: '1713246439689' + alias: 'Abwesenheit Basti: Gästezimmer aus' + description: '' + trigger: + - platform: state + entity_id: + - person.basti + from: home + to: not_home + for: + hours: 0 + minutes: 5 + seconds: 0 + condition: [] + action: + - service: switch.turn_off + metadata: {} + data: {} + target: + area_id: + - gastezimmer + mode: single +- id: '1719646524245' + alias: 'Notification Batterie: Waterleak 1' + description: '' + trigger: + - type: bat_low + platform: device + device_id: 1d51b269058565e0d398d6ba2cf72d92 + entity_id: 09136a4298d4cf1a4cbd97860dd0c4e3 + domain: binary_sensor + condition: [] + action: + - service: notify.pushover + data: + message: Batterie Waterleak Sensor Dach sollte gewechselt werden! + title: Batterie + mode: single +- id: '1719646620338' + alias: 'Notification Waterleak: Dachgeschoss' + description: '' + trigger: + - type: moist + platform: device + device_id: 1d51b269058565e0d398d6ba2cf72d92 + entity_id: 1db3af5c393b63b6f94527d9d780f3ee + domain: binary_sensor + for: + hours: 0 + minutes: 0 + seconds: 10 + condition: [] + action: + - service: notify.pushover + metadata: {} + data: + title: Alarm! + message: Feuchtigkeit erkannt! Dachgeschoss! + mode: single +- id: '1720361018336' + alias: 'Zeit: Staubsauger aufladen starten' + description: '' + triggers: + - at: 06:00:00 + trigger: time + conditions: [] + actions: + - action: switch.turn_on + target: + entity_id: switch.steckdosestaubsauger + data: {} + mode: single +- id: '1720361062467' + alias: Staubsauger aufladen beenden + description: '' + triggers: + - type: power + device_id: 4b84ac444cb9bde105e75a18db6b0ac5 + entity_id: 0787189732ed6dda5e4a284573275121 + domain: sensor + trigger: device + below: 1 + for: + hours: 0 + minutes: 3 + seconds: 0 + conditions: + - condition: device + type: is_on + device_id: 4b84ac444cb9bde105e75a18db6b0ac5 + entity_id: a47844873a186b57bb2e5392b4c7dbde + domain: switch + actions: + - data: {} + action: switch.turn_off + target: + entity_id: switch.steckdosestaubsauger + mode: single +- id: '1720388603797' + alias: 'Notification Waterleak: Keller' + description: '' + trigger: + - type: moist + platform: device + device_id: 746ac7711a82ac47508649cecc31c54e + entity_id: e524c640f26bc55c596e7ba9fcd2520e + domain: binary_sensor + condition: [] + action: + - service: notify.pushover + metadata: {} + data: + title: Alarm! + message: Feuchtigkeit erkannt! Keller! + mode: single +- id: '1720388684792' + alias: 'Notification Batterie: Waterleak 2' + description: '' + trigger: + - type: bat_low + platform: device + device_id: 746ac7711a82ac47508649cecc31c54e + entity_id: 4b637e04a44c9afde24d1ce4b748241a + domain: binary_sensor + condition: [] + action: + - service: notify.pushover + data: + message: Batterie Waterleak Sensor Keller sollte gewechselt werden! + title: Batterie + mode: single +- id: '1733045381848' + alias: 'Alert: Basti Zone Zuhause' description: '' use_blueprint: - path: homeassistant/motion_light.yaml + path: homeassistant/notify_leaving_zone.yaml input: - motion_entity: binary_sensor.keller_aktivitat_occupancy - light_target: - entity_id: light.kellerlampe + person_entity: person.basti + zone_entity: zone.home + notify_device: 7b941af31d01cc04f5032cd6d9907c01 +- id: '1733045716382' + alias: 'Alert: Auto auf und alle Zuhause' + description: '' + triggers: + - trigger: state + entity_id: + - binary_sensor.audi_a4_avant_doors_trunk_state + from: 'off' + to: 'on' + for: + hours: 0 + minutes: 0 + seconds: 10 + conditions: + - condition: state + entity_id: person.basti + state: home + - condition: state + entity_id: person.carmen + state: home + actions: + - action: notify.mobile_app_pixel_8 + metadata: {} + data: + title: Auto + message: Auto nicht abgeschlossen + - action: notify.mobile_app_sm_a505fn + metadata: {} + data: + message: Auto nicht abgeschlossen + title: Auto + mode: single +- id: '1742926888779' + alias: Motion-activated Light with Conditions, Exceptions, Optional Settings, and + Sun Offset + description: '' + use_blueprint: + path: iainsmacleod/advanced_motion_automation.yaml + input: + motion_sensors: + - binary_sensor.studio_anwesenheit + light_targets: + entity_id: + - light.stehlampe_studio + - light.0x04cd15fffe78a60e + use_custom_settings: true + sun_condition: night + brightness: 71 +- id: '1743851763184' + alias: Rollo Sonnenstand Westseite + description: Rollo abhängig vom Sonnenstand auf der Schlafzimmerseite + triggers: + - alias: Check alle 10 Minuten + minutes: /10 + trigger: time_pattern + - alias: Sonne zu weit im Westen + entity_id: + - sun.sun + attribute: azimuth + above: 270 + id: SonneWiederOkay + trigger: numeric_state + conditions: + - condition: or + conditions: + - alias: Bedingungen für Rollo muss runter + condition: and + conditions: + - condition: numeric_state + entity_id: sun.sun + attribute: azimuth + above: 195 + below: 270 + - condition: numeric_state + entity_id: sun.sun + attribute: elevation + above: 20 + - condition: numeric_state + entity_id: sensor.daily_forecast + above: 20 + - condition: state + entity_id: input_boolean.sonnenschutz + state: 'on' + - condition: template + value_template: ' {{ not state_attr(''automation.rollo_sonnenstand'', ''last_triggered'').day==now().day + }}' + alias: Wenn diese Automation heute noch nicht lief + - condition: template + value_template: '{{ state_attr(''sensor.daily_forecast'', ''cloud_coverage'') + < 60 }}' + alias: Wenn cloud_coverage < 60% + - alias: Bedingung für Rollo soll wieder hoch + condition: and + conditions: + - condition: trigger + id: SonneWiederOkay + - condition: template + value_template: '{{ state_attr(''automation.automation.rollo_sonnenstand'', + ''last_triggered'').day==now().day }}' + - condition: time + before: '18:28:00' + actions: + - alias: Rollos runter + if: [] + then: + - metadata: {} + action: scene.turn_on + data: {} + target: + entity_id: scene.rollos_sonnenschutz_westseite + - alias: Rollos wieder hoch + if: + - condition: and + conditions: + - condition: trigger + id: SonneWiederOkay + then: + - action: cover.set_cover_position + metadata: {} + data: + position: 84 + target: + entity_id: + - cover.bedroom_cover_l + - cover.bedroom_cover_r + mode: single +- id: '1745431124239' + alias: 'Bewegung: Keller Licht' + description: '' + triggers: + - trigger: state + entity_id: + - binary_sensor.0x00158d0007e40238_occupancy + from: 'off' + to: 'on' + conditions: [] + actions: + - action: light.turn_on + metadata: {} + data: + brightness_pct: 75 + transition: 4 + target: + entity_id: light.kellerlampe + - delay: + hours: 0 + minutes: 2 + seconds: 0 + milliseconds: 0 + - action: light.turn_on + metadata: {} + data: + transition: 3 + brightness_pct: 10 + target: + entity_id: light.kellerlampe + mode: single +- id: '1746202741633' + alias: Rollo Sonnenstand Ostseite + description: Rollo abhängig vom Sonnenstand auf der Kinderzimmerseite + triggers: + - alias: Check alle 10 Minuten + minutes: /10 + trigger: time_pattern + - alias: Sonne zu weit im Westen + entity_id: + - sun.sun + attribute: azimuth + above: 180 + id: SonneWiederOkay + trigger: numeric_state + conditions: + - condition: or + conditions: + - alias: Bedingungen für Rollo muss runter + condition: and + conditions: + - condition: numeric_state + entity_id: sun.sun + attribute: azimuth + above: 80 + below: 180 + - condition: numeric_state + entity_id: sun.sun + attribute: elevation + above: 12 + - condition: numeric_state + entity_id: sensor.daily_forecast + above: 20 + - condition: state + entity_id: input_boolean.sonnenschutz + state: 'on' + - alias: Wenn diese Automation heute noch nicht lief + condition: template + value_template: ' {{ not state_attr(''automation.rollo_sonnenstand_ostseite'', + ''last_triggered'').day==now().day }}' + - condition: template + value_template: '{{ state_attr(''sensor.daily_forecast'', ''cloud_coverage'') + < 60 }}' + alias: Wenn cloud_coverage < 60% ist + - alias: Bedingung für Rollo soll wieder hoch + condition: and + conditions: + - condition: trigger + id: SonneWiederOkay + - alias: Wenn diese Automation heute schon lief + condition: template + value_template: '{{ state_attr(''automation.automation.rollo_sonnenstand_ostseite'', + ''last_triggered'').day==now().day }}' + - condition: time + after: 07:00:00 + - condition: numeric_state + entity_id: cover.00115a498e0439 + above: 60 + actions: + - alias: Rollos runter + if: [] + then: + - action: cover.set_cover_position + metadata: {} + data: + position: 25 + - alias: Rollos wieder hoch + if: + - condition: and + conditions: + - condition: trigger + id: SonneWiederOkay + then: + - action: cover.set_cover_position + metadata: {} + data: + position: 84 + target: + entity_id: cover.00115a498e0439 + mode: single +- id: '1746267440046' + alias: 'Anwesenheit: Alles aus wenn niemand zuhaus''' + description: '' + triggers: + - trigger: state + entity_id: + - group.all_mobile_devices + to: not_home + from: home + for: + hours: 0 + minutes: 5 + seconds: 0 + conditions: [] + actions: + - action: scene.turn_on + metadata: {} + data: {} + target: + entity_id: scene.schlafenszeit + - action: switch.turn_off + data: {} + target: + entity_id: switch.tv_studio + - action: light.turn_off + target: + area_id: 1d171e588f714f2f8bd7f2abdeb22a85 + data: + transition: 5 + mode: single diff --git a/binary_sensors/ping.yaml b/binary_sensors/ping.yaml deleted file mode 100755 index a997745..0000000 --- a/binary_sensors/ping.yaml +++ /dev/null @@ -1,18 +0,0 @@ -- platform: ping - host: 192.168.178.48 - name: TV Samsung 55 -- platform: ping - host: 192.168.178.31 - name: Thermomix -- platform: ping - host: 192.168.178.120 - name: Shelly25_R -- platform: ping - host: 192.168.178.124 - name: Shelly25_L -- platform: ping - host: 192.168.178.22 - name: HarmonyWz -- platform: ping - host: 192.168.178.23 - name: HarmonySz diff --git a/blueprints/automation/sbyx/low-battery-level-detection-notification-for-all-battery-sensors.yaml b/blueprints/automation/sbyx/low-battery-level-detection-notification-for-all-battery-sensors.yaml index 91e5d60..6f9bff0 100644 --- a/blueprints/automation/sbyx/low-battery-level-detection-notification-for-all-battery-sensors.yaml +++ b/blueprints/automation/sbyx/low-battery-level-detection-notification-for-all-battery-sensors.yaml @@ -42,7 +42,8 @@ blueprint: selector: target: entity: - device_class: battery + - device_class: + - battery actions: name: Actions description: Notifications or similar to be run. {{sensors}} is replaced with diff --git a/configuration.yaml b/configuration.yaml index 790f898..29f6816 100755 --- a/configuration.yaml +++ b/configuration.yaml @@ -27,11 +27,12 @@ homeassistant: - type: trusted_networks trusted_networks: - 192.168.178.0/24 - - 172.18.0.0/16 - - 172.19.0.0/16 + - 192.168.144.0/24 + - 172.0.0.0/8 - fd00::/8 mobile_app: #discovery: +my: schedule: weekend_schedule: name: "Wochenende" @@ -55,7 +56,9 @@ http: use_x_forwarded_for: true trusted_proxies: - 192.168.178.0/24 # Add the IP address of the proxy server -# base_url: example.duckdns.org:8123 + - 192.168.144.2 # Add the IP address of the proxy server + - 172.24.0.0/16 + # base_url: example.duckdns.org:8123 config: @@ -95,13 +98,6 @@ homematic: password: !secret ccu_password switch: - - platform: command_line - switches: - pihole_switch: - command_on: "curl -s -X GET 'http://192.168.178.202/admin/api.php?enable&auth=1eae9e87f4b4710981639ee591b7d75734811d61697092110cb748c3244e01cc'" - command_off: "curl -s -X GET 'http://192.168.178.202/admin/api.php?disable=3600&auth=1eae9e87f4b4710981639ee591b7d75734811d61697092110cb748c3244e01cc'" - command_state: "curl -s -X GET 'http://192.168.178.202/admin/api.php?status&auth=1eae9e87f4b4710981639ee591b7d75734811d61697092110cb748c3244e01cc'" - value_template: "{{ value_json.status == 'enabled' }}" - platform: template switches: ccu_tsm: @@ -177,7 +173,6 @@ zone 2: radius: 300 icon: mdi:worker -map: sun: influxdb: host: !secret influx_host @@ -192,31 +187,41 @@ influxdb: domains: - sensor -binary_sensor: !include_dir_merge_list binary_sensors - template: - trigger: - platform: state - entity_id: binary_sensor.bewegung_studio_occupancy + entity_id: binary_sensor.0x00158d0007e21f31_occupancy from: "off" to: "on" - # - platform: time_pattern - # hours: "22" - # minutes: "/5" - # seconds: "*" binary_sensor: name: bewegung_studio_occupancy_delayed_off state: 'on' - auto_off: '00:20:00' -# - trigger: -# - platform: state -# entity_id: binary_sensor.bewegung_studio_occupancy -# state: 'on' -# binary_sensor: -# name: Motion detected with occupancy timeout -# state: 'on' -# auto_off: '00:15:00' + auto_off: '00:20:00' + - trigger: + - platform: time_pattern + minutes: /2 + - platform: homeassistant + event: start + + action: + - service: weather.get_forecasts + data: + type: daily + target: + entity_id: + - weather.heidelberg + response_variable: daily + + sensor: + - name: Daily Forecast + unique_id: weather_forecast_daily + state: "{{ daily['weather.heidelberg'].forecast[0].temperature }}" + attributes: + cloud_coverage: "{{ daily['weather.heidelberg'].forecast[0].cloud_coverage }}" + condition: "{{ daily['weather.heidelberg'].forecast[0].condition }}" + datetime: "{{ daily['weather.heidelberg'].forecast[0].datetime }}" + temperature: "{{ daily['weather.heidelberg'].forecast[0].temperature }}" input_boolean: vacation_mode: @@ -270,7 +275,7 @@ google_assistant: - sensor - climate -shelly: +#shelly: mqtt: sensor: @@ -315,12 +320,6 @@ mqtt: sensor: - - platform: systemmonitor - resources: - - type: disk_use_percent - arg: /home - - type: memory_free - - type: last_boot - platform: template sensors: # batt_multisensor: @@ -371,10 +370,6 @@ sensor: friendly_name: 'Sonnenaufgang' value_template: '{{ ((as_timestamp(states.sun.sun.attributes.next_rising)) | timestamp_local) [11:16] }}' - - platform: vdr - host: 192.168.178.200 - timeout: 2 - history: include: domains: @@ -382,7 +377,7 @@ history: - switch recorder: - db_url: !secret mysql_connection + db_url: !secret postgres_connection purge_keep_days: 7 exclude: domains: @@ -424,10 +419,8 @@ logger: homeassistant.components.webhook: info homeassistant.components.http: warning pyhomematic: error - custom_components.vdr.media_player: error - pyvdr.svdrp: error - pyvdr: error homeassistant.components.wake_on_lan: debug homeassistant.components.harmony: error homeassistant.components.device_tracker: error + custom_components.pyscript: info fritzconnection: info diff --git a/docker-compose.yml b/docker-compose.yml index 8f9e235..6e180db 100755 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,14 +1,3 @@ -# docker run -d \ -# --name="homeassistant" \ -# --net=host \ -# --restart on-failure \ -# --device=/dev/ttyACM0 \ -# -v /home/basti/Projects/homeassistant_config:/config \ -# -e "TZ=Europe/Berlin" \ -# -p 8123:8123 -p 8060:8060 \ -# homeassistant/home-assistant:0.101.3 - -version: '3.3' services: homeassistant: container_name: homeassistant @@ -26,33 +15,24 @@ services: network_mode: host depends_on: # - mariadb - - mariadb_1x + - postgres +# - mariadb_1x - mosquitto - zigbee2mqtt - mariadb_1x: - container_name: mariadb_1x - image: mariadb:10.11.2 + postgres: + container_name: ha-postgres-db + image: postgres:15-alpine + env_file: .env + environment: + POSTGRES_DB: "${HA_DB_DATABASE}" + POSTGRES_PASSWORD: "${HA_DB_PASSWORD}" + POSTGRES_USER: "${HA_DB_USER}" restart: always ports: - - "3306:3306/tcp" + - 5433:5432 volumes: - - /srv/docker/mariadb_1x/config:/etc/mysql/conf.d - - /srv/docker/mariadb_1x/data:/var/lib/mysql - environment: - TZ: ${TZ} - MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD} - MYSQL_DATABASE: ${MYSQL_DATABASE} - MYSQL_USER: ${MYSQL_USER} - MYSQL_PASSWORD: ${MYSQL_PASSWORD} - MARIADB_AUTO_UPGRADE: "1" - MARIADB_INITDB_SKIP_TZINFO: "1" - - # adminer: - # image: adminer - # restart: always - # ports: - # - 8080:18080 + - ha-postgres-db:/var/lib/postgresql/data mosquitto: container_name: mosquitto @@ -85,21 +65,7 @@ services: #user: "${LOCAL_USER}:${LOCAL_USER}" depends_on: - homeassistant - zwave-js: - image: zwavejs/zwavejs2mqtt:${ZWAVEJSTAG} - container_name: zwave-js - restart: unless-stopped - environment: - TZ: ${TZ} - depends_on: - - mosquitto - ports: - - 8091:8091 - - 3001:3000 - devices: - - /dev/ttyACM0:/dev/ttyACM0 - volumes: - - /home/basti/Projects/smarthome/zwave-js:/usr/src/app/store + zigbee2mqtt: container_name: zigbee2mqtt @@ -108,9 +74,10 @@ services: depends_on: - mosquitto devices: - - /dev/ttyACM1 +# - /dev/ttyACM0 + - /dev/ttyUSB0 volumes: - - ./zbdata:/app/data + - ./docker-data/z2m:/app/data - /run/udev:/run/udev:ro ports: - 8383:8080 @@ -124,3 +91,40 @@ volumes: mosquitto_data: {} zwavejs_data: {} zigbee2mqtt_data: {} + ha-postgres-db: + name: ha-postgres-db + # zwave-js: + # image: zwavejs/zwavejs2mqtt:${ZWAVEJSTAG} + # container_name: zwave-js + # restart: unless-stopped + # environment: + # TZ: ${TZ} + # depends_on: + # - mosquitto + # ports: + # - 8091:8091 + # - 3001:3000 + # devices: + # - /dev/ttyACM0:/dev/ttyACM0 + # volumes: + # - /home/basti/Projects/smarthome/zwave-js:/usr/src/app/store + + # mariadb_1x: + # container_name: mariadb_1x + # image: mariadb:10.11.2 + # restart: always + # ports: + # - "3306:3306/tcp" + # volumes: + # - /srv/docker/mariadb_1x/config:/etc/mysql/conf.d + # - /srv/docker/mariadb_1x/data:/var/lib/mysql + # environment: + # TZ: ${TZ} + # MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD} + # MYSQL_DATABASE: ${MYSQL_DATABASE} + # MYSQL_USER: ${MYSQL_USER} + # MYSQL_PASSWORD: ${MYSQL_PASSWORD} + # MARIADB_AUTO_UPGRADE: "1" + # MARIADB_INITDB_SKIP_TZINFO: "1" + + diff --git a/scenes.yaml b/scenes.yaml old mode 100644 new mode 100755 index 5f2cec9..0c2c3a7 --- a/scenes.yaml +++ b/scenes.yaml @@ -43,82 +43,21 @@ name: Schlafenszeit entities: light.klampekuehlschrank: - min_color_temp_kelvin: 2202 - max_color_temp_kelvin: 4000 - min_mireds: 250 - max_mireds: 454 - supported_color_modes: - - color_temp - friendly_name: Lampe Kühlschrank - supported_features: 32 state: 'off' light.klampetisch: - supported_color_modes: - - brightness - friendly_name: Lampe Tisch - supported_features: 32 state: 'off' light.wzstehlampe: - min_color_temp_kelvin: 2202 - max_color_temp_kelvin: 4000 - min_mireds: 250 - max_mireds: 454 - supported_color_modes: - - color_temp - friendly_name: Stehlampe - supported_features: 32 - icon: mdi:floor-lamp state: 'off' light.zylinder_wohnzimmer: - supported_color_modes: - - brightness - entity_id: - - light.tradfri_bulb_9 - - light.tradfri_bulb_10 - icon: mdi:lighthouse - friendly_name: Zylinder - supported_features: 32 state: 'off' remote.harmony_hub_wohnzimmer: - activity_list: - - Musik Streaming - - Fernsehen - - Smart TV wiedergeben - - Film wiedergeben - - Fire TV sehen - - Radio - current_activity: PowerOff - activity_starting: - devices_list: - - Amazon Fire TV-Stick - - Intel Multimedia-Player - - Yamaha AV-Empfänger - - LG TV - - LG Blu-ray Player - last_activity: Smart TV wiedergeben - friendly_name: Harmony Hub Wohnzimmer - supported_features: 4 state: 'off' switch.neq1809644: id: NEQ1809644 interface: wireless - rssi_peer: -63 - power: 0 - current: 0 - voltage: 236.5 - working: 'No' - icon: mdi:theater friendly_name: TV & Receiver Steckdose state: 'off' - switch.smartplug6: - restored: true - friendly_name: SmartPlug6 - supported_features: 0 - state: unavailable switch.0xc4988600000fb820: - linkquality: 167 - icon: mdi:star-four-points-outline - friendly_name: WZ Weihnachtsstern state: 'off' metadata: switch.0xc4988600000fb820: @@ -246,3 +185,128 @@ entity_only: true light.schlummerlicht: entity_only: true +- id: '1741113836638' + name: Studio Ambiente + entities: + light.stehlampe_studio: + supported_color_modes: + - brightness + color_mode: brightness + brightness: 26 + friendly_name: Stehlampe Studio + supported_features: 32 + state: 'on' + light.0x04cd15fffe78a60e: + min_color_temp_kelvin: 2000 + max_color_temp_kelvin: 6535 + min_mireds: 153 + max_mireds: 500 + effect_list: + - blink + - breathe + - okay + - channel_change + - finish_effect + - stop_effect + - colorloop + - stop_colorloop + supported_color_modes: + - color_temp + - xy + effect: + color_mode: xy + brightness: 84 + color_temp_kelvin: + color_temp: + hs_color: + - 282.353 + - 100 + rgb_color: + - 180 + - 0 + - 255 + xy_color: + - 0.284 + - 0.108 + color: + x: 0.284 + y: 0.108 + color_power_on_behavior: + do_not_disturb: + linkquality: 255 + icon: mdi:television-ambient-light + friendly_name: Stimmungslicht + supported_features: 44 + state: 'on' + metadata: + light.0x04cd15fffe78a60e: + entity_only: true +- id: '1742734004379' + name: 'Studio: Dunkelheit' + entities: + light.0x04cd15fffe78a60e: + min_color_temp_kelvin: 2000 + max_color_temp_kelvin: 6535 + min_mireds: 153 + max_mireds: 500 + effect_list: + - blink + - breathe + - okay + - channel_change + - finish_effect + - stop_effect + - colorloop + - stop_colorloop + supported_color_modes: + - color_temp + - xy + effect: + color_mode: xy + brightness: 122 + color_temp_kelvin: + color_temp: + hs_color: + - 288.097 + - 96.863 + rgb_color: + - 206 + - 8 + - 255 + xy_color: + - 0.32 + - 0.125 + icon: mdi:television-ambient-light + friendly_name: Stimmungslicht + supported_features: 44 + state: 'on' + light.stehlampe_studio: + supported_color_modes: + - brightness + color_mode: brightness + brightness: 61 + friendly_name: Stehlampe Studio + supported_features: 32 + state: 'on' + metadata: + light.0x04cd15fffe78a60e: + entity_only: true + light.stehlampe_studio: + entity_only: true +- id: '1746189591100' + name: Rollos Sonnenschutz Westseite + entities: + cover.bedroom_cover_l: + current_position: 28 + friendly_name: Schlafzimmer (links) + state: open + cover.bedroom_cover_r: + current_position: 28 + friendly_name: Schlafzimmer (rechts) + state: open + metadata: + cover.bedroom_cover_l: + entity_only: true + cover.bedroom_cover_r: + entity_only: true + icon: mdi:roller-shade-closed