mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-08-20 12:10:28 +00:00
Remove all Twitter instances since they went to a pay model.
This commit is contained in:
@@ -125,42 +125,3 @@ sensor:
|
||||
value_template: "{{ (value|replace(' days', '')) | int }}"
|
||||
unit_of_measurement: Days
|
||||
scan_interval: 43200
|
||||
###############################################################################
|
||||
# Automation that notifies of a Holiday "state" change
|
||||
###############################################################################
|
||||
automation:
|
||||
- alias: Notify Holiday State Change
|
||||
id: 77ce63e4-0a6e-485e-85a8-687a5a2d9df7
|
||||
|
||||
initial_state: true
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id:
|
||||
- sensor.holiday
|
||||
condition:
|
||||
- condition: template
|
||||
value_template: "{{ states('sensor.holiday') != 'unknown' }}"
|
||||
- condition: template
|
||||
value_template: "{{ states.sensor.holiday.state | trim != '' }}"
|
||||
action:
|
||||
|
||||
- delay: '0{{ (range(4, 8)|random|int) }}:{{ range(0,5) | random | int }}{{ range(0,9) | random | int }}:{{ range(0,5) | random | int }}{{ range(0,9) | random | int }}'
|
||||
- service: script.tweet_engine_image
|
||||
data:
|
||||
tweet: >
|
||||
{{ [
|
||||
"Today is {{ states.sensor.holiday.state }}. Time to adjust the outside light colors!",
|
||||
"Today is {{ states.sensor.holiday.state }}.",
|
||||
"Is today {{ states.sensor.holiday.state }}?",
|
||||
"Just checked with Alexa & today is {{ states.sensor.holiday.state }}."
|
||||
] | random + [
|
||||
" #DayOff",
|
||||
"(https://www.vmwareinfo.com/2017/07/my-smart-home-look-at-parts-that-make.html)",
|
||||
"(https://www.vmwareinfo.com/2017/08/diy-outdoor-smart-home-led-strips.html)",
|
||||
"https://www.vcloudinfo.com/2019/02/everyday-holiday-smart-lights-valentines-day-edition.html)",
|
||||
"#{{ states.sensor.holiday.state }}"
|
||||
] | random }}
|
||||
image: >-
|
||||
{{ [
|
||||
"/config/www/custom_ui/floorplan/images/branding/light4.png"
|
||||
] | random }}
|
||||
|
Reference in New Issue
Block a user