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