Pixel 7 to Pixel 10

This commit is contained in:
CeeWeasel
2026-01-22 08:39:55 -05:00
parent 97a0e678c0
commit 6003d60774
26 changed files with 56 additions and 90 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ id: automation_clint_at_work
#description: #description:
trigger: trigger:
platform: state platform: state
entity_id: device_tracker.pixel_7 entity_id: device_tracker.pixel_10_pro
to: "WMU" to: "WMU"
action: action:
- action: input_text.set_value - action: input_text.set_value
+2 -2
View File
@@ -6,7 +6,7 @@ mode: restart
trigger: trigger:
- platform: state - platform: state
entity_id: entity_id:
- device_tracker.pixel_7 - device_tracker.pixel_10_pro
- person.clint - person.clint
- group.person_clint - group.person_clint
from: "home" from: "home"
@@ -21,7 +21,7 @@ condition:
entity_id: person.clint entity_id: person.clint
state: "home" state: "home"
- condition: state - condition: state
entity_id: device_tracker.pixel_7 entity_id: device_tracker.pixel_10_pro
state: "home" state: "home"
action: action:
+6 -6
View File
@@ -6,10 +6,10 @@ mode: restart
trigger: trigger:
- platform: state - platform: state
entity_id: entity_id:
- device_tracker.pixel_7 - device_tracker.pixel_10_pro
- person.clint - person.clint
- group.person_clint - group.person_clint
- device_tracker.pixel_7_wifi - device_tracker.pixel_10_pro_wifi
to: "home" to: "home"
- platform: state - platform: state
@@ -34,16 +34,16 @@ action:
above: 0 above: 0
value_template: "{{ dict((states|selectattr('entity_id', 'in', state_attr('group.person_clint', 'entity_id'))|list)|groupby('state'))['home']|count }}" value_template: "{{ dict((states|selectattr('entity_id', 'in', state_attr('group.person_clint', 'entity_id'))|list)|groupby('state'))['home']|count }}"
- condition: state - condition: state
entity_id: sensor.pixel_7_wifi_connection entity_id: sensor.pixel_10_pro_wifi_connection
state: "DreamWeaver" state: "DreamWeaver"
- condition: state - condition: state
entity_id: sensor.pixel_7_wifi_connection entity_id: sensor.pixel_10_pro_wifi_connection
state: "DreamIoT-2G" state: "DreamIoT-2G"
- condition: state - condition: state
entity_id: sensor.pixel_7_wifi_connection entity_id: sensor.pixel_10_pro_wifi_connection
state: "pozfam" state: "pozfam"
- condition: state - condition: state
entity_id: sensor.pixel_7_wifi_connection entity_id: sensor.pixel_10_pro_wifi_connection
state: "pozfam-2.4G" state: "pozfam-2.4G"
- condition: trigger - condition: trigger
id: "car_home" id: "car_home"
+2 -2
View File
@@ -30,10 +30,10 @@ trigger:
minutes: 5 minutes: 5
# Something gets plugged in # Something gets plugged in
- platform: state - platform: state
entity_id: sensor.pixel_7_charger_type entity_id: sensor.pixel_10_pro_charger_type
to: "Wireless" to: "Wireless"
- platform: state - platform: state
entity_id: sensor.pixel_7_charger_type entity_id: sensor.pixel_10_pro_charger_type
to: "wireless" to: "wireless"
- platform: state - platform: state
entity_id: sensor.dreamsurface_dreamsurface_battery_powerline_status entity_id: sensor.dreamsurface_dreamsurface_battery_powerline_status
@@ -10,7 +10,7 @@ trigger:
entity_id: entity_id:
- input_select.clint_status_dropdown - input_select.clint_status_dropdown
- input_boolean.clint_home - input_boolean.clint_home
- device_tracker.pixel_7 - device_tracker.pixel_10_pro
condition: condition:
- condition: template - condition: template
@@ -5,12 +5,12 @@ id: automation_clint_changing_zones
trigger: trigger:
# Been away for a few minutes # Been away for a few minutes
- platform: state - platform: state
entity_id: device_tracker.pixel_7 entity_id: device_tracker.pixel_10_pro
to: "not_home" to: "not_home"
for: "00:05:00" for: "00:05:00"
# Arrived in a zone # Arrived in a zone
- platform: state - platform: state
entity_id: device_tracker.pixel_7 entity_id: device_tracker.pixel_10_pro
from: "not_home" from: "not_home"
condition: condition:
# Been at least 5 minutes # Been at least 5 minutes
@@ -16,7 +16,7 @@ condition:
state: "off" state: "off"
action: action:
# Notify the last person to leave # Notify the last person to leave
- action: notify.mobile_app_pixel_7 - action: notify.mobile_app_pixel_10_pro
data: data:
message: >- message: >-
{% if as_timestamp(states.input_boolean.kristy_home.last_updated) > as_timestamp(states.input_boolean.clint_home.last_updated) %} {% 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" to: "on"
action: action:
- action: notify.mobile_app_pixel_7 - action: notify.mobile_app_pixel_10_pro
data: data:
message: >- 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(', ') }} 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(', ') }}
+1 -1
View File
@@ -30,7 +30,7 @@ recorder:
- sensor.mail_updated - sensor.mail_updated
- light.upstairs_public - light.upstairs_public
- sensor.nws_alerts_last_updated - sensor.nws_alerts_last_updated
- sensor.pixel_7_active_notification_count - sensor.pixel_10_pro_active_notification_count
entity_globs: entity_globs:
- sensor.*_text - sensor.*_text
- sensor.*_last_motion - sensor.*_last_motion
@@ -5,4 +5,4 @@ notify:
- action: dreambox - action: dreambox
- action: dreamtablet - action: dreamtablet
- action: dreamtablet02 - 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: template:
- binary_sensor: - binary_sensor:
- unique_id: templatebinarysensor.pixel_7_connected_to_traverse - unique_id: templatebinarysensor.pixel_10_pro_connected_to_traverse
default_entity_id: binary_sensor.pixel_7_connected_to_traverse default_entity_id: binary_sensor.pixel_10_pro_connected_to_traverse
icon: mdi:cellphone-key icon: mdi:cellphone-key
name: Pixel 7 Connected to Traverse 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 - unique_id: templatebinarysensor.humidity_too_low
default_entity_id: binary_sensor.humidity_too_low default_entity_id: binary_sensor.humidity_too_low
+1 -1
View File
@@ -1,5 +1,5 @@
clint_home: clint_home:
zone: home zone: home
devices: devices:
- device_tracker.pixel_7 - device_tracker.pixel_10_pro
unit_of_measurement: mi unit_of_measurement: mi
+1 -1
View File
@@ -1,5 +1,5 @@
clint_work: clint_work:
zone: work zone: work
devices: devices:
- device_tracker.pixel_7 - device_tracker.pixel_10_pro
unit_of_measurement: mi unit_of_measurement: mi
+1 -1
View File
@@ -1,2 +1,2 @@
device_tracker.pixel_7: device_tracker.pixel_10_pro:
icon: mdi:cellphone icon: mdi:cellphone
+2 -2
View File
@@ -180,12 +180,12 @@ my_room_status:
person_clint: person_clint:
name: Clint name: Clint
entities: entities:
- device_tracker.pixel_7 - device_tracker.pixel_10_pro
phone_clint: phone_clint:
name: Clints Phone name: Clints Phone
entities: entities:
- device_tracker.pixel_7 - device_tracker.pixel_10_pro
person_kristy: person_kristy:
name: Kristy name: Kristy
+13 -14
View File
@@ -10,20 +10,19 @@ cards:
chips: chips:
- type: back - type: back
- type: entities - type: entities
entities: entities:
- entity: sensor.pixel_7_battery_health - entity: sensor.pixel_10_pro_battery_health
- entity: sensor.pixel_7_battery_level - entity: sensor.pixel_10_pro_battery_level
- entity: sensor.pixel_7_battery_state - entity: sensor.pixel_10_pro_battery_state
- entity: sensor.pixel_7_battery_temperature - entity: sensor.pixel_10_pro_battery_temperature
- entity: sensor.pixel_7_ringer_mode - entity: sensor.pixel_10_pro_ringer_mode
- entity: binary_sensor.pixel_7_headphones - entity: binary_sensor.pixel_10_pro_headphones
- entity: binary_sensor.pixel_7_is_charging - entity: binary_sensor.pixel_10_pro_is_charging
- entity: binary_sensor.pixel_7_work_profile - entity: binary_sensor.pixel_10_pro_work_profile
- entity: sensor.pixel_7_audio_mode - entity: sensor.pixel_10_pro_audio_mode
- entity: binary_sensor.pixel_7_mic_muted - entity: binary_sensor.pixel_10_pro_mic_muted
- entity: binary_sensor.pixel_7_music_active - entity: binary_sensor.pixel_10_pro_music_active
- entity: sensor.pixel_7_charger_type - entity: sensor.pixel_10_pro_charger_type
- entity: binary_sensor.pixel_7_android_auto - entity: binary_sensor.pixel_10_pro_android_auto
title: Phone title: Phone
+1 -1
View File
@@ -8,7 +8,7 @@ cards:
title: Pixel 4 title: Pixel 4
show_header_toggle: false show_header_toggle: false
entities: entities:
- entity: device_tracker.pixel_7 - entity: device_tracker.pixel_10_pro
- type: entities - type: entities
title: Traverse title: Traverse
+4 -4
View File
@@ -346,11 +346,11 @@ badges:
- type: conditional - type: conditional
conditions: conditions:
- entity: sensor.pixel_7_ringer_mode - entity: sensor.pixel_10_pro_ringer_mode
state: "silent" state: "silent"
chip: chip:
type: template type: template
entity: sensor.pixel_7_ringer_mode entity: sensor.pixel_10_pro_ringer_mode
content: Silent content: Silent
icon: mdi:volume-off icon: mdi:volume-off
icon_color: red icon_color: red
@@ -362,11 +362,11 @@ badges:
- type: conditional - type: conditional
conditions: conditions:
- entity: sensor.pixel_7_ringer_mode - entity: sensor.pixel_10_pro_ringer_mode
state: "vibrate" state: "vibrate"
chip: chip:
type: template type: template
entity: sensor.pixel_7_ringer_mode entity: sensor.pixel_10_pro_ringer_mode
content: Vibrate content: Vibrate
icon: mdi:vibrate icon: mdi:vibrate
icon_color: yellow icon_color: yellow
+4 -4
View File
@@ -30,15 +30,15 @@ cards:
- type: glance - type: glance
columns: 2 columns: 2
entities: entities:
- entity: device_tracker.pixel_7 - entity: device_tracker.pixel_10_pro
name: App name: App
- entity: device_tracker.pixel_7_wifi - entity: device_tracker.pixel_10_pro_wifi
name: Wifi name: Wifi
# - type: entities # - type: entities
# entities: # entities:
# - entity: sensor.pixel_7_next_alarm # - entity: sensor.pixel_10_pro_next_alarm
# name: Next Alarm # name: Next Alarm
# - entity: sensor.pixel_7_next_alarm_source # - entity: sensor.pixel_10_pro_next_alarm_source
# name: Alarm Source # name: Alarm Source
- type: calendar - type: calendar
entities: entities:
+2 -2
View File
@@ -14,7 +14,7 @@ sequence:
entity_id: cover.garage_door entity_id: cover.garage_door
state: "closed" state: "closed"
sequence: sequence:
action: notify.mobile_app_pixel_7 action: notify.mobile_app_pixel_10_pro
data: data:
message: "The garage is closed. Do you want to adjust this?" message: "The garage is closed. Do you want to adjust this?"
data: data:
@@ -28,7 +28,7 @@ sequence:
entity_id: cover.garage_door entity_id: cover.garage_door
state: "open" state: "open"
sequence: sequence:
action: notify.mobile_app_pixel_7 action: notify.mobile_app_pixel_10_pro
data: data:
message: "The garage is open. Do you want to adjust this?" message: "The garage is open. Do you want to adjust this?"
data: data:
+1 -1
View File
@@ -1,6 +1,6 @@
alias: Notify Alert alias: Notify Alert
sequence: sequence:
- action: notify.mobile_app_pixel_7 - action: notify.mobile_app_pixel_10_pro
data: data:
title: "Wake up!" title: "Wake up!"
message: "The house is on fire and the cat's stuck in the dryer!" message: "The house is on fire and the cat's stuck in the dryer!"
+1 -1
View File
@@ -1,6 +1,6 @@
alias: Notify With Icon alias: Notify With Icon
sequence: sequence:
- action: notify.mobile_app_pixel_7 - action: notify.mobile_app_pixel_10_pro
data: data:
title: "Cellphone icon" title: "Cellphone icon"
message: "This will show a cellphone icon in the status bar" message: "This will show a cellphone icon in the status bar"
+1 -1
View File
@@ -1,6 +1,6 @@
alias: Notify with Pic alias: Notify with Pic
sequence: sequence:
- action: notify.mobile_app_pixel_7 - action: notify.mobile_app_pixel_10_pro
data: data:
title: Test title: Test
message: "This is a test message with an image." message: "This is a test message with an image."
@@ -13,10 +13,10 @@ sequence:
{% else %} {% else %}
{{ states("input_select.clint_status_dropdown") }} {{ states("input_select.clint_status_dropdown") }}
{% endif %} {% 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') }}) near home ({{ states('input_select.clint_status_dropdown') }})
{% elif not is_state('device_tracker.pixel_7', 'not_home') %} {% elif not is_state('device_tracker.pixel_10_pro', 'not_home') %}
at {{ states('device_tracker.pixel_7') }} at {{ states('device_tracker.pixel_10_pro') }}
{% else %} {% else %}
somewhere somewhere
{% endif %} {% endif %}

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 34 KiB