#307 and a little something extra.
This commit is contained in:
parent
32cbbeec34
commit
8442b1a384
|
@ -16,14 +16,33 @@ sensor:
|
|||
name: Bear Stone
|
||||
server: !secret minecraft
|
||||
#-------------------------------------------
|
||||
# group:
|
||||
# finance:
|
||||
# entities:
|
||||
# - sensor.tesla
|
||||
# - sensor.bitcoin
|
||||
group:
|
||||
Minecraft:
|
||||
entities:
|
||||
- sensor.bear_stone
|
||||
|
||||
##############################################################################
|
||||
### Automations - Detect when things are not right. Like any Good Watchdog.
|
||||
##############################################################################
|
||||
#automation:
|
||||
#Tweets pushed out to twitter.
|
||||
automation:
|
||||
- alias: Someone on the MC server!
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: sensor.bear_stone
|
||||
|
||||
condition:
|
||||
- condition: template
|
||||
value_template: >
|
||||
{% if not is_state('sensor.bear_stone', '0/10') %}
|
||||
false
|
||||
{% else %}
|
||||
true
|
||||
{% endif %}
|
||||
|
||||
action:
|
||||
- service: script.notify_engine
|
||||
data_template:
|
||||
value1: "The following users are online: {{ states.sensor.bear_stone.attributes.users_online }}"
|
||||
who: 'carlo'
|
||||
|
|
|
@ -148,6 +148,15 @@ automation:
|
|||
- sensor.network
|
||||
- binary_sensor.carlowink
|
||||
|
||||
condition:
|
||||
- condition: template
|
||||
value_template: >
|
||||
{% if not is_state('sensor.network_detail', ' ') %}
|
||||
false
|
||||
{% else %}
|
||||
true
|
||||
{% endif %}
|
||||
|
||||
action:
|
||||
- service: script.notify_engine
|
||||
data_template:
|
||||
|
|
Loading…
Reference in New Issue