mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-06-21 10:57:43 +00:00
Implement chips
This commit is contained in:
@@ -31,10 +31,10 @@
|
||||
- type: horizontal-stack
|
||||
cards:
|
||||
- type: custom:button-card
|
||||
template: v3_badge_temp
|
||||
template: v3_chip
|
||||
entity: sensor.bathroom_weather_temperature
|
||||
- type: custom:button-card
|
||||
template: v3_badge_humidity
|
||||
template: v3_chip
|
||||
entity: sensor.bathroom_weather_humidity
|
||||
|
||||
- type: custom:decluttering-card
|
||||
|
||||
@@ -30,29 +30,29 @@
|
||||
- type: horizontal-stack
|
||||
cards:
|
||||
- type: custom:button-card
|
||||
template: v3_badge_temp
|
||||
template: v3_chip
|
||||
entity: sensor.bedroom_weather_temperature
|
||||
state_display: "[[[return entity.state.split(' ')[0] + '°']]]"
|
||||
- type: custom:button-card
|
||||
template: v3_badge_humidity
|
||||
template: v3_chip
|
||||
entity: sensor.bedroom_weather_humidity
|
||||
- type: custom:button-card
|
||||
template: v3_badge
|
||||
template: v3_chip
|
||||
entity: sensor.purifier_air_quality
|
||||
state_display: "[[[return entity.state.split(' ')[0] + ' pm2.5']]]"
|
||||
variables:
|
||||
state_size: "11px"
|
||||
- type: horizontal-stack
|
||||
cards:
|
||||
- type: custom:button-card
|
||||
template: v3_badge_icon
|
||||
template: v3_chip_name
|
||||
entity: binary_sensor.bedroom_left_window_contact
|
||||
name: Left window
|
||||
- type: custom:button-card
|
||||
template: v3_badge_icon
|
||||
template: v3_chip_name
|
||||
entity: binary_sensor.bedroom_right_window_contact
|
||||
name: Right window
|
||||
- type: custom:button-card
|
||||
template: v3_badge_icon
|
||||
template: v3_chip_name
|
||||
entity: binary_sensor.bedroom_door_contact
|
||||
name: Door
|
||||
|
||||
- type: custom:decluttering-card
|
||||
template: v3_section_title
|
||||
|
||||
@@ -36,10 +36,10 @@
|
||||
# card:
|
||||
# - background-image: url("/local/images/people/milena.jpg")
|
||||
- type: custom:button-card
|
||||
template: v3_badge_temp
|
||||
template: v3_chip
|
||||
entity: sensor.guest_bedroom_weather_temperature
|
||||
- type: custom:button-card
|
||||
template: v3_badge_humidity
|
||||
template: v3_chip
|
||||
entity: sensor.guest_bedroom_weather_humidity
|
||||
|
||||
- type: custom:decluttering-card
|
||||
|
||||
@@ -30,25 +30,25 @@
|
||||
- type: horizontal-stack
|
||||
cards:
|
||||
- type: custom:button-card
|
||||
template: v3_badge_temp
|
||||
template: v3_chip
|
||||
entity: sensor.hallway_weather_temperature
|
||||
- type: custom:button-card
|
||||
template: v3_badge_humidity
|
||||
template: v3_chip
|
||||
entity: sensor.hallway_weather_humidity
|
||||
- type: custom:button-card
|
||||
template: v3_badge_icon
|
||||
entity: group.hallway_motion
|
||||
- type: horizontal-stack
|
||||
cards:
|
||||
- type: custom:button-card
|
||||
template: v3_badge_icon
|
||||
entity: binary_sensor.hallway_motion_occupancy
|
||||
- type: custom:button-card
|
||||
template: v3_badge_icon
|
||||
entity: binary_sensor.hallway_motion_2_occupancy
|
||||
- type: custom:button-card
|
||||
template: v3_badge_icon
|
||||
template: v3_chip_name
|
||||
entity: binary_sensor.front_door_contact
|
||||
name: Front door
|
||||
- type: custom:button-card
|
||||
template: v3_chip_name
|
||||
entity: binary_sensor.hallway_motion_occupancy
|
||||
name: Motion
|
||||
- type: custom:button-card
|
||||
template: v3_chip_name
|
||||
entity: binary_sensor.hallway_motion_2_occupancy
|
||||
name: Motion 2
|
||||
|
||||
- type: custom:decluttering-card
|
||||
template: v3_section_title
|
||||
|
||||
@@ -30,22 +30,25 @@
|
||||
- type: horizontal-stack
|
||||
cards:
|
||||
- type: custom:button-card
|
||||
template: v3_badge_temp
|
||||
template: v3_chip
|
||||
entity: sensor.kitchen_weather_temperature
|
||||
- type: custom:button-card
|
||||
template: v3_badge_humidity
|
||||
template: v3_chip
|
||||
entity: sensor.kitchen_weather_humidity
|
||||
- type: custom:button-card
|
||||
template: v3_badge_icon
|
||||
entity: binary_sensor.kitchen_motion_occupancy
|
||||
- type: horizontal-stack
|
||||
cards:
|
||||
- type: custom:button-card
|
||||
template: v3_badge_icon
|
||||
template: v3_chip_name
|
||||
entity: binary_sensor.kitchen_window_contact
|
||||
name: Window
|
||||
- type: custom:button-card
|
||||
template: v3_badge_icon
|
||||
template: v3_chip_name
|
||||
entity: binary_sensor.kitchen_door
|
||||
name: Door
|
||||
- type: custom:button-card
|
||||
template: v3_chip_name
|
||||
entity: binary_sensor.kitchen_motion_occupancy
|
||||
name: Motion
|
||||
|
||||
- type: custom:decluttering-card
|
||||
template: v3_section_title
|
||||
|
||||
@@ -30,15 +30,13 @@
|
||||
- type: horizontal-stack
|
||||
cards:
|
||||
- type: custom:button-card
|
||||
template: v3_chip
|
||||
template: v3_chip_person
|
||||
entity: input_boolean.georgi_home
|
||||
entity_picture: /local/images/people/georgi.jpg
|
||||
show_state: false
|
||||
- type: custom:button-card
|
||||
template: v3_chip
|
||||
template: v3_chip_person
|
||||
entity: input_boolean.player_2_home
|
||||
entity_picture: /local/images/people/maya.jpg
|
||||
show_state: false
|
||||
- type: custom:button-card
|
||||
template: v3_chip
|
||||
entity: binary_sensor.living_room_right_window_contact
|
||||
|
||||
@@ -30,14 +30,17 @@
|
||||
- type: horizontal-stack
|
||||
cards:
|
||||
- type: custom:button-card
|
||||
template: v3_badge
|
||||
template: v3_chip_name
|
||||
entity: binary_sensor.someone_home
|
||||
name: Someone home
|
||||
- type: custom:button-card
|
||||
template: v3_badge
|
||||
template: v3_chip_name
|
||||
entity: binary_sensor.someone_sleeping
|
||||
name: Sleeping
|
||||
- type: custom:button-card
|
||||
template: v3_badge
|
||||
template: v3_chip
|
||||
entity: sensor.house_mode
|
||||
icon: mdi:home
|
||||
|
||||
- type: custom:decluttering-card
|
||||
template: v3_section_title
|
||||
|
||||
@@ -30,14 +30,15 @@
|
||||
- type: horizontal-stack
|
||||
cards:
|
||||
- type: custom:button-card
|
||||
template: v3_badge_temp
|
||||
template: v3_chip
|
||||
entity: sensor.terrarium_weather_temperature
|
||||
- type: custom:button-card
|
||||
template: v3_badge_humidity
|
||||
template: v3_chip
|
||||
entity: sensor.terrarium_weather_humidity
|
||||
- type: custom:button-card
|
||||
template: v3_badge_icon
|
||||
template: v3_chip_name
|
||||
entity: binary_sensor.terrarium_cam_motion
|
||||
name: Motion
|
||||
- type: custom:decluttering-card
|
||||
template: v3_section_title
|
||||
variables:
|
||||
|
||||
Reference in New Issue
Block a user