Updates to #307 - turn the light on when someone logs into minecraft.

This commit is contained in:
ccostan 2018-02-03 10:25:20 -05:00
parent 2de447876a
commit d02cfe1bab
2 changed files with 12 additions and 0 deletions

View File

@ -46,3 +46,14 @@ automation:
data_template:
value1: "There are {{states.sensor.bear_stone.state}} Minecraft users online: {{ states.sensor.bear_stone.attributes.users_online }}"
who: 'carlo'
- service: light.turn_on
entity_id:
- light.justin_go
data_template:
color_name: >
{% if states.sensor.bear_stone.state|int == 1 %}
gold
{% else %}
green
{% endif %}

View File

@ -181,5 +181,6 @@ automation:
"My @getspectrum internet download speed is about {{states.sensor.speedtest_download.state}} Mbit/s and I am a #cordcutter. @TabloTV",
"I am keeping track of the current #Tesla stock price. It is {{ states.sensor.tesla.state | round }} dollars. #Solar",
"I am keeping track of the current #Bitcoin prices. It is {{ states.sensor.bitcoin.state | round }} dollars. #BTC",
"There are {{states.sensor.bear_stone.state}} #Minecraft users online at the momemt. #KidStat",
"Average Cloud Coverage: {{states.sensor.dark_sky_cloud_coverage.state}}%, Average Temp: {{states.sensor.dark_sky_temperature.state}}°F #Solar (http://www.vmwareinfo.com/2018/01/going-green-to-save-some-green-in-2018.html)"
] | random + " #RandomStat"}}