mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-06-15 17:12:59 +00:00
Setup binary_sensor for presence tracking. Minor tweaks
This commit is contained in:
+11
-1
@@ -3,11 +3,21 @@
|
||||
- platform: template
|
||||
sensors:
|
||||
camera_state:
|
||||
friendly_name: "Security camera"
|
||||
friendly_name: Security camera
|
||||
device_class: safety
|
||||
value_template: >-
|
||||
{{ state_attr('camera.amcrest_camera', 'motion_recording') != 'on' }}
|
||||
|
||||
georgi_home:
|
||||
friendly_name: Georgi
|
||||
device_class: presence
|
||||
value_template: "{{ is_state('input_boolean.georgi_home', 'on') }}"
|
||||
entity_id: input_boolean.georgi_home
|
||||
icon_template: >
|
||||
{% if is_state('input_boolean.georgi_home','on') %} mdi:account
|
||||
{% else %} mdi:account-off-outline
|
||||
{% endif %}
|
||||
|
||||
# https://www.home-assistant.io/integrations/iss/
|
||||
- platform: iss
|
||||
show_on_map: true
|
||||
|
||||
Reference in New Issue
Block a user