mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 10:30:14 -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(', ') }}
|
||||
|
||||
@@ -30,7 +30,7 @@ recorder:
|
||||
- sensor.mail_updated
|
||||
- light.upstairs_public
|
||||
- sensor.nws_alerts_last_updated
|
||||
- sensor.pixel_7_active_notification_count
|
||||
- sensor.pixel_10_pro_active_notification_count
|
||||
entity_globs:
|
||||
- sensor.*_text
|
||||
- sensor.*_last_motion
|
||||
|
||||
@@ -5,4 +5,4 @@ notify:
|
||||
- action: dreambox
|
||||
- action: dreamtablet
|
||||
- action: dreamtablet02
|
||||
- action: mobile_app_pixel_7
|
||||
- action: mobile_app_pixel_10_pro
|
||||
|
||||
@@ -1,33 +0,0 @@
|
||||
# Toggle controlling the status of coordinate logging
|
||||
input_boolean:
|
||||
log_pixel_7_coordinates:
|
||||
name: "Log Pixel 7 Coordinates"
|
||||
icon: mdi:crosshairs-gps
|
||||
|
||||
# Automation to handle the actual logging of coordinates
|
||||
automation:
|
||||
- alias: "Log Pixel 7 Coordinates"
|
||||
id: 7e726150-6bd7-40c8-a990-13df987d0fca
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: input_boolean.log_pixel_7_coordinates
|
||||
from: "off"
|
||||
to: "on"
|
||||
|
||||
- platform: state
|
||||
entity_id: device_tracker.pixel_7
|
||||
|
||||
- platform: homeassistant
|
||||
event: start
|
||||
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: input_boolean.log_pixel_7_coordinates
|
||||
state: "on"
|
||||
|
||||
action:
|
||||
- action: notify.send_message
|
||||
target:
|
||||
entity_id: notify.pixel_7_coordinates
|
||||
data:
|
||||
message: "{{now().strftime('%Y-%m-%d')}}T{{now().strftime('%H:%M:%S.%f')}},{{states('device_tracker.pixel_7')}},{{state_attr('device_tracker.pixel_7','latitude')}},{{state_attr('device_tracker.pixel_7','longitude')}}"
|
||||
@@ -1,10 +1,10 @@
|
||||
template:
|
||||
- binary_sensor:
|
||||
- unique_id: templatebinarysensor.pixel_7_connected_to_traverse
|
||||
default_entity_id: binary_sensor.pixel_7_connected_to_traverse
|
||||
- unique_id: templatebinarysensor.pixel_10_pro_connected_to_traverse
|
||||
default_entity_id: binary_sensor.pixel_10_pro_connected_to_traverse
|
||||
icon: mdi:cellphone-key
|
||||
name: Pixel 7 Connected to Traverse
|
||||
state: "{{ '30:C3:D9:B0:CA:E4 (Chevrolet MyLink)' in state_attr('sensor.pixel_7_bluetooth_connection','connected_paired_devices') }}"
|
||||
state: "{{ '30:C3:D9:B0:CA:E4 (Chevrolet MyLink)' in state_attr('sensor.pixel_10_pro_bluetooth_connection','connected_paired_devices') }}"
|
||||
|
||||
- unique_id: templatebinarysensor.humidity_too_low
|
||||
default_entity_id: binary_sensor.humidity_too_low
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
clint_home:
|
||||
zone: home
|
||||
devices:
|
||||
- device_tracker.pixel_7
|
||||
- device_tracker.pixel_10_pro
|
||||
unit_of_measurement: mi
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
clint_work:
|
||||
zone: work
|
||||
devices:
|
||||
- device_tracker.pixel_7
|
||||
- device_tracker.pixel_10_pro
|
||||
unit_of_measurement: mi
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
device_tracker.pixel_7:
|
||||
device_tracker.pixel_10_pro:
|
||||
icon: mdi:cellphone
|
||||
|
||||
+2
-2
@@ -180,12 +180,12 @@ my_room_status:
|
||||
person_clint:
|
||||
name: Clint
|
||||
entities:
|
||||
- device_tracker.pixel_7
|
||||
- device_tracker.pixel_10_pro
|
||||
|
||||
phone_clint:
|
||||
name: Clints Phone
|
||||
entities:
|
||||
- device_tracker.pixel_7
|
||||
- device_tracker.pixel_10_pro
|
||||
|
||||
person_kristy:
|
||||
name: Kristy
|
||||
|
||||
@@ -10,20 +10,19 @@ cards:
|
||||
chips:
|
||||
- type: back
|
||||
|
||||
|
||||
- type: entities
|
||||
entities:
|
||||
- entity: sensor.pixel_7_battery_health
|
||||
- entity: sensor.pixel_7_battery_level
|
||||
- entity: sensor.pixel_7_battery_state
|
||||
- entity: sensor.pixel_7_battery_temperature
|
||||
- entity: sensor.pixel_7_ringer_mode
|
||||
- entity: binary_sensor.pixel_7_headphones
|
||||
- entity: binary_sensor.pixel_7_is_charging
|
||||
- entity: binary_sensor.pixel_7_work_profile
|
||||
- entity: sensor.pixel_7_audio_mode
|
||||
- entity: binary_sensor.pixel_7_mic_muted
|
||||
- entity: binary_sensor.pixel_7_music_active
|
||||
- entity: sensor.pixel_7_charger_type
|
||||
- entity: binary_sensor.pixel_7_android_auto
|
||||
- entity: sensor.pixel_10_pro_battery_health
|
||||
- entity: sensor.pixel_10_pro_battery_level
|
||||
- entity: sensor.pixel_10_pro_battery_state
|
||||
- entity: sensor.pixel_10_pro_battery_temperature
|
||||
- entity: sensor.pixel_10_pro_ringer_mode
|
||||
- entity: binary_sensor.pixel_10_pro_headphones
|
||||
- entity: binary_sensor.pixel_10_pro_is_charging
|
||||
- entity: binary_sensor.pixel_10_pro_work_profile
|
||||
- entity: sensor.pixel_10_pro_audio_mode
|
||||
- entity: binary_sensor.pixel_10_pro_mic_muted
|
||||
- entity: binary_sensor.pixel_10_pro_music_active
|
||||
- entity: sensor.pixel_10_pro_charger_type
|
||||
- entity: binary_sensor.pixel_10_pro_android_auto
|
||||
title: Phone
|
||||
|
||||
@@ -8,7 +8,7 @@ cards:
|
||||
title: Pixel 4
|
||||
show_header_toggle: false
|
||||
entities:
|
||||
- entity: device_tracker.pixel_7
|
||||
- entity: device_tracker.pixel_10_pro
|
||||
|
||||
- type: entities
|
||||
title: Traverse
|
||||
|
||||
@@ -346,11 +346,11 @@ badges:
|
||||
|
||||
- type: conditional
|
||||
conditions:
|
||||
- entity: sensor.pixel_7_ringer_mode
|
||||
- entity: sensor.pixel_10_pro_ringer_mode
|
||||
state: "silent"
|
||||
chip:
|
||||
type: template
|
||||
entity: sensor.pixel_7_ringer_mode
|
||||
entity: sensor.pixel_10_pro_ringer_mode
|
||||
content: Silent
|
||||
icon: mdi:volume-off
|
||||
icon_color: red
|
||||
@@ -362,11 +362,11 @@ badges:
|
||||
|
||||
- type: conditional
|
||||
conditions:
|
||||
- entity: sensor.pixel_7_ringer_mode
|
||||
- entity: sensor.pixel_10_pro_ringer_mode
|
||||
state: "vibrate"
|
||||
chip:
|
||||
type: template
|
||||
entity: sensor.pixel_7_ringer_mode
|
||||
entity: sensor.pixel_10_pro_ringer_mode
|
||||
content: Vibrate
|
||||
icon: mdi:vibrate
|
||||
icon_color: yellow
|
||||
|
||||
@@ -30,15 +30,15 @@ cards:
|
||||
- type: glance
|
||||
columns: 2
|
||||
entities:
|
||||
- entity: device_tracker.pixel_7
|
||||
- entity: device_tracker.pixel_10_pro
|
||||
name: App
|
||||
- entity: device_tracker.pixel_7_wifi
|
||||
- entity: device_tracker.pixel_10_pro_wifi
|
||||
name: Wifi
|
||||
# - type: entities
|
||||
# entities:
|
||||
# - entity: sensor.pixel_7_next_alarm
|
||||
# - entity: sensor.pixel_10_pro_next_alarm
|
||||
# name: Next Alarm
|
||||
# - entity: sensor.pixel_7_next_alarm_source
|
||||
# - entity: sensor.pixel_10_pro_next_alarm_source
|
||||
# name: Alarm Source
|
||||
- type: calendar
|
||||
entities:
|
||||
|
||||
@@ -14,7 +14,7 @@ sequence:
|
||||
entity_id: cover.garage_door
|
||||
state: "closed"
|
||||
sequence:
|
||||
action: notify.mobile_app_pixel_7
|
||||
action: notify.mobile_app_pixel_10_pro
|
||||
data:
|
||||
message: "The garage is closed. Do you want to adjust this?"
|
||||
data:
|
||||
@@ -28,7 +28,7 @@ sequence:
|
||||
entity_id: cover.garage_door
|
||||
state: "open"
|
||||
sequence:
|
||||
action: notify.mobile_app_pixel_7
|
||||
action: notify.mobile_app_pixel_10_pro
|
||||
data:
|
||||
message: "The garage is open. Do you want to adjust this?"
|
||||
data:
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
alias: Notify Alert
|
||||
sequence:
|
||||
- action: notify.mobile_app_pixel_7
|
||||
- action: notify.mobile_app_pixel_10_pro
|
||||
data:
|
||||
title: "Wake up!"
|
||||
message: "The house is on fire and the cat's stuck in the dryer!"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
alias: Notify With Icon
|
||||
sequence:
|
||||
- action: notify.mobile_app_pixel_7
|
||||
- action: notify.mobile_app_pixel_10_pro
|
||||
data:
|
||||
title: "Cellphone icon"
|
||||
message: "This will show a cellphone icon in the status bar"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
alias: Notify with Pic
|
||||
sequence:
|
||||
- action: notify.mobile_app_pixel_7
|
||||
- action: notify.mobile_app_pixel_10_pro
|
||||
data:
|
||||
title: Test
|
||||
message: "This is a test message with an image."
|
||||
|
||||
@@ -13,10 +13,10 @@ sequence:
|
||||
{% else %}
|
||||
{{ states("input_select.clint_status_dropdown") }}
|
||||
{% endif %}
|
||||
{% elif is_state('device_tracker.pixel_7', 'home') and is_state('input_boolean.clint_home', 'off') %}
|
||||
{% elif is_state('device_tracker.pixel_10_pro', 'home') and is_state('input_boolean.clint_home', 'off') %}
|
||||
near home ({{ states('input_select.clint_status_dropdown') }})
|
||||
{% elif not is_state('device_tracker.pixel_7', 'not_home') %}
|
||||
at {{ states('device_tracker.pixel_7') }}
|
||||
{% elif not is_state('device_tracker.pixel_10_pro', 'not_home') %}
|
||||
at {{ states('device_tracker.pixel_10_pro') }}
|
||||
{% else %}
|
||||
somewhere
|
||||
{% endif %}
|
||||
|
||||
|
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 34 KiB |
Reference in New Issue
Block a user