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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user