mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-10 02:50:12 -04:00
Pixel 7 to Pixel 10
This commit is contained in:
@@ -3,7 +3,7 @@ id: automation_clint_at_work
|
||||
#description:
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: device_tracker.pixel_7
|
||||
entity_id: device_tracker.pixel_10_pro
|
||||
to: "WMU"
|
||||
action:
|
||||
- action: input_text.set_value
|
||||
|
||||
@@ -6,7 +6,7 @@ mode: restart
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id:
|
||||
- device_tracker.pixel_7
|
||||
- device_tracker.pixel_10_pro
|
||||
- person.clint
|
||||
- group.person_clint
|
||||
from: "home"
|
||||
@@ -21,7 +21,7 @@ condition:
|
||||
entity_id: person.clint
|
||||
state: "home"
|
||||
- condition: state
|
||||
entity_id: device_tracker.pixel_7
|
||||
entity_id: device_tracker.pixel_10_pro
|
||||
state: "home"
|
||||
|
||||
action:
|
||||
|
||||
@@ -6,10 +6,10 @@ mode: restart
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id:
|
||||
- device_tracker.pixel_7
|
||||
- device_tracker.pixel_10_pro
|
||||
- person.clint
|
||||
- group.person_clint
|
||||
- device_tracker.pixel_7_wifi
|
||||
- device_tracker.pixel_10_pro_wifi
|
||||
to: "home"
|
||||
|
||||
- platform: state
|
||||
@@ -34,16 +34,16 @@ action:
|
||||
above: 0
|
||||
value_template: "{{ dict((states|selectattr('entity_id', 'in', state_attr('group.person_clint', 'entity_id'))|list)|groupby('state'))['home']|count }}"
|
||||
- condition: state
|
||||
entity_id: sensor.pixel_7_wifi_connection
|
||||
entity_id: sensor.pixel_10_pro_wifi_connection
|
||||
state: "DreamWeaver"
|
||||
- condition: state
|
||||
entity_id: sensor.pixel_7_wifi_connection
|
||||
entity_id: sensor.pixel_10_pro_wifi_connection
|
||||
state: "DreamIoT-2G"
|
||||
- condition: state
|
||||
entity_id: sensor.pixel_7_wifi_connection
|
||||
entity_id: sensor.pixel_10_pro_wifi_connection
|
||||
state: "pozfam"
|
||||
- condition: state
|
||||
entity_id: sensor.pixel_7_wifi_connection
|
||||
entity_id: sensor.pixel_10_pro_wifi_connection
|
||||
state: "pozfam-2.4G"
|
||||
- condition: trigger
|
||||
id: "car_home"
|
||||
|
||||
@@ -30,10 +30,10 @@ trigger:
|
||||
minutes: 5
|
||||
# Something gets plugged in
|
||||
- platform: state
|
||||
entity_id: sensor.pixel_7_charger_type
|
||||
entity_id: sensor.pixel_10_pro_charger_type
|
||||
to: "Wireless"
|
||||
- platform: state
|
||||
entity_id: sensor.pixel_7_charger_type
|
||||
entity_id: sensor.pixel_10_pro_charger_type
|
||||
to: "wireless"
|
||||
- platform: state
|
||||
entity_id: sensor.dreamsurface_dreamsurface_battery_powerline_status
|
||||
|
||||
@@ -10,7 +10,7 @@ trigger:
|
||||
entity_id:
|
||||
- input_select.clint_status_dropdown
|
||||
- input_boolean.clint_home
|
||||
- device_tracker.pixel_7
|
||||
- device_tracker.pixel_10_pro
|
||||
|
||||
condition:
|
||||
- condition: template
|
||||
|
||||
@@ -5,12 +5,12 @@ id: automation_clint_changing_zones
|
||||
trigger:
|
||||
# Been away for a few minutes
|
||||
- platform: state
|
||||
entity_id: device_tracker.pixel_7
|
||||
entity_id: device_tracker.pixel_10_pro
|
||||
to: "not_home"
|
||||
for: "00:05:00"
|
||||
# Arrived in a zone
|
||||
- platform: state
|
||||
entity_id: device_tracker.pixel_7
|
||||
entity_id: device_tracker.pixel_10_pro
|
||||
from: "not_home"
|
||||
condition:
|
||||
# Been at least 5 minutes
|
||||
|
||||
@@ -16,7 +16,7 @@ condition:
|
||||
state: "off"
|
||||
action:
|
||||
# Notify the last person to leave
|
||||
- action: notify.mobile_app_pixel_7
|
||||
- action: notify.mobile_app_pixel_10_pro
|
||||
data:
|
||||
message: >-
|
||||
{% if as_timestamp(states.input_boolean.kristy_home.last_updated) > as_timestamp(states.input_boolean.clint_home.last_updated) %}
|
||||
|
||||
@@ -8,7 +8,7 @@ trigger:
|
||||
to: "on"
|
||||
|
||||
action:
|
||||
- action: notify.mobile_app_pixel_7
|
||||
- action: notify.mobile_app_pixel_10_pro
|
||||
data:
|
||||
message: >-
|
||||
Its too hot or cold to leave these open: {{ dict((states|selectattr('entity_id', 'in', state_attr('group.my_hvac_affecting_openings', 'entity_id'))|list)|groupby('state'))['on']|map(attribute='name')|list|join(', ') }}
|
||||
|
||||
Reference in New Issue
Block a user