2018-01-31 03:58:36 +00:00
|
|
|
#-------------------------------------------
|
|
|
|
# @CCOSTAN
|
|
|
|
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
|
|
|
|
# Neato Support for D7 Connected Botvac - control my [Neato Vacuum](http://amzn.to/2kqnnqu) with Home Assistant.
|
|
|
|
#-------------------------------------------
|
|
|
|
# homeassistant:
|
|
|
|
# customize_glob:
|
|
|
|
# "*.*_sleep_hours":
|
|
|
|
# unit_of_measurement: hours
|
|
|
|
# icon: mdi:sleep
|
|
|
|
#
|
|
|
|
# hidden: False
|
|
|
|
#-------------------------------------------
|
|
|
|
sensor:
|
|
|
|
platform: minecraft
|
|
|
|
name: Bear Stone
|
2018-01-31 04:02:24 +00:00
|
|
|
server: !secret minecraft
|
2018-01-31 03:58:36 +00:00
|
|
|
#-------------------------------------------
|
2018-02-01 03:17:09 +00:00
|
|
|
group:
|
|
|
|
Minecraft:
|
|
|
|
entities:
|
|
|
|
- sensor.bear_stone
|
2018-01-31 03:58:36 +00:00
|
|
|
|
|
|
|
##############################################################################
|
|
|
|
### Automations - Detect when things are not right. Like any Good Watchdog.
|
|
|
|
##############################################################################
|
|
|
|
#automation:
|
|
|
|
#Tweets pushed out to twitter.
|
2018-02-01 03:17:09 +00:00
|
|
|
automation:
|
|
|
|
- alias: Someone on the MC server!
|
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id: sensor.bear_stone
|
2018-02-01 21:06:21 +00:00
|
|
|
|
|
|
|
condition:
|
|
|
|
- condition: template
|
|
|
|
value_template: >
|
|
|
|
{% if states.sensor.bear_stone.state|int == 0 %}
|
|
|
|
false
|
|
|
|
{% else %}
|
|
|
|
true
|
|
|
|
{% endif %}
|
2018-02-01 03:17:09 +00:00
|
|
|
|
|
|
|
action:
|
|
|
|
- service: script.notify_engine
|
|
|
|
data_template:
|
2018-02-01 21:06:21 +00:00
|
|
|
value1: "There are {{states.sensor.bear_stone.state}} Minecraft users online: {{ states.sensor.bear_stone.attributes.users_online }}"
|
2018-02-01 03:17:09 +00:00
|
|
|
who: 'carlo'
|
2018-02-03 15:25:20 +00:00
|
|
|
|
|
|
|
- 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 %}
|
2018-02-03 15:27:50 +00:00
|
|
|
|
|
|
|
- service: light.turn_on
|
|
|
|
entity_id:
|
|
|
|
- light.justin_go
|
|
|
|
data:
|
|
|
|
flash: long
|
|
|
|
|
|
|
|
- service: script.flash_notify
|