More work on #285

This commit is contained in:
ccostan 2018-01-19 14:52:57 -05:00
parent 3157021aeb
commit aa7fdf6457
4 changed files with 6 additions and 38 deletions

View File

@ -8,10 +8,6 @@ homeassistant:
"device_tracker.nodemcu*":
icon: mdi:chip
hidden: True
"sensor.nodemcu*":
icon: mdi:alarm-bell
hidden: False
"binary_sensor.mcu?_gpio*":
icon: mdi:security-home
@ -182,24 +178,6 @@ binary_sensor:
# elephant:
# name: Elephant
# initial: off
#-------------------------------------------
sensor:
- platform: template
sensors:
nodemcu1:
friendly_name: 'NodeMCU1'
value_template: "{{ 'Online' if is_state('device_tracker.NodeMCU1', 'home') else 'Offline' }}"
- platform: template
sensors:
nodemcu2:
friendly_name: 'NodeMCU2'
value_template: "{{ 'Online' if is_state('device_tracker.NodeMCU2', 'home') else 'Offline' }}"
- platform: template
sensors:
nodemcu3:
friendly_name: 'NodeMCU3'
value_template: "{{ 'Online' if is_state('device_tracker.NodeMCU3', 'home') else 'Offline' }}"
#-------------------------------------------
group:
entry_points:

View File

@ -6,10 +6,10 @@
# homeassistant:
# customize_glob:
# "sensor.*_alarm_panel*":
#
#
# hidden: False
# "binary_sensor.*_alarm_panel*":
#
#
# hidden: False
sensor:
@ -34,7 +34,6 @@ sensor:
{%- endfor -%}
{%- endfor -%}
automation:
- alias: 'Battery Alert'
initial_state: 'on'

View File

@ -14,8 +14,7 @@ sensor:
{%- set domains = ['device_tracker'] -%}
{%- for domain in domains -%}
{%- for item in states[domain] if (item.attributes.source_type is defined and item.state != 'home') -%}
{{ item.attributes.friendly_name }} -
{{item.state}}
{{ item.attributes.friendly_name }}
{%- if not loop.last -%}
{{', '}}
{%- endif -%}
@ -40,19 +39,15 @@ automation:
trigger:
- platform: state
entity_id:
- sensor.wii
to: 'Offline'
for:
minutes: 5
- sensor.network
action:
- service: script.notify_engine
data_template:
value1: 'Device Status:'
value2: "{{ trigger.to_state.attributes.friendly_name }} is "
value1: 'Offline Devices:'
value3: "{{ trigger.to_state.state }}"
who: 'carlo'
- service: script.speech_engine
data_template:
value1: "{{ trigger.to_state.attributes.friendly_name }} is now {{ trigger.to_state.state }}"
value1: "The following Devices are in an Offline state {{ trigger.to_state.state }}"

View File

@ -23,10 +23,6 @@ notify:
### Building out some Historical stats for tweeting. #####################
sensor:
- platform: mqtt
state_topic: "ifttt/message"
name: "ifttt formatted message"
- platform: history_stats
name: Doorbell Presses
entity_id: binary_sensor.skybell_stone_door_button