From 31554cde10a3600f69afd5bac7adccffcd57e83a Mon Sep 17 00:00:00 2001 From: root Date: Sun, 18 Jan 2026 13:22:20 +0100 Subject: [PATCH] Temperatursteuerung id.4 flexibilisiert --- automations.yaml | 521 +++++++++++++++++++++++++++++---------------- configuration.yaml | 19 +- 2 files changed, 357 insertions(+), 183 deletions(-) diff --git a/automations.yaml b/automations.yaml index 7060325..c3c65c5 100644 --- a/automations.yaml +++ b/automations.yaml @@ -483,7 +483,15 @@ after_offset: '-1:00:00' before: sunset before_offset: '-4:00:00' + - condition: numeric_state + entity_id: sensor.fenstersensor_bett_beleuchtungsstarke + above: 600 actions: + - action: timer.start + metadata: {} + target: + entity_id: timer.5_minuten_timer + data: {} - type: turn_off device_id: 863cac32d2491ff1b232d8adbb1ff289 entity_id: 49adf831cd67be7d1be00b73d48bd731 @@ -492,14 +500,6 @@ device_id: 42c265ec58ee05cdfa16f1bceeaf720b entity_id: 3cd43db6b96777f7589172f90c963a50 domain: light - - type: turn_off - device_id: ad07bb700074bd4edcbd7d4a0440020f - entity_id: d5c687dccaebb2af80641d247ebc40e9 - domain: light - - type: turn_off - device_id: f3c9f016048c03fee8a552869913e10b - entity_id: d44032678cb26b6f3450b47ab4ad1d83 - domain: light mode: single - id: '1702814831133' alias: 'Action: Rollos hoch - Licht aus Charlotte' @@ -521,7 +521,15 @@ after_offset: '-1:00:00' before: sunset before_offset: '-4:00:00' + - condition: numeric_state + entity_id: sensor.fenstersensor_bett_beleuchtungsstarke_2 + above: 400 actions: + - action: timer.start + metadata: {} + target: + entity_id: timer.5_minuten_timer + data: {} - type: turn_off device_id: 63af3e51fa64a5f847b2cdbb1f7c35f7 entity_id: 088a80fe4ada13d51aec6dede73d493c @@ -1354,20 +1362,19 @@ domain: light mode: single - id: '1707934150159' - alias: 'Bewegung: Bewegung in Flur erkannt' + alias: 'Bewegung: Bewegung Treppe erkannt' description: '' - trigger: + triggers: - type: motion - platform: device device_id: bec4959c23eb8f656be228b458a74387 entity_id: 84193b161b965385d1046330833fa651 domain: binary_sensor - condition: + trigger: device + conditions: - condition: sun before: sunrise after: sunset - after_offset: -0:20:00 - action: + actions: - type: turn_on device_id: e2257c73360e613b41cbf537fe4447e1 entity_id: 338aa921f82112851c509c691d263e22 @@ -1385,11 +1392,10 @@ brightness_pct: 5 mode: single - id: '1707934209321' - alias: 'Bewegung: Keine Bewegung mehr in Flur' + alias: 'Bewegung: Keine Bewegung Treppe' description: '' - trigger: + triggers: - type: no_motion - platform: device device_id: bec4959c23eb8f656be228b458a74387 entity_id: 84193b161b965385d1046330833fa651 domain: binary_sensor @@ -1397,8 +1403,9 @@ hours: 0 minutes: 0 seconds: 30 - condition: [] - action: + trigger: device + conditions: [] + actions: - type: turn_off device_id: f7be6bd59c58b2449eeac0350f650b73 entity_id: a65e95bb3adf83e11f2b936d11dbd1ee @@ -1618,9 +1625,8 @@ - id: '1708863611305' alias: 'Bewegung: HPD Greta Licht Apple TV aus' description: '' - trigger: + triggers: - type: no_motion - platform: device device_id: ad887ecf73aed557bb6047fe828cb8a4 entity_id: 8ff8c1e3947c8ccd32d55ed3846cec5c domain: binary_sensor @@ -1628,16 +1634,9 @@ hours: 0 minutes: 15 seconds: 0 - condition: [] - action: - - type: turn_off - device_id: f3c9f016048c03fee8a552869913e10b - entity_id: d44032678cb26b6f3450b47ab4ad1d83 - domain: light - - type: turn_off - device_id: ad07bb700074bd4edcbd7d4a0440020f - entity_id: d5c687dccaebb2af80641d247ebc40e9 - domain: light + trigger: device + conditions: [] + actions: - type: turn_off device_id: 863cac32d2491ff1b232d8adbb1ff289 entity_id: 49adf831cd67be7d1be00b73d48bd731 @@ -1962,42 +1961,6 @@ - service: shell_command.humidifier_schlafzimmer_1 data: {} mode: single -- id: '1709826755018' - alias: 'Bewegung: Gästebad Licht aus' - description: '' - triggers: - - type: no_motion - device_id: 7deb738ecdd8e9363d806d5720ec9c90 - entity_id: 18ca6445ea6d4de3a8f0013d6b8dea26 - domain: binary_sensor - for: - hours: 0 - minutes: 15 - seconds: 0 - trigger: device - conditions: - - condition: device - type: is_on - device_id: f8d39317f98d4f3abf4a5d24e7e85670 - entity_id: 430adaea4d65c4db91d7b3447d4f8834 - domain: light - for: - hours: 0 - minutes: 20 - seconds: 0 - - condition: state - entity_id: binary_sensor.tursensor_bad_offnung - state: 'off' - for: - hours: 0 - minutes: 10 - seconds: 0 - actions: - - type: turn_off - device_id: f8d39317f98d4f3abf4a5d24e7e85670 - entity_id: 430adaea4d65c4db91d7b3447d4f8834 - domain: light - mode: single - id: '1709826792401' alias: 'Bewegung: Gästebad Licht' description: '' @@ -2008,33 +1971,23 @@ domain: binary_sensor trigger: device conditions: - - condition: and - conditions: - - condition: numeric_state - entity_id: sensor.bewegungsmelder_gastebad_beleuchtungsstarke - below: 750 - - condition: device - type: is_off - device_id: f8d39317f98d4f3abf4a5d24e7e85670 - entity_id: 430adaea4d65c4db91d7b3447d4f8834 - domain: light + - condition: state + entity_id: input_boolean.gastebad_schalter_betatigt + state: + - 'off' + for: + hours: 0 + minutes: 0 + seconds: 0 + - condition: numeric_state + entity_id: sensor.bewegungsmelder_gastebad_beleuchtungsstarke + below: 200 actions: - type: turn_on device_id: f8d39317f98d4f3abf4a5d24e7e85670 entity_id: 430adaea4d65c4db91d7b3447d4f8834 domain: light brightness_pct: 25 - - condition: state - entity_id: binary_sensor.bewegungsmelder_gastebad_bewegung - state: 'off' - for: - hours: 0 - minutes: 5 - seconds: 0 - - type: turn_off - device_id: f8d39317f98d4f3abf4a5d24e7e85670 - entity_id: 430adaea4d65c4db91d7b3447d4f8834 - domain: light mode: single - id: '1709875398735' alias: 'Action: Türsensor Gästebad Licht Aus' @@ -2061,15 +2014,23 @@ alias: 'Schalter: Lichtschalter Gästebad' description: '' triggers: - - trigger: state - entity_id: - - event.shellyplus1_d48afc44823c_input_0 - for: - hours: 0 - minutes: 0 - seconds: 0.3 + - device_id: 01d35404ebf403522315e9d4a6c03133 + domain: shelly + type: btn_down + subtype: button1 + trigger: device + - device_id: 01d35404ebf403522315e9d4a6c03133 + domain: shelly + type: btn_up + subtype: button1 + trigger: device conditions: [] actions: + - action: input_boolean.turn_on + metadata: {} + target: + entity_id: input_boolean.gastebad_schalter_betatigt + data: {} - choose: - conditions: - condition: device @@ -2082,6 +2043,11 @@ device_id: f8d39317f98d4f3abf4a5d24e7e85670 entity_id: 430adaea4d65c4db91d7b3447d4f8834 domain: light + - action: input_boolean.turn_on + metadata: {} + target: + entity_id: input_boolean.gastebad_schalter_betatigt + data: {} - conditions: - condition: device type: is_off @@ -2093,6 +2059,12 @@ device_id: f8d39317f98d4f3abf4a5d24e7e85670 entity_id: 430adaea4d65c4db91d7b3447d4f8834 domain: light + enabled: false + - type: toggle + device_id: f8d39317f98d4f3abf4a5d24e7e85670 + entity_id: 430adaea4d65c4db91d7b3447d4f8834 + domain: light + enabled: true mode: single - id: '1710156309538' alias: 'Schalter: Lichtschalter Bad Rechts Ein' @@ -2306,9 +2278,13 @@ alias: 'Uhrzeit: Saugroboter Starten Morgens' description: '' triggers: - - at: 05:20:00 + - at: input_datetime.uhrzeit_start_saugroboter trigger: time - conditions: [] + conditions: + - condition: state + entity_id: input_boolean.steuerung_saugroboter + state: + - 'on' actions: - action: vacuum.start metadata: {} @@ -2324,26 +2300,18 @@ - id: '1710773072995' alias: 'Schalter: Fernbedienung Greta An' description: '' - trigger: + triggers: - device_id: 5908fb8853967eb8231d6c5f191a4b85 domain: zha - platform: device type: remote_button_short_press subtype: turn_on - condition: [] - action: + trigger: device + conditions: [] + actions: - type: turn_on device_id: 863cac32d2491ff1b232d8adbb1ff289 entity_id: 49adf831cd67be7d1be00b73d48bd731 domain: light - - type: turn_on - device_id: ad07bb700074bd4edcbd7d4a0440020f - entity_id: d5c687dccaebb2af80641d247ebc40e9 - domain: light - - type: turn_on - device_id: f3c9f016048c03fee8a552869913e10b - entity_id: d44032678cb26b6f3450b47ab4ad1d83 - domain: light - type: turn_on device_id: 42c265ec58ee05cdfa16f1bceeaf720b entity_id: 3cd43db6b96777f7589172f90c963a50 @@ -2352,26 +2320,18 @@ - id: '1710773152158' alias: 'Schalter: Fernbedienung Greta Aus' description: '' - trigger: + triggers: - device_id: 5908fb8853967eb8231d6c5f191a4b85 domain: zha - platform: device type: remote_button_short_press subtype: turn_off - condition: [] - action: + trigger: device + conditions: [] + actions: - type: turn_off device_id: 863cac32d2491ff1b232d8adbb1ff289 entity_id: 49adf831cd67be7d1be00b73d48bd731 domain: light - - type: turn_off - device_id: ad07bb700074bd4edcbd7d4a0440020f - entity_id: d5c687dccaebb2af80641d247ebc40e9 - domain: light - - type: turn_off - device_id: f3c9f016048c03fee8a552869913e10b - entity_id: d44032678cb26b6f3450b47ab4ad1d83 - domain: light - type: turn_off device_id: 42c265ec58ee05cdfa16f1bceeaf720b entity_id: 3cd43db6b96777f7589172f90c963a50 @@ -2380,26 +2340,18 @@ - id: '1710773218413' alias: 'Schalter: Fernbedienung Greta Heller' description: '' - trigger: + triggers: - device_id: 5908fb8853967eb8231d6c5f191a4b85 domain: zha - platform: device type: remote_button_short_press subtype: dim_up - condition: [] - action: + trigger: device + conditions: [] + actions: - device_id: 863cac32d2491ff1b232d8adbb1ff289 domain: light entity_id: 49adf831cd67be7d1be00b73d48bd731 type: brightness_increase - - device_id: ad07bb700074bd4edcbd7d4a0440020f - domain: light - entity_id: d5c687dccaebb2af80641d247ebc40e9 - type: brightness_increase - - device_id: f3c9f016048c03fee8a552869913e10b - domain: light - entity_id: d44032678cb26b6f3450b47ab4ad1d83 - type: brightness_increase - device_id: 42c265ec58ee05cdfa16f1bceeaf720b domain: light entity_id: 3cd43db6b96777f7589172f90c963a50 @@ -2408,26 +2360,18 @@ - id: '1710773259183' alias: 'Schalter: Fernbedienung Greta Dunkler' description: '' - trigger: + triggers: - device_id: 5908fb8853967eb8231d6c5f191a4b85 domain: zha - platform: device type: remote_button_short_press subtype: dim_down - condition: [] - action: + trigger: device + conditions: [] + actions: - device_id: 863cac32d2491ff1b232d8adbb1ff289 domain: light entity_id: 49adf831cd67be7d1be00b73d48bd731 type: brightness_decrease - - device_id: ad07bb700074bd4edcbd7d4a0440020f - domain: light - entity_id: d5c687dccaebb2af80641d247ebc40e9 - type: brightness_decrease - - device_id: f3c9f016048c03fee8a552869913e10b - domain: light - entity_id: d44032678cb26b6f3450b47ab4ad1d83 - type: brightness_decrease - device_id: 42c265ec58ee05cdfa16f1bceeaf720b domain: light entity_id: 3cd43db6b96777f7589172f90c963a50 @@ -2976,7 +2920,8 @@ - action: light.toggle metadata: {} target: - entity_id: light.nachttisch + entity_id: + - light.gruppeflurlampen_deckenlampenwohnzimmerzigbee data: {} mode: single - id: '1721896399540' @@ -3733,14 +3678,6 @@ entity_id: binary_sensor.werktag state: 'on' actions: - - type: turn_off - device_id: ad07bb700074bd4edcbd7d4a0440020f - entity_id: d5c687dccaebb2af80641d247ebc40e9 - domain: light - - type: turn_off - device_id: f3c9f016048c03fee8a552869913e10b - entity_id: d44032678cb26b6f3450b47ab4ad1d83 - domain: light - type: turn_off device_id: 863cac32d2491ff1b232d8adbb1ff289 entity_id: 49adf831cd67be7d1be00b73d48bd731 @@ -4034,23 +3971,6 @@ button_right_short: - action: script.ventilator_an data: {} -- id: '1734871513543' - alias: 'Schalter: Lichtschalter Gästebad (Blueprint)' - description: '' - use_blueprint: - path: ahue/shelly-plus-1-button-action-blueprint.yaml - input: - button: 01d35404ebf403522315e9d4a6c03133 - down: - - type: turn_on - device_id: f8d39317f98d4f3abf4a5d24e7e85670 - entity_id: 430adaea4d65c4db91d7b3447d4f8834 - domain: light - up: - - type: turn_off - device_id: f8d39317f98d4f3abf4a5d24e7e85670 - entity_id: 430adaea4d65c4db91d7b3447d4f8834 - domain: light - id: '1735032608481' alias: 'Push: Roborock Wasser knapp' description: '' @@ -4065,7 +3985,7 @@ %d.%m.%Y\") }}" mode: single - id: '1735309344831' - alias: 'Uhrzeit: Christbaum ein' + alias: 'Uhrzeit: Weihnachtsbaum ein' description: '' triggers: - trigger: time @@ -4158,10 +4078,14 @@ entity_id: weather.langenau below: 5 attribute: temperature + enabled: false - condition: state entity_id: input_boolean.steuerung_klimatisierung_auto state: - 'on' + - condition: numeric_state + entity_id: sensor.id_4_hv_battery_min_temperature + below: input_number.temperatur_klimatisierung_id_4 actions: - action: climate.turn_on metadata: {} @@ -4625,16 +4549,14 @@ alias: 'Push: Temperaturwarnung Rasenmäher' description: '' triggers: - - type: temperature - device_id: ff6ad4d720d03d85b5ee9a8fe15e64d9 - entity_id: c4ebff18b51048bcd4a925c30a32393d - domain: sensor - trigger: device - below: 4 + - trigger: numeric_state + entity_id: + - sensor.langenau_temperatur_3 for: - hours: 0 - minutes: 20 + hours: 1 + minutes: 0 seconds: 0 + below: 5 conditions: - condition: state entity_id: input_boolean.frostwarnung_mahroboter @@ -4812,7 +4734,7 @@ trigger: device for: hours: 0 - minutes: 20 + minutes: 15 seconds: 0 conditions: [] actions: @@ -4979,3 +4901,240 @@ entity_id: fd25fadaaaabe59effdc9d13983a874e domain: switch mode: single +- id: '1767004198672' + alias: 'Bewegung: Bewegung im Flur Diele an' + description: '' + triggers: + - type: motion + device_id: 8b0a1efaad397c8bb653bcb94638a293 + entity_id: b91de07b156b75eb1f946be6e683332f + domain: binary_sensor + trigger: device + conditions: + - condition: sun + before: sunrise + after: sunset + actions: + - type: turn_on + device_id: 9bff8f464fda8dc204d3c0a3bba0d636 + entity_id: 71c31f4e7773126befa2a6299757104a + domain: light + - type: turn_on + device_id: 49836f229984b1291cade65344d8ca60 + entity_id: cf3ba54534c154dc5eea03a13f489273 + domain: light + - type: turn_on + device_id: 69e077ef702285263d918329d47b8ed3 + entity_id: b623a690ec10f35d4ad90abf7a416be1 + domain: light + mode: single +- id: '1767004289453' + alias: 'Bewegung: Keine Bewegung im Flur Diele aus' + description: '' + triggers: + - type: no_motion + device_id: 8b0a1efaad397c8bb653bcb94638a293 + entity_id: b91de07b156b75eb1f946be6e683332f + domain: binary_sensor + trigger: device + for: + hours: 0 + minutes: 0 + seconds: 30 + conditions: [] + actions: + - type: turn_off + device_id: 9bff8f464fda8dc204d3c0a3bba0d636 + entity_id: 71c31f4e7773126befa2a6299757104a + domain: light + - type: turn_off + device_id: 49836f229984b1291cade65344d8ca60 + entity_id: cf3ba54534c154dc5eea03a13f489273 + domain: light + - type: turn_off + device_id: 69e077ef702285263d918329d47b8ed3 + entity_id: b623a690ec10f35d4ad90abf7a416be1 + domain: light + mode: single +- id: '1767123914836' + alias: 'Push: Waschmaschine eingeschaltet' + description: '' + triggers: + - trigger: numeric_state + entity_id: + - sensor.steckdose_waschmaschine_leistung + above: 500 + conditions: [] + actions: + - action: input_boolean.turn_on + metadata: {} + target: + entity_id: input_boolean.waschmaschine_aktiv + data: {} + mode: single +- id: '1767124089017' + alias: 'Push: Waschmaschine fertig' + description: '' + triggers: + - trigger: numeric_state + entity_id: + - sensor.steckdose_waschmaschine_leistung + below: 10 + for: + hours: 0 + minutes: 5 + seconds: 0 + conditions: + - condition: state + entity_id: input_boolean.waschmaschine_aktiv + state: + - 'on' + - condition: state + entity_id: input_boolean.steuerung_waschmaschine + state: + - 'on' + actions: + - action: input_boolean.turn_off + metadata: {} + target: + entity_id: input_boolean.waschmaschine_aktiv + data: {} + - action: notify.gotify + metadata: {} + data: + message: "Waschmaschine ist fertig \n{{ as_timestamp(now()) | timestamp_custom(\"%H:%M, + %d.%m.%Y\") }}" + title: Waschmaschine + mode: single +- id: '1767904176885' + alias: Tag Saugroboter starten wird gescannt + description: '' + triggers: + - trigger: tag + tag_id: f67dcaaf-69bc-40cb-b0a4-413a202b5873 + conditions: [] + actions: + - action: notify.gotify + metadata: {} + data: + message: Test Tag + mode: single +- id: '1768135463713' + alias: 'Helfer: Gästebad Bewegungsmelder Deaktivieren durch Lichtschalter' + description: '' + triggers: + - trigger: state + entity_id: + - input_boolean.gastebad_schalter_betatigt + for: + hours: 0 + minutes: 0 + seconds: 0 + conditions: [] + actions: + - delay: + hours: 0 + minutes: 0 + seconds: 10 + milliseconds: 0 + - action: input_boolean.turn_off + metadata: {} + target: + entity_id: input_boolean.gastebad_schalter_betatigt + data: {} + mode: single +- id: '1768146592789' + alias: 'Push: Wäschetrockner eingeschaltet' + description: '' + triggers: + - trigger: numeric_state + entity_id: + - sensor.steckdose_trockner_leistung + above: 200 + for: + hours: 0 + minutes: 5 + seconds: 0 + conditions: [] + actions: + - action: input_boolean.turn_on + metadata: {} + target: + entity_id: + - input_boolean.trockner_aktiv + data: {} + mode: single +- id: '1768146664122' + alias: 'Push: Wäschetrockner fertig' + description: '' + triggers: + - trigger: numeric_state + entity_id: + - sensor.steckdose_trockner_leistung + below: 5 + for: + hours: 0 + minutes: 5 + seconds: 0 + conditions: + - condition: state + entity_id: input_boolean.trockner_aktiv + state: + - 'on' + - condition: state + entity_id: input_boolean.steuerung_trockner + state: + - 'on' + actions: + - action: input_boolean.turn_off + metadata: {} + target: + entity_id: + - input_boolean.trockner_aktiv + data: {} + - action: notify.gotify + metadata: {} + data: + message: "Wäschetrockner ist fertig \n{{ as_timestamp(now()) | timestamp_custom(\"%H:%M, + %d.%m.%Y\") }}" + title: Wäschetrockner + mode: single +- id: '1768207426165' + alias: 'Zeit: Empore einschalten um 6:30 Uhr' + description: '' + triggers: + - trigger: time + at: 06:30:00 + conditions: + - condition: state + entity_id: binary_sensor.werktag + state: + - 'on' + actions: + - type: turn_on + device_id: a96d0930d893df37328b608045a16ab5 + entity_id: 03ae02f08696d21dfd25ba60b38ccb9b + domain: light + mode: single +- id: '1768207528078' + alias: 'Zeit: Empore ausschalten um 7:30 Uhr' + description: '' + triggers: + - trigger: time + at: 07:30:00 + conditions: + - condition: state + entity_id: binary_sensor.werktag + state: + - 'on' + - condition: device + type: is_on + device_id: a96d0930d893df37328b608045a16ab5 + entity_id: 03ae02f08696d21dfd25ba60b38ccb9b + domain: light + actions: + - type: turn_off + device_id: a96d0930d893df37328b608045a16ab5 + entity_id: 03ae02f08696d21dfd25ba60b38ccb9b + domain: light + mode: single diff --git a/configuration.yaml b/configuration.yaml index a5bcbcb..9e8382c 100755 --- a/configuration.yaml +++ b/configuration.yaml @@ -146,7 +146,7 @@ panel_custom: adaptive_lighting: name: "Standard" max_brightness: 90 - min_brightness: 1 + min_brightness: 3 max_color_temp: 4750 lights: # Büro @@ -531,7 +531,7 @@ sensor: name: temperatur_wohnraeume type: mean -#Discogs +# Discogs - platform: discogs name: Discogs token: RRvvAbBgtIJAMCDlDDvYedERMUHBodSEISEZdkqY @@ -540,3 +540,18 @@ sensor: - wantlist - random_record +# Discogs Enhanced + - platform: discogs_enhanced + token: RRvvAbBgtIJAMCDlDDvYedERMUHBodSEISEZdkqY + name: Plattensammlung # Optional, defaults to "Discogs" + monitored_conditions: +# - collection +# - wantlist +# - random_record + - collection_value_min + - collection_value_median + - collection_value_max + # --- 2 new entities for counting specific formats --- + - vinyl_count + - cd_count +