mysmarthome/packages/life360.yaml

52 lines
2.0 KiB
YAML
Raw Normal View History

2019-04-17 18:46:06 -04:00
###############################################################################
2019-07-07 16:47:16 -04:00
# PACKAGE: LIFE365 SENSOR
# Description: The Life365 sensor requires username, password and mqtt topic.
2019-04-17 18:46:06 -04:00
# Whatever the topic you specify, the data will be dumped there.
2019-07-07 16:47:16 -04:00
# Use the exact topic name in the Parse Life365 Data automation.
#
# What is Life365?
# It is Life360 sensor, much simpler and a lot better ;)
# this component used to be life360, until it has a conflict with official
# component..., so I simply changed to Life365!
2019-04-17 18:46:06 -04:00
###############################################################################
homeassistant:
customize:
2019-07-07 16:47:16 -04:00
sensor.life365_sensor:
friendly_name: Life 365
2019-04-17 18:46:06 -04:00
hidden: true
sensor:
2019-07-07 16:47:16 -04:00
- platform: life365
2019-04-17 18:46:06 -04:00
username: !secret life360_username
password: !secret life360_password
mqtt_topic: "/life360/data"
scan_interval: 15
###############################################################################
# _ _ _
# /\ | | | | (_)
# / \ _ _| |_ ___ _ __ ___ __ _| |_ _ ___ _ __ ___
# / /\ \| | | | __/ _ \| '_ ` _ \ / _` | __| |/ _ \| '_ \/ __|
# / ____ \ |_| | || (_) | | | | | | (_| | |_| | (_) | | | \__ \
# /_/ \_\__,_|\__\___/|_| |_| |_|\__,_|\__|_|\___/|_| |_|___/
#
###############################################################################
automation:
###############################################################################
# Alert me When the sensor fails
###############################################################################
2019-07-07 16:47:16 -04:00
- alias: Alert Life365 Error
2019-04-17 18:46:06 -04:00
initial_state: true
trigger:
platform: state
2019-07-07 16:47:16 -04:00
entity_id: sensor.life365_sensor
2019-04-17 18:46:06 -04:00
to: 'error'
for: '00:05:00'
action:
- service: script.notify_me
data_template:
2019-07-07 16:47:16 -04:00
message: "Life365 Sensor state changed to: {{ trigger.to_state.state| upper }}."