Skip to content

Commit 1625a07

Browse files
committed
2023.12.0 fixes in Google and Alexa messages
1 parent a7e9788 commit 1625a07

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

blueprints/cn_fsm/cn_fsm_appliances.yaml

+13-10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
blueprint: #https://www.home-assistant.io/docs/blueprint/schema/
2-
name: CN FSM Elettrodomestici 2023.11.0
2+
name: CN FSM Elettrodomestici 2023.12.0
33
description: |
44
55
## CN FSM Appliances
@@ -14,6 +14,9 @@ blueprint: #https://www.home-assistant.io/docs/blueprint/schema/
1414
- Helper sensor (see https://github.com/jumping2000/ha-packages/tree/main/elettrodomestici_2023 )
1515
- Telegram **or** Mobile App Device **or** ALexa **or** Google **or** "Centro Notifiche"
1616
17+
### Last Update
18+
- fixes in Google and Alexa messages
19+
1720
### Features:
1821
- notifications about appliance status
1922
- notifications about appliance maintenance
@@ -48,7 +51,7 @@ blueprint: #https://www.home-assistant.io/docs/blueprint/schema/
4851
energy_plug:
4952
name: (REQUIRED) Appliance Energy Consumption
5053
description: |
51-
Eenrgy sensor that monitors the enrgy absorbed by device
54+
Eenrgy sensor (kWh) that monitors the energy absorbed by device
5255
Sensore di energia che misura i consumi dell'elettrodomestico
5356
selector:
5457
entity:
@@ -590,12 +593,12 @@ action:
590593
volume_level: "{{ volume_level }}"
591594
target:
592595
entity_id: !input media_player_google
593-
- delay: "00:00:01"
596+
- delay: "00:00:04"
594597
- service: tts.google_translate_say
595598
data:
596-
message: "{{ message }}"
599+
message: "{{ message | regex_replace(find='[^\\w]', replace=' ') }}"
597600
entity_id: !input media_player_google
598-
- delay: "00:00:04"
601+
- delay: "00:00:02"
599602
- if:
600603
condition: template
601604
value_template: "{{ not not media_player_alexa }}"
@@ -605,20 +608,20 @@ action:
605608
volume_level: "{{ volume_level }}"
606609
target:
607610
entity_id: !input media_player_alexa
608-
- delay: "00:00:01"
611+
- delay: "00:00:04"
609612
- service: notify.alexa_media
610613
data:
611-
message: "{{ message }}"
614+
message: "{{ message | regex_replace(find='[^\\w]', replace=' ') }}"
612615
target: !input media_player_alexa
613616
data:
614617
type: announce
615-
- delay: "00:00:04"
618+
- delay: "00:00:02"
616619
- *debug-mode
617620
- alias: Status -> Stato2 (Lavaggio/Riscaldamento) o Stato3 (Risciacquo/Mantenimento)
618621
conditions: "{{ trigger.to_state.state in [stato2,stato3] and send_intermediate }}"
619622
sequence:
620623
- variables:
621-
message: "{{appliance|capitalize}} è in fase di {{ trigger.to_state.state|lower }}"
624+
message: "{{ appliance|capitalize }} è in fase di {{ trigger.to_state.state|lower }}"
622625
- *messaggio-stato
623626
- *debug-mode
624627
- alias: Status --> Stato1
@@ -645,7 +648,7 @@ action:
645648
646649
🏭: {{ energy }} kWh consumati oggi
647650
648-
💰: {{ cost}} € spesi oggi
651+
💰: {{ cost }} € spesi oggi
649652
- *messaggio-stato
650653
- *debug-mode
651654
###################################

0 commit comments

Comments
 (0)