mirror of
https://github.com/thejeffreystone/home-assistant-configuration.git
synced 2025-08-28 08:50:34 +00:00
Major audible notification overhual. It was hard to maintain. This will be easier. Maybe
This commit is contained in:
@@ -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: >-
|
||||
|
Reference in New Issue
Block a user