This is the current config. Moved old to the v1-config branch

This commit is contained in:
Jeffrey Stone
2018-03-06 11:04:37 -05:00
parent d0e9db33c8
commit 67ecd08d7a
81 changed files with 1745 additions and 352 deletions

25
sensors/house.yaml Normal file
View File

@@ -0,0 +1,25 @@
- platform: mqtt
name: "Family Status"
state_topic: "house/family/status"
payload_on: "home"
payload_off: "away"
retain: true
- platform: template
sensors:
house_status:
friendly_name: Status
unit_of_measurement: ''
value_template: >-
{%- if is_state("sensor.family_status", "home") %}
Home ({{ states.sensor.security_status.state }})
{% else %}
Away ({{ states.sensor.security_status.state }})
{%- endif %}
icon_template: >-
{%- if is_state("sensor.family_status", "home") %}
mdi:home
{%- elif is_state("sensor.family_status", "away") %}
mdi:home-outline
{% else %}
mdi:home-outline
{%- endif %}