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*": "device_tracker.nodemcu*":
icon: mdi:chip icon: mdi:chip
hidden: True
"sensor.nodemcu*":
icon: mdi:alarm-bell
hidden: False hidden: False
"binary_sensor.mcu?_gpio*": "binary_sensor.mcu?_gpio*":
icon: mdi:security-home icon: mdi:security-home
@ -182,24 +178,6 @@ binary_sensor:
# elephant: # elephant:
# name: Elephant # name: Elephant
# initial: off # 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: group:
entry_points: entry_points:

View File

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

View File

@ -14,8 +14,7 @@ sensor:
{%- set domains = ['device_tracker'] -%} {%- set domains = ['device_tracker'] -%}
{%- for domain in domains -%} {%- for domain in domains -%}
{%- for item in states[domain] if (item.attributes.source_type is defined and item.state != 'home') -%} {%- for item in states[domain] if (item.attributes.source_type is defined and item.state != 'home') -%}
{{ item.attributes.friendly_name }} - {{ item.attributes.friendly_name }}
{{item.state}}
{%- if not loop.last -%} {%- if not loop.last -%}
{{', '}} {{', '}}
{%- endif -%} {%- endif -%}
@ -40,19 +39,15 @@ automation:
trigger: trigger:
- platform: state - platform: state
entity_id: entity_id:
- sensor.wii - sensor.network
to: 'Offline'
for:
minutes: 5
action: action:
- service: script.notify_engine - service: script.notify_engine
data_template: data_template:
value1: 'Device Status:' value1: 'Offline Devices:'
value2: "{{ trigger.to_state.attributes.friendly_name }} is "
value3: "{{ trigger.to_state.state }}" value3: "{{ trigger.to_state.state }}"
who: 'carlo' who: 'carlo'
- service: script.speech_engine - service: script.speech_engine
data_template: 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. ##################### ### Building out some Historical stats for tweeting. #####################
sensor: sensor:
- platform: mqtt
state_topic: "ifttt/message"
name: "ifttt formatted message"
- platform: history_stats - platform: history_stats
name: Doorbell Presses name: Doorbell Presses
entity_id: binary_sensor.skybell_stone_door_button entity_id: binary_sensor.skybell_stone_door_button