Major audible notification overhual. It was hard to maintain. This will be easier. Maybe

This commit is contained in:
Jeffrey Stone
2020-12-02 22:55:11 -05:00
parent 84a5e84fa5
commit d5191c9ab8
24 changed files with 1537 additions and 1564 deletions

View File

@@ -116,11 +116,27 @@ automation:
initial_state: true
alias: 'Full Moon -Tweet'
trigger:
- platform: state
- platform: sun
event: sunset
offset: -00:15:00
condition:
- condition: state
entity_id: sensor.moon
to: 'full_moon'
state: 'full_moon'
action:
- delay: '0{{ (range(1, 5)|random|int) }}:{{ range(0,5) | random | int }}{{ range(0,9) | random | int }}:00'
- service: script.jarvis_voice
data_template:
who: '{{ states.sensor.room_audio.state }}'
message: >
<p>
{{ [
'There is a Full Moon out tonight. and this time it is the <emphasis>actual</emphasis> moon. And <emphasis>not</emphasis> the neighbor. ',
'Hey look, There is the full moon. ',
'The moon is <emphasis>huge<e/mphasis>! And full. ',
'If you went outside right now you might see the full moon. <break time="2s"/> Of course if you wait long enough there will be one inside the house too. ',
'If you want to see the full moon, <emphasis>tonight is the night</emphasis>.']
| random }}
</p>
- service: script.twitter_notify_image
data_template:
tweet: >-