mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-06-21 10:57:43 +00:00
Move config out of subfolder
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
group:
|
||||
all_doors:
|
||||
name: All doors
|
||||
entities:
|
||||
- binary_sensor.front_door
|
||||
- binary_sensor.bedroom_door
|
||||
|
||||
mqtt:
|
||||
sensor:
|
||||
- name: "Bedroom door battery"
|
||||
state_topic: "z2m_deconz/bedroom_door"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
unit_of_measurement: "%"
|
||||
device_class: "battery"
|
||||
value_template: "{{ value_json.battery }}"
|
||||
|
||||
- name: "Bedroom door LQI"
|
||||
state_topic: "z2m_deconz/bedroom_door"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
unit_of_measurement: "lqi"
|
||||
device_class: "signal_strength"
|
||||
value_template: "{{ value_json.linkquality }}"
|
||||
|
||||
- name: "Front door battery"
|
||||
state_topic: "z2m_deconz/front_door"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
unit_of_measurement: "%"
|
||||
device_class: "battery"
|
||||
value_template: "{{ value_json.battery }}"
|
||||
|
||||
- name: "Front door LQI"
|
||||
state_topic: "z2m_deconz/front_door"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
unit_of_measurement: "lqi"
|
||||
device_class: "signal_strength"
|
||||
value_template: "{{ value_json.linkquality }}"
|
||||
|
||||
binary_sensor:
|
||||
- name: "Bedroom door"
|
||||
state_topic: "z2m_deconz/bedroom_door"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
payload_on: false
|
||||
payload_off: true
|
||||
value_template: "{{ value_json.contact }}"
|
||||
device_class: "door"
|
||||
- name: "Front door"
|
||||
state_topic: "z2m_deconz/front_door"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
payload_on: false
|
||||
payload_off: true
|
||||
value_template: "{{ value_json.contact }}"
|
||||
device_class: "door"
|
||||
|
||||
sensor:
|
||||
- platform: template
|
||||
sensors:
|
||||
open_door_count:
|
||||
friendly_name: Open door count
|
||||
value_template: >-
|
||||
{% set entityStates = states | selectattr('entity_id', 'in', state_attr('group.all_doors', 'entity_id')) %}
|
||||
{{ entityStates | selectattr('state', 'eq', 'on') | list | count | int }}
|
||||
@@ -0,0 +1,97 @@
|
||||
group:
|
||||
all_motion_sensors:
|
||||
name: All motion_sensors
|
||||
entities:
|
||||
- binary_sensor.hallway_motion_occupancy
|
||||
- binary_sensor.hallway_motion_2_occupancy
|
||||
- binary_sensor.kitchen_motion_occupancy
|
||||
- binary_sensor.multisensor_motion
|
||||
|
||||
hallway_motion:
|
||||
name: Hallway Motion
|
||||
entities:
|
||||
- binary_sensor.hallway_motion_occupancy
|
||||
- binary_sensor.hallway_motion_2_occupancy
|
||||
# - binary_sensor.trisensor_home_security_motion_detection
|
||||
|
||||
mqtt:
|
||||
binary_sensor:
|
||||
- name: "Hallway motion occupancy"
|
||||
state_topic: "z2m_deconz/hallway_motion"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
payload_on: true
|
||||
payload_off: false
|
||||
value_template: "{{ value_json.occupancy }}"
|
||||
device_class: "motion"
|
||||
- name: "Hallway motion 2 occupancy"
|
||||
state_topic: "z2m_deconz/hallway_motion_2"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
payload_on: true
|
||||
payload_off: false
|
||||
value_template: "{{ value_json.occupancy }}"
|
||||
device_class: "motion"
|
||||
- name: "Kitchen motion occupancy"
|
||||
state_topic: "z2m_deconz/kitchen_motion"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
payload_on: true
|
||||
payload_off: false
|
||||
value_template: "{{ value_json.occupancy }}"
|
||||
device_class: "motion"
|
||||
|
||||
sensor:
|
||||
# Hallway Motion
|
||||
- name: "Hallway motion illuminance"
|
||||
state_topic: "z2m_deconz/hallway_motion"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
device_class: "illuminance"
|
||||
value_template: "{{ value_json.illuminance_lux }}"
|
||||
- name: "Hallway motion battery"
|
||||
state_topic: "z2m_deconz/hallway_motion"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
unit_of_measurement: "%"
|
||||
device_class: "battery"
|
||||
value_template: "{{ value_json.battery }}"
|
||||
- name: "Hallway motion LQI"
|
||||
state_topic: "z2m_deconz/hallway_motion"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
unit_of_measurement: "lqi"
|
||||
device_class: "signal_strength"
|
||||
value_template: "{{ value_json.linkquality }}"
|
||||
|
||||
# Hallway Motion 2
|
||||
- name: "Hallway motion 2 illuminance"
|
||||
state_topic: "z2m_deconz/hallway_motion_2"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
device_class: "illuminance"
|
||||
value_template: "{{ value_json.illuminance_lux }}"
|
||||
- name: "Hallway motion 2 battery"
|
||||
state_topic: "z2m_deconz/hallway_motion_2"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
unit_of_measurement: "%"
|
||||
device_class: "battery"
|
||||
value_template: "{{ value_json.battery }}"
|
||||
- name: "Hallway motion 2 LQI"
|
||||
state_topic: "z2m_deconz/hallway_motion_2"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
unit_of_measurement: "lqi"
|
||||
device_class: "signal_strength"
|
||||
value_template: "{{ value_json.linkquality }}"
|
||||
|
||||
# Kitchen Motion
|
||||
- name: "Kitchen motion illuminance"
|
||||
state_topic: "z2m_deconz/kitchen_motion"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
device_class: "illuminance"
|
||||
value_template: "{{ value_json.illuminance_lux }}"
|
||||
- name: "Kitchen motion battery"
|
||||
state_topic: "z2m_deconz/kitchen_motion"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
unit_of_measurement: "%"
|
||||
device_class: "battery"
|
||||
value_template: "{{ value_json.battery }}"
|
||||
- name: "Kitchen motion LQI"
|
||||
state_topic: "z2m_deconz/kitchen_motion"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
unit_of_measurement: "lqi"
|
||||
device_class: "signal_strength"
|
||||
value_template: "{{ value_json.linkquality }}"
|
||||
@@ -0,0 +1,3 @@
|
||||
# https://www.home-assistant.io/integrations/sun
|
||||
sun:
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
binary_sensor:
|
||||
- platform: workday
|
||||
name: Workday today
|
||||
country: BG
|
||||
add_holidays:
|
||||
- '2020-04-20'
|
||||
- '2020-05-25'
|
||||
- '2020-09-07'
|
||||
- '2020-12-28'
|
||||
|
||||
- platform: workday
|
||||
name: Workday tomorrow
|
||||
days_offset: 1
|
||||
country: BG
|
||||
add_holidays:
|
||||
- '2020-04-20'
|
||||
- '2020-05-25'
|
||||
- '2020-09-07'
|
||||
- '2020-12-28'
|
||||
Reference in New Issue
Block a user