Fitbit doesn't report numbers? Really.. ugh.. Fixed in Yaml at least. #286
This commit is contained in:
parent
7514a536c2
commit
7260e51186
|
@ -37,7 +37,7 @@ automation:
|
|||
condition:
|
||||
condition: template
|
||||
value_template: >
|
||||
{%- if sensor.steps < 1000 -%}
|
||||
{%- if states.sensor.steps.state.replace(",", "")|int < 1000 -%}
|
||||
true
|
||||
{%- endif -%}
|
||||
action:
|
||||
|
@ -49,10 +49,16 @@ automation:
|
|||
- alias: 'Fitbit 10k'
|
||||
initial_state: 'on'
|
||||
trigger:
|
||||
- platform: numeric_state
|
||||
entity_id: sensor.steps
|
||||
above: 10000
|
||||
|
||||
- platform: state
|
||||
entity_id:
|
||||
- binary_sensor.sleepnumber_carlo_carlo_is_in_bed
|
||||
to: 'on'
|
||||
condition:
|
||||
- condition: template
|
||||
value_template: >
|
||||
{%- if states.sensor.steps.state.replace(",", "")|int > 10000 -%}
|
||||
true
|
||||
{%- endif -%}
|
||||
action:
|
||||
- service: script.tweet_engine
|
||||
data_template:
|
||||
|
@ -61,4 +67,4 @@ automation:
|
|||
"Somebody just hit {{ states('sensor.steps') }} steps on the #Fitbit!",
|
||||
"Keep on moving. Somebody just hit {{ states('sensor.steps') }} steps.",
|
||||
"#Fitness Tracking at home BY the home. Somebody just hit {{ states('sensor.steps') }} steps"
|
||||
] | random + " Battery Level:{{ states('sensor.one_battery') }} #Self #Data"}}
|
||||
] | random + " Battery Level:{{ states('sensor.one_battery') }} #Fitness #Self #Data"}}
|
||||
|
|
Loading…
Reference in New Issue