Sleep as Android, Gdoor, fixes and update.
This commit is contained in:
		| @@ -1 +1 @@ | |||||||
| 2025.8.3 | 2025.9.0 | ||||||
							
								
								
									
										154
									
								
								automations.yaml
									
									
									
									
									
								
							
							
						
						
									
										154
									
								
								automations.yaml
									
									
									
									
									
								
							| @@ -72,6 +72,12 @@ | |||||||
|   - entity_id: input_text.sleep_as_android |   - entity_id: input_text.sleep_as_android | ||||||
|     to: sleep_tracking_started |     to: sleep_tracking_started | ||||||
|     trigger: state |     trigger: state | ||||||
|  |     enabled: false | ||||||
|  |   - trigger: state | ||||||
|  |     entity_id: | ||||||
|  |     - event.sleep_as_android_schlaf_tracking | ||||||
|  |     attribute: event_type | ||||||
|  |     to: started | ||||||
|   conditions: [] |   conditions: [] | ||||||
|   actions: |   actions: | ||||||
|   - target: |   - target: | ||||||
| @@ -89,9 +95,48 @@ | |||||||
|   - data: |   - data: | ||||||
|       message: Gute Nacht! |       message: Gute Nacht! | ||||||
|     action: notify.mobile_app_le2123 |     action: notify.mobile_app_le2123 | ||||||
|  |   - data: | ||||||
|  |       media: | ||||||
|  |         media_content_id: media-source://tts/tts.piper?message=Gute+Nacht%2C+schlaf+gut. | ||||||
|  |         media_content_type: provider | ||||||
|  |         metadata: | ||||||
|  |           title: Gute Nacht, schlaf gut. | ||||||
|  |           thumbnail: https://brands.home-assistant.io/_/tts/logo.png | ||||||
|  |           media_class: app | ||||||
|  |           children_media_class: | ||||||
|  |           navigateIds: | ||||||
|  |           - {} | ||||||
|  |           - media_content_type: app | ||||||
|  |             media_content_id: media-source://tts | ||||||
|  |           - media_content_type: provider | ||||||
|  |             media_content_id: media-source://tts/tts.piper?message=Gute+Nacht%2C+schlaf+gut. | ||||||
|  |     action: media_player.play_media | ||||||
|  |     enabled: true | ||||||
|  |     target: | ||||||
|  |       entity_id: media_player.home_assistant_voice_09c0e7_media_player | ||||||
|  |   - data: | ||||||
|  |       media: | ||||||
|  |         media_content_id: media-source://tts/tts.piper?message=Gute+Nacht%2C+schlaf+gut. | ||||||
|  |         media_content_type: provider | ||||||
|  |         metadata: | ||||||
|  |           title: Gute Nacht, schlaf gut. | ||||||
|  |           thumbnail: https://brands.home-assistant.io/_/tts/logo.png | ||||||
|  |           media_class: app | ||||||
|  |           children_media_class: | ||||||
|  |           navigateIds: | ||||||
|  |           - {} | ||||||
|  |           - media_content_type: app | ||||||
|  |             media_content_id: media-source://tts | ||||||
|  |           - media_content_type: provider | ||||||
|  |             media_content_id: media-source://tts/tts.piper?message=Gute+Nacht%2C+schlaf+gut. | ||||||
|  |     action: media_player.play_media | ||||||
|  |     enabled: true | ||||||
|  |     target: | ||||||
|  |       entity_id: media_player.m5stack_atom_echo | ||||||
|   - target: |   - target: | ||||||
|       entity_id: media_player.raspiaudio_muse_luxe |       entity_id: media_player.raspiaudio_muse_luxe | ||||||
|     data: |     data: | ||||||
|  |       media: | ||||||
|         media_content_id: media-source://tts/tts.piper?message=Gute+Nacht%2C+schlaf+gut. |         media_content_id: media-source://tts/tts.piper?message=Gute+Nacht%2C+schlaf+gut. | ||||||
|         media_content_type: provider |         media_content_type: provider | ||||||
|         metadata: |         metadata: | ||||||
| @@ -211,29 +256,51 @@ | |||||||
|     target: |     target: | ||||||
|       entity_id: tts.piper |       entity_id: tts.piper | ||||||
|     action: tts.speak |     action: tts.speak | ||||||
|     enabled: false |     enabled: true | ||||||
|  |   - data: | ||||||
|  |       cache: true | ||||||
|  |       media_player_entity_id: media_player.home_assistant_voice_09c0e7_media_player_2 | ||||||
|  |       message: Ab ins Bett, Schlafenszeit. | ||||||
|  |     target: | ||||||
|  |       entity_id: tts.piper | ||||||
|  |     action: tts.speak | ||||||
|  |     enabled: true | ||||||
|  |   - data: | ||||||
|  |       cache: true | ||||||
|  |       media_player_entity_id: media_player.m5stack_atom_echo | ||||||
|  |       message: Ab ins Bett, Schlafenszeit. | ||||||
|  |     target: | ||||||
|  |       entity_id: tts.piper | ||||||
|  |     action: tts.speak | ||||||
|  |     enabled: true | ||||||
|   mode: single |   mode: single | ||||||
| - id: '1623954512941' | - id: '1623954512941' | ||||||
|   alias: Licht im Schlafzimmer zum Aufwachen einschalten |   alias: Licht im Schlafzimmer zum Aufwachen einschalten | ||||||
|   description: Nach der Alarmquittierung |   description: Nach der Alarmquittierung | ||||||
|   trigger: |   triggers: | ||||||
|   - platform: state |   - entity_id: input_text.sleep_as_android | ||||||
|     entity_id: input_text.sleep_as_android |  | ||||||
|     to: alarm_alert_start |     to: alarm_alert_start | ||||||
|   condition: |     trigger: state | ||||||
|  |     enabled: false | ||||||
|  |   - trigger: state | ||||||
|  |     entity_id: | ||||||
|  |     - event.sleep_as_android_schlaf_tracking | ||||||
|  |     attribute: event_type | ||||||
|  |     to: stopped | ||||||
|  |   conditions: | ||||||
|   - condition: state |   - condition: state | ||||||
|     entity_id: person.marcus_scholz |     entity_id: person.marcus_scholz | ||||||
|     state: home |     state: home | ||||||
|   action: |   actions: | ||||||
|   - delay: |   - delay: | ||||||
|       hours: 0 |       hours: 0 | ||||||
|       minutes: 0 |       minutes: 1 | ||||||
|       seconds: 30 |       seconds: 0 | ||||||
|       milliseconds: 0 |       milliseconds: 0 | ||||||
|   - service: light.turn_on |   - target: | ||||||
|     target: |  | ||||||
|       device_id: 68868390eda35e969ec60a13020f2407 |       device_id: 68868390eda35e969ec60a13020f2407 | ||||||
|     data: {} |     data: {} | ||||||
|  |     action: light.turn_on | ||||||
|   mode: single |   mode: single | ||||||
| - id: '1624820688449' | - id: '1624820688449' | ||||||
|   alias: 'Anruf: Beim Klingeln grün blinken' |   alias: 'Anruf: Beim Klingeln grün blinken' | ||||||
| @@ -378,6 +445,12 @@ | |||||||
|   - entity_id: input_text.sleep_as_android |   - entity_id: input_text.sleep_as_android | ||||||
|     to: sleep_tracking_stopped |     to: sleep_tracking_stopped | ||||||
|     trigger: state |     trigger: state | ||||||
|  |     enabled: false | ||||||
|  |   - trigger: state | ||||||
|  |     entity_id: | ||||||
|  |     - event.sleep_as_android_schlaf_tracking | ||||||
|  |     attribute: event_type | ||||||
|  |     to: stopped | ||||||
|   conditions: |   conditions: | ||||||
|   - condition: state |   - condition: state | ||||||
|     entity_id: person.marcus_scholz |     entity_id: person.marcus_scholz | ||||||
| @@ -705,14 +778,13 @@ | |||||||
| - id: '1698954553138' | - id: '1698954553138' | ||||||
|   alias: 'Awtrix: Jahresfortschirtt' |   alias: 'Awtrix: Jahresfortschirtt' | ||||||
|   description: Jahresfortschritt in % |   description: Jahresfortschritt in % | ||||||
|   trigger: |   triggers: | ||||||
|   - platform: time_pattern |   - hours: '*' | ||||||
|     hours: '*' |  | ||||||
|     minutes: 0 |     minutes: 0 | ||||||
|   condition: [] |     trigger: time_pattern | ||||||
|   action: |   conditions: [] | ||||||
|   - service: mqtt.publish |   actions: | ||||||
|     data: |   - data: | ||||||
|       payload: '{# Get current timestamp #} {%- set now = now() -%} {# Start of current |       payload: '{# Get current timestamp #} {%- set now = now() -%} {# Start of current | ||||||
|         year #} {%- set startOfYear = now.replace(year=now.year, month=1, day=1, hour=0, |         year #} {%- set startOfYear = now.replace(year=now.year, month=1, day=1, hour=0, | ||||||
|         minute=0, second=0, microsecond=0) -%} {# Determine end of current year #} |         minute=0, second=0, microsecond=0) -%} {# Determine end of current year #} | ||||||
| @@ -722,9 +794,24 @@ | |||||||
|         = as_timestamp(now) - as_timestamp(startOfYear) -%} {%- set progress = ( current |         = as_timestamp(now) - as_timestamp(startOfYear) -%} {%- set progress = ( current | ||||||
|         / total  * 100 ) | round(0, "floor", 0) -%} {# Output #} { "text": "{{ progress |         / total  * 100 ) | round(0, "floor", 0) -%} {# Output #} { "text": "{{ progress | ||||||
|         }} %", "icon": "y2023"}' |         }} %", "icon": "y2023"}' | ||||||
|       topic: awtrix_b8658c/custom/yearprogress |       topic: awtrix_desk/custom/yearprogress | ||||||
|       qos: 0 |       qos: 0 | ||||||
|       retain: false |       retain: false | ||||||
|  |     action: mqtt.publish | ||||||
|  |   - data: | ||||||
|  |       payload: '{# Get current timestamp #} {%- set now = now() -%} {# Start of current | ||||||
|  |         year #} {%- set startOfYear = now.replace(year=now.year, month=1, day=1, hour=0, | ||||||
|  |         minute=0, second=0, microsecond=0) -%} {# Determine end of current year #} | ||||||
|  |         {%- set endOfYear = startOfYear.replace(month=12, day=31, hour=23, minute=59, | ||||||
|  |         second=59, microsecond=999999) -%} {# Calculate progress #} {%- set total | ||||||
|  |         = as_timestamp(endOfYear) - as_timestamp(startOfYear) -%} {%- set current | ||||||
|  |         = as_timestamp(now) - as_timestamp(startOfYear) -%} {%- set progress = ( current | ||||||
|  |         / total  * 100 ) | round(0, "floor", 0) -%} {# Output #} { "text": "{{ progress | ||||||
|  |         }} %", "icon": "y2023"}' | ||||||
|  |       topic: awtrix_kitchen/custom/yearprogress | ||||||
|  |       qos: 0 | ||||||
|  |       retain: false | ||||||
|  |     action: mqtt.publish | ||||||
|   mode: single |   mode: single | ||||||
| - id: '1699955800413' | - id: '1699955800413' | ||||||
|   alias: 'Awtrix: Laufender Spotify Song' |   alias: 'Awtrix: Laufender Spotify Song' | ||||||
| @@ -1167,3 +1254,34 @@ | |||||||
|     target: |     target: | ||||||
|       entity_id: input_boolean.waschetrockner_aktiv |       entity_id: input_boolean.waschetrockner_aktiv | ||||||
|   mode: single |   mode: single | ||||||
|  | - id: '1756756139646' | ||||||
|  |   alias: Türklingel | ||||||
|  |   description: Benachrichtigung über Wohnungs- oder Haustürklingeln | ||||||
|  |   triggers: | ||||||
|  |   - trigger: mqtt | ||||||
|  |     topic: gdoor/bus_rx | ||||||
|  |   actions: | ||||||
|  |   - choose: | ||||||
|  |     - conditions: | ||||||
|  |       - condition: template | ||||||
|  |         value_template: '{{ trigger.payload_json.action == ''BUTTON_RING'' and trigger.payload_json.parameters | ||||||
|  |           == ''0560'' }}' | ||||||
|  |       sequence: | ||||||
|  |       - data: | ||||||
|  |           data: | ||||||
|  |             push: | ||||||
|  |               interruption-level: time-sensitive | ||||||
|  |           message: Türklingel (außen) | ||||||
|  |         action: notify.alle_mobilen_gerate | ||||||
|  |     - conditions: | ||||||
|  |       - condition: template | ||||||
|  |         value_template: '{{ trigger.payload_json.action == ''BUTTON_FLOOR'' and trigger.payload_json.parameters | ||||||
|  |           == ''FF6F'' }}' | ||||||
|  |       sequence: | ||||||
|  |       - data: | ||||||
|  |           data: | ||||||
|  |             push: | ||||||
|  |               interruption-level: time-sensitive | ||||||
|  |           message: Türklingel (innen) | ||||||
|  |         action: notify.alle_mobilen_gerate | ||||||
|  |   mode: single | ||||||
|   | |||||||
| @@ -20,6 +20,7 @@ automation: !include automations.yaml | |||||||
| automation webhooks: !include automations_webhooks.yaml | automation webhooks: !include automations_webhooks.yaml | ||||||
| script: !include scripts.yaml | script: !include scripts.yaml | ||||||
| scene: !include scenes.yaml | scene: !include scenes.yaml | ||||||
|  | notify: !include notify.yaml | ||||||
|  |  | ||||||
| # Enable additional integrations | # Enable additional integrations | ||||||
| # Enable 'wake_on_lan' intrgration | # Enable 'wake_on_lan' intrgration | ||||||
| @@ -74,4 +75,3 @@ generic_hygrostat: | |||||||
|     away_humidity: 60 |     away_humidity: 60 | ||||||
|     away_fixed: true |     away_fixed: true | ||||||
|     sensor_stale_duration: 00:15:00 |     sensor_stale_duration: 00:15:00 | ||||||
|  |  | ||||||
|   | |||||||
							
								
								
									
										9
									
								
								notify.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								notify.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,9 @@ | |||||||
|  | #All Mobile Phones | ||||||
|  | - platform: group | ||||||
|  |   name: "Alle mobilen Geräte" | ||||||
|  |   services: | ||||||
|  |     - service: mobile_app_le2123 | ||||||
|  |     - service: mobile_app_apollo | ||||||
|  |     - service: mobile_app_xt2125_4 | ||||||
|  |  | ||||||
|  |  | ||||||
		Reference in New Issue
	
	Block a user