Skip to content

Commit

Permalink
Merge pull request #33 from caiosweet/dev
Browse files Browse the repository at this point in the history
Removed "DISCLAIMER ..." from the description of the Meteoalarm sensor.
  • Loading branch information
caiosweet authored Aug 15, 2021
2 parents d1582f2 + 81d2c00 commit d293ec3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion config/lovelace/cards/card_natural_events_light.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ cards:
**Titolo**<br>
<font color="{{mycolor}}"> {{state_attr('binary_sensor.meteoalarm', 'headline')}} </font><br><br>
**Descrizione**<br>
<font color="{{mycolor}}"> {{state_attr('binary_sensor.meteoalarm', 'description')}} </font><br><br>
<font color="{{mycolor}}"> {{state_attr('binary_sensor.meteoalarm', 'description').split('(DISCLAIMER')[0]}} </font><br>
**Istruzioni**<br>
<font color="{{mycolor}}"> {{state_attr('binary_sensor.meteoalarm', 'instruction')}} </font><br><br>
[MeteoAlarm]({{state_attr('binary_sensor.meteoalarm', 'web')|replace('http://','https://')}})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ cards:
**Titolo**<br>
<font color="{{mycolor}}"> {{state_attr('binary_sensor.meteoalarm', 'headline')}} </font><br><br>
**Descrizione**<br>
<font color="{{mycolor}}"> {{state_attr('binary_sensor.meteoalarm', 'description')}} </font><br><br>
<font color="{{mycolor}}"> {{state_attr('binary_sensor.meteoalarm', 'description').split('(DISCLAIMER')[0]}} </font><br>
**Istruzioni**<br>
<font color="{{mycolor}}"> {{state_attr('binary_sensor.meteoalarm', 'instruction')}} </font><br><br>
[MeteoAlarm]({{state_attr('binary_sensor.meteoalarm', 'web')|replace('http://','https://')}})
Expand Down
7 changes: 4 additions & 3 deletions config/packages/natural_events.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ homeassistant:
package: "Natural_events 🌍"
site: "hassiohelp.eu 🌐"
author: "Caio & Gianpi"
version: "2021.8.1"
version: "2021.8.2"
##--------------------- IMPOSTAZIONI DEL PACKAGE ---------------------##
## DEFAULT
SCRIPT centro notifiche: &DEFAULT_SCRIPT !secret pkg_natural_events_script
Expand Down Expand Up @@ -991,7 +991,8 @@ automation:
type: "{{attr.get('awareness_type')|regex_replace(find='(\\D)')|int}}" #|regex_replace(find="[^\d][^;]*")|int
meteoalarm_tts_msg: >
{{("oh no! ", "accipicchia! ", "accidenti! ", "attenzione! ", "come non detto! ") |random }}
per {{WEEKDAYS[day]}}, {{attr.get('headline','Test Intestazione')}}, {{attr.get('description', 'Test Descrizione')}}
per {{WEEKDAYS[day]}}, {{attr.get('headline','Test Intestazione')}},
{{attr.get('description', 'Test Descrizione').split('(DISCLAIMER')[0]}}
action:
- service: *DEFAULT_SCRIPT
data:
Expand All @@ -1002,7 +1003,7 @@ automation:
message: |
Per {{WEEKDAYS[day]}}
{{WARNING_SIGN[level].icon_color}} {{(METEOALARM_SIGN[type].text)|upper}}. Allerta {{WARNING_SIGN[level].text}}
Descrizione: {{attr.get('description','Test Descrizione')}}
Descrizione: {{attr.get('description','Test Descrizione').split('(DISCLAIMER')[0]}}
{{as_timestamp(attr.get('effective'))|timestamp_custom('Valido dalle ore %H:%M del %d/%m')|default(now(),true)}}
{{as_timestamp(attr.get('expires'))|timestamp_custom(' alle ore %H:%M del %d/%m')|default(now(),true)}}
file: >-
Expand Down

0 comments on commit d293ec3

Please sign in to comment.