Home-AssistantConfig/config/packages/fitness_steps.yaml

36 lines
1.5 KiB
YAML
Raw Normal View History

2018-01-02 00:00:45 +00:00
#-------------------------------------------
# @CCOSTAN
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
# Try to leverage iPhone Mobile App Data for Activity Tweets!
# You can read more about this on https://www.vCloudInfo.com
2018-01-02 00:00:45 +00:00
#-------------------------------------------
2018-01-02 00:00:45 +00:00
##############################################################################
### Automations
2018-01-02 00:00:45 +00:00
##############################################################################
automation:
- alias: 'Step Tracker' # https://github.com/CCOSTAN/Home-AssistantConfig/issues/786
2018-01-02 00:00:45 +00:00
trigger:
- platform: numeric_state
entity_id:
- sensor.carlo_xsmax_steps
- sensor.paige_6s_steps
- sensor.steps_3
above: 5000
2018-01-02 00:00:45 +00:00
action:
2018-03-18 01:14:50 +00:00
- service: script.tweet_engine_image
2018-01-02 00:00:45 +00:00
data_template:
tweet: >
{{ [
"Somebody just hit {{ states('trigger.entity_id') }} steps on the #Fitbit!",
"Keep on moving. Somebody just hit {{ states('strigger.entity_id') }} #Fitbit steps.",
"#Fitness Tracking at home BY the home. Somebody just hit {{ states('trigger.entity_id') }} #Fitbit steps"
] | random + " #Self #Data"}}
image: >-
{{ [
"/config/www/custom_ui/floorplan/images/branding/fitness.png",
2018-03-18 00:11:11 +00:00
"/config/www/custom_ui/floorplan/images/branding/fitness2.png",
"/config/www/custom_ui/floorplan/images/branding/fitness3.png"
] | random }}