|
|
|
@ -16,14 +16,33 @@ sensor:
|
|
|
|
name: Bear Stone
|
|
|
|
name: Bear Stone
|
|
|
|
server: !secret minecraft
|
|
|
|
server: !secret minecraft
|
|
|
|
#-------------------------------------------
|
|
|
|
#-------------------------------------------
|
|
|
|
# group:
|
|
|
|
group:
|
|
|
|
# finance:
|
|
|
|
Minecraft:
|
|
|
|
# entities:
|
|
|
|
entities:
|
|
|
|
# - sensor.tesla
|
|
|
|
- sensor.bear_stone
|
|
|
|
# - sensor.bitcoin
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
##############################################################################
|
|
|
|
##############################################################################
|
|
|
|
### Automations - Detect when things are not right. Like any Good Watchdog.
|
|
|
|
### Automations - Detect when things are not right. Like any Good Watchdog.
|
|
|
|
##############################################################################
|
|
|
|
##############################################################################
|
|
|
|
#automation:
|
|
|
|
#automation:
|
|
|
|
#Tweets pushed out to twitter.
|
|
|
|
#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'
|
|
|
|
|