Created new Locator automation to trigger 'where is everyone automation'. #1472
parent
9b1b76e877
commit
4776b9ddf3
@ -1 +1 @@
|
|||||||
2025.3.3
|
2025.5.3
|
||||||
@ -0,0 +1,25 @@
|
|||||||
|
#-------------------------------------------
|
||||||
|
# Locator Automation
|
||||||
|
# Description: Announces the location of all family members when triggered
|
||||||
|
#
|
||||||
|
# Features:
|
||||||
|
# - Triggered by input_boolean.locator (for Alexa integration)
|
||||||
|
# - Uses speech_engine script to announce where everyone is
|
||||||
|
# - Designed for use with Alexa ("Alexa, turn on locator")
|
||||||
|
#
|
||||||
|
# Follow me on https://www.vcloudinfo.com/click-here
|
||||||
|
#-------------------------------------------
|
||||||
|
- alias: 'Locator'
|
||||||
|
id: locator-announcement-001
|
||||||
|
mode: single
|
||||||
|
trigger:
|
||||||
|
- platform: state
|
||||||
|
entity_id: input_boolean.locator
|
||||||
|
to: 'on'
|
||||||
|
action:
|
||||||
|
- service: script.speech_engine
|
||||||
|
data:
|
||||||
|
call_no_announcement: 1
|
||||||
|
- service: input_boolean.turn_off
|
||||||
|
data:
|
||||||
|
entity_id: input_boolean.locator
|
||||||
@ -0,0 +1,24 @@
|
|||||||
|
#-------------------------------------------
|
||||||
|
# @CCOSTAN
|
||||||
|
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
|
||||||
|
# Minecraft related stuff
|
||||||
|
#-------------------------------------------
|
||||||
|
automation:
|
||||||
|
- alias: Someone on the MC server!
|
||||||
|
id: e7cc50d1-2374-4923-8e0c-2a59ff593cf8
|
||||||
|
trigger:
|
||||||
|
- platform: state
|
||||||
|
entity_id: sensor.minecraft_players_online
|
||||||
|
|
||||||
|
action:
|
||||||
|
- service: script.notify_engine
|
||||||
|
data:
|
||||||
|
value1: >
|
||||||
|
{% if states.sensor.minecraft_players_online.state|int > 0 %}
|
||||||
|
{{ states.sensor.minecraft_players_online.state }} player(s) connected to Minecraft server
|
||||||
|
{% else %}
|
||||||
|
All players disconnected from Minecraft server
|
||||||
|
{% endif %}
|
||||||
|
title: "Minecraft Server Status"
|
||||||
|
who: 'carlo'
|
||||||
|
group: 'information'
|
||||||
@ -1,63 +0,0 @@
|
|||||||
#-------------------------------------------
|
|
||||||
# @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
|
|
||||||
#
|
|
||||||
#
|
|
||||||
#-------------------------------------------
|
|
||||||
sensor:
|
|
||||||
platform: minecraft
|
|
||||||
name: Bear Stone
|
|
||||||
server: !secret minecraft
|
|
||||||
#-------------------------------------------
|
|
||||||
group:
|
|
||||||
Minecraft:
|
|
||||||
entities:
|
|
||||||
- sensor.bear_stone
|
|
||||||
|
|
||||||
##############################################################################
|
|
||||||
### Automations - Detect when things are not right. Like any Good Watchdog.
|
|
||||||
##############################################################################
|
|
||||||
#automation:
|
|
||||||
#Tweets pushed out to X.
|
|
||||||
automation:
|
|
||||||
- alias: Someone on the MC server!
|
|
||||||
id: e7cc50d1-2374-4923-8e0c-2a59ff593cf8
|
|
||||||
trigger:
|
|
||||||
- platform: state
|
|
||||||
entity_id: sensor.bear_stone
|
|
||||||
|
|
||||||
action:
|
|
||||||
- service: light.turn_on
|
|
||||||
entity_id: light.justin_go
|
|
||||||
data:
|
|
||||||
color_name: >
|
|
||||||
{% if states.sensor.bear_stone.state|int == 1 %}
|
|
||||||
gold
|
|
||||||
{% elif states.sensor.bear_stone.state|int == 2 %}
|
|
||||||
green
|
|
||||||
{% elif states.sensor.bear_stone.state|int == 3 %}
|
|
||||||
blue
|
|
||||||
{% else %}
|
|
||||||
red
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
- service: >
|
|
||||||
{% if states.sensor.bear_stone.state|int > 0 %}
|
|
||||||
light.turn_on
|
|
||||||
{% else %}
|
|
||||||
light.turn_off
|
|
||||||
{% endif %}
|
|
||||||
entity_id: light.justin_go
|
|
||||||
|
|
||||||
- service: light.turn_on
|
|
||||||
entity_id:
|
|
||||||
- light.justin_go
|
|
||||||
data:
|
|
||||||
flash: short
|
|
||||||
Loading…
Reference in new issue