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
|
|
|
|
#
|
2020-06-06 20:54:36 +00:00
|
|
|
#
|
2018-01-31 03:58:36 +00:00
|
|
|
#-------------------------------------------
|
|
|
|
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:
|
2023-10-28 17:20:18 +00:00
|
|
|
#Tweets pushed out to X.
|
2018-02-01 03:17:09 +00:00
|
|
|
automation:
|
|
|
|
- alias: Someone on the MC server!
|
2020-07-20 18:33:03 +00:00
|
|
|
id: e7cc50d1-2374-4923-8e0c-2a59ff593cf8
|
2018-02-01 03:17:09 +00:00
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id: sensor.bear_stone
|
2018-02-01 21:06:21 +00:00
|
|
|
|
2018-02-01 03:17:09 +00:00
|
|
|
action:
|
2018-02-04 21:15:39 +00:00
|
|
|
- service: light.turn_on
|
|
|
|
entity_id: light.justin_go
|
2020-09-26 14:52:45 +00:00
|
|
|
data:
|
2018-02-03 15:25:20 +00:00
|
|
|
color_name: >
|
|
|
|
{% if states.sensor.bear_stone.state|int == 1 %}
|
|
|
|
gold
|
2018-02-03 15:37:19 +00:00
|
|
|
{% elif states.sensor.bear_stone.state|int == 2 %}
|
2018-02-03 15:25:20 +00:00
|
|
|
green
|
2018-02-03 15:37:19 +00:00
|
|
|
{% elif states.sensor.bear_stone.state|int == 3 %}
|
|
|
|
blue
|
|
|
|
{% else %}
|
|
|
|
red
|
2018-02-03 15:25:20 +00:00
|
|
|
{% endif %}
|
2018-02-03 15:27:50 +00:00
|
|
|
|
2020-09-26 14:52:45 +00:00
|
|
|
- service: >
|
2018-02-04 21:15:39 +00:00
|
|
|
{% if states.sensor.bear_stone.state|int > 0 %}
|
|
|
|
light.turn_on
|
|
|
|
{% else %}
|
|
|
|
light.turn_off
|
|
|
|
{% endif %}
|
|
|
|
entity_id: light.justin_go
|
2018-02-04 21:24:18 +00:00
|
|
|
|
|
|
|
- service: light.turn_on
|
|
|
|
entity_id:
|
|
|
|
- light.justin_go
|
|
|
|
data:
|
|
|
|
flash: short
|