mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 18:40:14 -04:00
Refactor camera cards to use advanced-camera-card format
- Updated garage-card.yaml to use vertical-stack and advanced-camera-card structure. - Refactored indoor-camera-cycler.yaml to include multiple cameras in advanced-camera-card format. - Modified kitchen-card.yaml to align with new advanced-camera-card structure. - Consolidated master-bedroom-card.yaml to include both left and right cameras in a single advanced-camera-card. - Removed deprecated master-bedroom-left-card.yaml and master-bedroom-right-card.yaml files. - Updated nursery-card.yaml to follow the new advanced-camera-card format. - Refactored outdoor-camera-cycler.yaml to utilize advanced-camera-card for multiple outdoor cameras. - Cleaned up view-ha-floorplan.yaml by removing commented-out code. - Updated view-overview.yaml to remove unused plant entities. - Corrected media source paths in wake_up_the_master_bedroom.yaml and take_meds.yaml scripts. - Added new ESPHome configurations for bed presence sensors. - Updated full-sized floorplan SVG with new IDs for bed presence sensors.
This commit is contained in:
@@ -435,43 +435,6 @@ automation:
|
||||
data:
|
||||
message: "{{now().strftime('%Y-%m-%d')}}T{{now().strftime('%H:%M:%S.%f')}},{{states('sensor.ecowitt_wh40_21917_precipitation')}},{{states('binary_sensor.is_raining')}},{{state_attr('binary_sensor.is_raining','sample_count')}},{{state_attr('binary_sensor.is_raining','sample_duration')}},{{state_attr('binary_sensor.is_raining','min_gradient')}},{{state_attr('binary_sensor.is_raining','gradient')}}"
|
||||
|
||||
- alias: "Log Soil Moisture"
|
||||
id: 362fbc8d-64f1-47dd-a686-e460e9c18690
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: input_boolean.log_soil_moisture
|
||||
from: "off"
|
||||
to: "on"
|
||||
|
||||
- platform: state
|
||||
entity_id: sensor.fineoffset_wh51_00f935_moisture
|
||||
not_to:
|
||||
- "unknown"
|
||||
- "unavailable"
|
||||
|
||||
- platform: state
|
||||
entity_id: sensor.fineoffset_wh51_0ce593_moisture
|
||||
not_to:
|
||||
- "unknown"
|
||||
- "unavailable"
|
||||
|
||||
- platform: state
|
||||
entity_id: sensor.fineoffset_wh51_0d1e11_moisture
|
||||
not_to:
|
||||
- "unknown"
|
||||
- "unavailable"
|
||||
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: input_boolean.log_soil_moisture
|
||||
state: "on"
|
||||
action:
|
||||
- service: notify.send_message
|
||||
target:
|
||||
entity_id: notify.soil_moisture
|
||||
data:
|
||||
message: "{{now().strftime('%Y-%m-%d')}}T{{now().strftime('%H:%M:%S.%f')}},{{states('sensor.fineoffset_wh51_00f935_moisture')}},{{states('sensor.fineoffset_wh51_0ce593_moisture')}},{{states('sensor.fineoffset_wh51_0d1e11_moisture')}}"
|
||||
|
||||
- alias: "Sprinkler: Reset After Automatic Run"
|
||||
id: automation_sprinkler_reset_after_automatic_run
|
||||
trigger:
|
||||
|
||||
@@ -15,7 +15,7 @@ script:
|
||||
|
||||
media_content_id:
|
||||
description: "Media Content ID to announce"
|
||||
example: media-source://media_source/local/sounds/tts/welcome_to_daddys_house.mp3
|
||||
example: media-source://media_source/tts/welcome_to_daddys_house.mp3
|
||||
selector:
|
||||
text:
|
||||
|
||||
@@ -42,7 +42,7 @@ script:
|
||||
# If YTube Music Player is not in use, play the announcement over the media_player.announcements speaker group
|
||||
media_player: '{{ iif(entity_id is defined, entity_id, iif(is_state("media_player.ytube_music_player","playing") or is_state("media_player.ytube_music_player","idle") or is_state("media_player.ytube_music_player","paused"),state_attr("media_player.ytube_music_player","remote_player_id"),"media_player.announcements")) }}'
|
||||
remote_player: '{{ state_attr("media_player.ytube_music_player","remote_player_id") }}'
|
||||
content_id: '{{ iif(media_content_id is defined,media_content_id,"media-source://media_source/local/sounds/tts/welcome_to_daddys_house.mp3") }}'
|
||||
content_id: '{{ iif(media_content_id is defined,media_content_id,"media-source://media_source/tts/welcome_to_daddys_house.mp3") }}'
|
||||
content_type: '{{ iif(media_content_type is defined,media_content_type,"audio/mpeg") }}'
|
||||
volume: "{{ iif(volume is defined,volume,0.6) }}"
|
||||
original_volume: '{{ iif(is_state("media_player.ytube_music_player","off"),0.0,state_attr(state_attr("media_player.ytube_music_player","remote_player_id"), "volume_level")) }}'
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
template:
|
||||
- binary_sensor:
|
||||
- name: White Bed Occupied
|
||||
state: "{{ is_state('binary_sensor.bed_presence_2d14a4_bed_occupied_either', 'on') }}"
|
||||
icon: >
|
||||
{% if is_state("binary_sensor.white_bed_occupied", "on") %}
|
||||
mdi:bed-single
|
||||
{% else %}
|
||||
mdi:bed-single-outline
|
||||
{% endif %}
|
||||
|
||||
- name: Master Bed Occupied
|
||||
state: "{{ is_state('binary_sensor.bed_presence_2d14a4_bed_occupied_either', 'on') }}"
|
||||
icon: >
|
||||
{% if is_state("binary_sensor.master_bed_occupied", "on") %}
|
||||
mdi:bed-king
|
||||
{% else %}
|
||||
mdi:bed-king-outline
|
||||
{% endif %}
|
||||
|
||||
- name: Master Bed Left Occupied
|
||||
state: "{{ is_state('binary_sensor.bed_presence_c175a4_bed_occupied_left', 'on') }}"
|
||||
icon: >
|
||||
{% if is_state("binary_sensor.master_bed_left_occupied", "on") %}
|
||||
mdi:bed-king
|
||||
{% else %}
|
||||
mdi:bed-king-outline
|
||||
{% endif %}
|
||||
|
||||
- name: Master Bed Right Occupied
|
||||
state: "{{ is_state('binary_sensor.bed_presence_c175a4_bed_occupied_right', 'on') }}"
|
||||
icon: >
|
||||
{% if is_state("binary_sensor.master_bed_right_occupied", "on") %}
|
||||
mdi:bed-king
|
||||
{% else %}
|
||||
mdi:bed-king-outline
|
||||
{% endif %}
|
||||
@@ -13,7 +13,5 @@ sensor:
|
||||
name: Lowest Ecowitt Battery
|
||||
type: min
|
||||
entity_ids:
|
||||
- sensor.fineoffset_wh51_0d1e11_battery
|
||||
- sensor.fineoffset_wh51_00f935_battery
|
||||
- sensor.fineoffset_wh51_0ce593_battery
|
||||
|
||||
|
||||
@@ -44,19 +44,6 @@ plant:
|
||||
min_conductivity: 10
|
||||
max_conductivity: 5700
|
||||
|
||||
fineoffset_wh51_00f935:
|
||||
sensors:
|
||||
moisture: sensor.fineoffset_wh51_00f935_moisture
|
||||
temperature: sensor.outdoor_temperature
|
||||
battery: sensor.fineoffset_wh51_00f935_battery
|
||||
brightness: sensor.outdoors_mean_illuminance
|
||||
min_moisture: 15
|
||||
max_moisture: 80
|
||||
min_brightness: 200
|
||||
max_brightness: 300000
|
||||
min_temperature: -30
|
||||
max_temperature: 120
|
||||
|
||||
fineoffset_wh51_0ce593:
|
||||
sensors:
|
||||
moisture: sensor.fineoffset_wh51_0ce593_moisture
|
||||
@@ -69,16 +56,3 @@ plant:
|
||||
max_brightness: 300000
|
||||
min_temperature: -30
|
||||
max_temperature: 120
|
||||
|
||||
fineoffset_wh51_0d1e11:
|
||||
sensors:
|
||||
moisture: sensor.fineoffset_wh51_0d1e11_moisture
|
||||
temperature: sensor.outdoor_temperature
|
||||
battery: sensor.fineoffset_wh51_0d1e11_battery
|
||||
brightness: sensor.outdoors_mean_illuminance
|
||||
min_moisture: 15
|
||||
max_moisture: 80
|
||||
min_brightness: 200
|
||||
max_brightness: 300000
|
||||
min_temperature: -30
|
||||
max_temperature: 120
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
# White Ziptie
|
||||
mqtt:
|
||||
sensor:
|
||||
- name: "Timestamp"
|
||||
device_class: timestamp
|
||||
icon: mdi:clock-in
|
||||
state_topic: "rtl_433/9b13b3f4-rtl433/devices/Fineoffset-WH51/00f935/time"
|
||||
force_update: true
|
||||
entity_category: diagnostic
|
||||
unique_id: Fineoffset-WH51-00f935-UTC
|
||||
device:
|
||||
identifiers: Fineoffset-WH51-00f935
|
||||
name: Fineoffset-WH51-00f935
|
||||
model: Fineoffset-WH51
|
||||
manufacturer: rtl_433
|
||||
|
||||
- name: "Battery"
|
||||
device_class: battery
|
||||
unit_of_measurement: "%"
|
||||
value_template: "{{ (float(value) * 99 + 1) | round(0) }}"
|
||||
state_class: measurement
|
||||
entity_category: diagnostic
|
||||
state_topic: "rtl_433/9b13b3f4-rtl433/devices/Fineoffset-WH51/00f935/battery_ok"
|
||||
force_update: true
|
||||
unique_id: Fineoffset-WH51-00f935-B
|
||||
device:
|
||||
identifiers: Fineoffset-WH51-00f935
|
||||
name: Fineoffset-WH51-00f935
|
||||
model: Fineoffset-WH51
|
||||
manufacturer: rtl_433
|
||||
|
||||
- name: "Moisture"
|
||||
device_class: moisture
|
||||
unit_of_measurement: "%"
|
||||
value_template: "{{ value|float }}"
|
||||
state_class: measurement
|
||||
state_topic: "rtl_433/9b13b3f4-rtl433/devices/Fineoffset-WH51/00f935/moisture"
|
||||
force_update: true
|
||||
unique_id: Fineoffset-WH51-00f935-H
|
||||
device:
|
||||
identifiers: Fineoffset-WH51-00f935
|
||||
name: Fineoffset-WH51-00f935
|
||||
model: Fineoffset-WH51
|
||||
manufacturer: rtl_433
|
||||
@@ -3,7 +3,7 @@ mqtt:
|
||||
- name: "Timestamp"
|
||||
device_class: timestamp
|
||||
icon: mdi:clock-in
|
||||
state_topic: "rtl_433/9b13b3f4-rtl433/devices/LaCrosse-TX141THBv2/0/106/time"
|
||||
state_topic: "rtl_433/9b13b3f4-rtl433/devices/LaCrosse-TX141THBv2/0/233/time"
|
||||
force_update: true
|
||||
entity_category: diagnostic
|
||||
unique_id: LaCrosse-TX141THBv2-0-UTC
|
||||
@@ -19,7 +19,7 @@ mqtt:
|
||||
value_template: "{{ (float(value) * 99 + 1) | round(0) }}"
|
||||
state_class: measurement
|
||||
entity_category: diagnostic
|
||||
state_topic: "rtl_433/9b13b3f4-rtl433/devices/LaCrosse-TX141THBv2/0/106/battery_ok"
|
||||
state_topic: "rtl_433/9b13b3f4-rtl433/devices/LaCrosse-TX141THBv2/0/233/battery_ok"
|
||||
force_update: true
|
||||
unique_id: LaCrosse-TX141THBv2-0-B
|
||||
device:
|
||||
@@ -33,7 +33,7 @@ mqtt:
|
||||
unit_of_measurement: "°C"
|
||||
value_template: "{{ value|float }}"
|
||||
state_class: measurement
|
||||
state_topic: "rtl_433/9b13b3f4-rtl433/devices/LaCrosse-TX141THBv2/0/106/temperature_C"
|
||||
state_topic: "rtl_433/9b13b3f4-rtl433/devices/LaCrosse-TX141THBv2/0/233/temperature_C"
|
||||
force_update: true
|
||||
unique_id: LaCrosse-TX141THBv2-0-T
|
||||
device:
|
||||
@@ -47,7 +47,7 @@ mqtt:
|
||||
unit_of_measurement: "%"
|
||||
value_template: "{{ value|float }}"
|
||||
state_class: measurement
|
||||
state_topic: "rtl_433/9b13b3f4-rtl433/devices/LaCrosse-TX141THBv2/0/106/humidity"
|
||||
state_topic: "rtl_433/9b13b3f4-rtl433/devices/LaCrosse-TX141THBv2/0/233/humidity"
|
||||
force_update: true
|
||||
unique_id: LaCrosse-TX141THBv2-0-H
|
||||
device:
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
# Yellow Ziptie
|
||||
mqtt:
|
||||
sensor:
|
||||
- name: "Timestamp"
|
||||
device_class: timestamp
|
||||
icon: mdi:clock-in
|
||||
state_topic: "rtl_433/9b13b3f4-rtl433/devices/Fineoffset-WH51/0d1e11/time"
|
||||
force_update: true
|
||||
entity_category: diagnostic
|
||||
unique_id: Fineoffset-WH51-0d1e11-UTC
|
||||
device:
|
||||
identifiers: Fineoffset-WH51-0d1e11
|
||||
name: Fineoffset-WH51-0d1e11
|
||||
model: Fineoffset-WH51
|
||||
manufacturer: rtl_433
|
||||
|
||||
- name: "Battery"
|
||||
device_class: battery
|
||||
unit_of_measurement: "%"
|
||||
value_template: "{{ (float(value) * 99 + 1) | round(0) }}"
|
||||
state_class: measurement
|
||||
entity_category: diagnostic
|
||||
state_topic: "rtl_433/9b13b3f4-rtl433/devices/Fineoffset-WH51/0d1e11/battery_ok"
|
||||
force_update: true
|
||||
unique_id: Fineoffset-WH51-0d1e11-B
|
||||
device:
|
||||
identifiers: Fineoffset-WH51-0d1e11
|
||||
name: Fineoffset-WH51-0d1e11
|
||||
model: Fineoffset-WH51
|
||||
manufacturer: rtl_433
|
||||
|
||||
- name: "Moisture"
|
||||
device_class: moisture
|
||||
unit_of_measurement: "%"
|
||||
value_template: "{{ value|float }}"
|
||||
state_class: measurement
|
||||
state_topic: "rtl_433/9b13b3f4-rtl433/devices/Fineoffset-WH51/0d1e11/moisture"
|
||||
force_update: true
|
||||
unique_id: Fineoffset-WH51-0d1e11-H
|
||||
device:
|
||||
identifiers: Fineoffset-WH51-0d1e11
|
||||
name: Fineoffset-WH51-0d1e11
|
||||
model: Fineoffset-WH51
|
||||
manufacturer: rtl_433
|
||||
Reference in New Issue
Block a user