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:
|
||||||
condition: template
|
condition: template
|
||||||
value_template: >
|
value_template: >
|
||||||
{%- if sensor.steps < 1000 -%}
|
{%- if states.sensor.steps.state.replace(",", "")|int < 1000 -%}
|
||||||
true
|
true
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
action:
|
action:
|
||||||
|
@ -49,10 +49,16 @@ automation:
|
||||||
- alias: 'Fitbit 10k'
|
- alias: 'Fitbit 10k'
|
||||||
initial_state: 'on'
|
initial_state: 'on'
|
||||||
trigger:
|
trigger:
|
||||||
- platform: numeric_state
|
- platform: state
|
||||||
entity_id: sensor.steps
|
entity_id:
|
||||||
above: 10000
|
- 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:
|
action:
|
||||||
- service: script.tweet_engine
|
- service: script.tweet_engine
|
||||||
data_template:
|
data_template:
|
||||||
|
@ -61,4 +67,4 @@ automation:
|
||||||
"Somebody just hit {{ states('sensor.steps') }} steps on the #Fitbit!",
|
"Somebody just hit {{ states('sensor.steps') }} steps on the #Fitbit!",
|
||||||
"Keep on moving. Somebody just hit {{ states('sensor.steps') }} steps.",
|
"Keep on moving. Somebody just hit {{ states('sensor.steps') }} steps.",
|
||||||
"#Fitness Tracking at home BY the home. 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