mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-11-06 17:51:36 +00:00
Working on #87 - Adding dash button for my Medicine.
This commit is contained in:
@@ -23,13 +23,14 @@
|
|||||||
{% set person = trigger.entity_id.split('.')[1]|replace('_', ' ')%}
|
{% set person = trigger.entity_id.split('.')[1]|replace('_', ' ')%}
|
||||||
{%- macro greeting_sentence(person) -%}
|
{%- macro greeting_sentence(person) -%}
|
||||||
{{ [
|
{{ [
|
||||||
"Welcome home " ~ person,
|
"Welcome back home " ~ person,
|
||||||
"Guess who is home? " ~ person +" is!",
|
"Guess who is home? " ~ person +" is!",
|
||||||
"Attention: " ~ person + " is now in the house.",
|
"Attention! " ~ person + " is now in the house.",
|
||||||
"Welcome Home " ~ person + ". We've missed you. or at least Molly did.",
|
"Welcome Home " ~ person + ". We've missed you. Or at least Molly did.",
|
||||||
"Our home is now complete, Rest your head and relax your feet! Welcome Back " ~ person,
|
"Our home is now complete, Rest your head and relax your feet! Welcome Back " ~ person,
|
||||||
"Life is like a song, you’re back where you belong. Welcome home " ~ person,
|
"Life is like a song, you’re back where you belong. Welcome home " ~ person,
|
||||||
"Hey there " ~ person + " Welcome Home!",
|
"Hey there " ~ person + " Welcome Home!",
|
||||||
|
"Knock Knock. Who is There? " ~ person +" is!",
|
||||||
person ~ "! You're home!"
|
person ~ "! You're home!"
|
||||||
] | random }}
|
] | random }}
|
||||||
{%- endmacro -%}
|
{%- endmacro -%}
|
||||||
|
|||||||
@@ -6,8 +6,6 @@
|
|||||||
trigger:
|
trigger:
|
||||||
- platform: event
|
- platform: event
|
||||||
event_type: brooklyn_dash
|
event_type: brooklyn_dash
|
||||||
- platform: event
|
|
||||||
event_type: simplehuman_dash
|
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- service: light.toggle
|
- service: light.toggle
|
||||||
|
|||||||
24
automation/medicine_logger.yaml
Executable file
24
automation/medicine_logger.yaml
Executable file
@@ -0,0 +1,24 @@
|
|||||||
|
###################################
|
||||||
|
## LOG IFTTT Stuff - Rachio
|
||||||
|
###################################
|
||||||
|
- alias: 'Log Sprinkler Activity'
|
||||||
|
hide_entity: True
|
||||||
|
trigger:
|
||||||
|
- platform: event
|
||||||
|
event_type: simplehuman_dash
|
||||||
|
|
||||||
|
action:
|
||||||
|
|
||||||
|
- service: input_boolean.turn_on
|
||||||
|
entity_id: input_boolean.medicine
|
||||||
|
|
||||||
|
- service: logbook.log
|
||||||
|
data:
|
||||||
|
name: "Medicine Push"
|
||||||
|
message: "Took Medicine today."
|
||||||
|
|
||||||
|
- service: mqtt.publish
|
||||||
|
data_template:
|
||||||
|
payload: '{{ states("sensor.date") }}'
|
||||||
|
topic: 'dash/simplehuman/medicine_time'
|
||||||
|
retain: true
|
||||||
@@ -5,3 +5,7 @@ home_stats:
|
|||||||
responsibilities:
|
responsibilities:
|
||||||
name: responsibilities
|
name: responsibilities
|
||||||
initial: off
|
initial: off
|
||||||
|
|
||||||
|
medicine:
|
||||||
|
name: medicine
|
||||||
|
initial: off
|
||||||
|
|||||||
@@ -8,4 +8,8 @@
|
|||||||
|
|
||||||
- platform: mqtt
|
- platform: mqtt
|
||||||
state_topic: "ifttt/rachio/watering_time"
|
state_topic: "ifttt/rachio/watering_time"
|
||||||
name: "ifttt_rachio_watering_time"
|
name: "Rachio_watering_time"
|
||||||
|
|
||||||
|
- platform: mqtt
|
||||||
|
state_topic: "dash/simplehuman/medicine_time"
|
||||||
|
name: "Medicine time"
|
||||||
|
|||||||
Reference in New Issue
Block a user