mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-05-13 19:54:42 +00:00
Improved Purifier UI and automation
This commit is contained in:
@@ -173,6 +173,25 @@ cards:
|
||||
|
||||
- type: divider
|
||||
|
||||
- type: custom:fold-entity-row
|
||||
head:
|
||||
type: custom:dummy-entity-row
|
||||
entity: fan.philips_airpurifier
|
||||
icon: mdi:air-purifier
|
||||
name: Climate
|
||||
tap_action: none
|
||||
entities:
|
||||
- automation.purifier_on_start_sync_and_update_state
|
||||
- automation.purifier_change_speed
|
||||
- automation.purifier_sync_speed
|
||||
- automation.purifier_change_humidity
|
||||
- automation.purifier_sync_humidity
|
||||
- automation.purifier_turn_on_low_humidity
|
||||
- automation.purifier_turn_on_low_air_quality
|
||||
- automation.purifier_turn_off_okay_humidity
|
||||
|
||||
- type: divider
|
||||
|
||||
# System
|
||||
- type: custom:fold-entity-row
|
||||
head:
|
||||
@@ -203,6 +222,8 @@ cards:
|
||||
- automation.magic_cube_music_volume_down_on_rotate_left
|
||||
- automation.magic_cube_music_volume_up_on_rotate_right
|
||||
|
||||
- type: divider
|
||||
|
||||
# Browser mod
|
||||
- type: custom:fold-entity-row
|
||||
head:
|
||||
@@ -217,7 +238,6 @@ cards:
|
||||
- automation.browser_mod_kitchen_home
|
||||
- automation.browser_mod_kitchen_away
|
||||
|
||||
|
||||
- type: entities
|
||||
title: Batteries
|
||||
show_header_toggle: false
|
||||
|
||||
@@ -3,10 +3,54 @@ philips_airpurifier_card:
|
||||
type: vertical-stack
|
||||
cards:
|
||||
- type: entities
|
||||
show_header_toggle: false
|
||||
entities:
|
||||
- entity: fan.philips_airpurifier
|
||||
name: Enable purifier
|
||||
- type: horizontal-stack
|
||||
cards:
|
||||
- type: custom:button-card
|
||||
template: default
|
||||
entity: sensor.purifier_speed
|
||||
tap_action:
|
||||
action: call-service
|
||||
service: input_select.select_next
|
||||
service_data:
|
||||
entity_id: input_select.purifier_speed
|
||||
- type: custom:button-card
|
||||
template: default
|
||||
entity: sensor.purifier_function
|
||||
tap_action:
|
||||
action: call-service
|
||||
service: script.purifier_toggle_function
|
||||
- type: custom:button-card
|
||||
template:
|
||||
- small
|
||||
- progress
|
||||
- with_state_indicator
|
||||
entity: sensor.purifier_target_humidity
|
||||
tap_action:
|
||||
action: call-service
|
||||
service: input_select.select_next
|
||||
service_data:
|
||||
entity_id: input_select.purifier_target_humidity
|
||||
show_state: true
|
||||
show_icon: false
|
||||
variables:
|
||||
min_value: 30
|
||||
max_value: 60
|
||||
normal_value: 61
|
||||
high_value: 70
|
||||
state_indicator_id: binary_sensor.purifier_out_of_water
|
||||
state_indicator_size: 5px
|
||||
state_indicator_off_size: 0px
|
||||
state_indicator_on_color: var(--color-red)
|
||||
state_on_indicator_on_color: var(--color-red)
|
||||
|
||||
- type: entities
|
||||
show_header_toggle: false
|
||||
entities:
|
||||
- input_select.purifier_speed
|
||||
- input_select.purifier_target_humidity
|
||||
- type: custom:fold-entity-row
|
||||
head:
|
||||
type: custom:dummy-entity-row
|
||||
@@ -19,17 +63,22 @@ philips_airpurifier_card:
|
||||
- sensor.purifier_allergens
|
||||
- sensor.purifier_temperature
|
||||
- sensor.purifier_humidity
|
||||
- sensor.purifier_water_level
|
||||
- binary_sensor.purifier_out_of_water
|
||||
- type: custom:fold-entity-row
|
||||
head:
|
||||
type: custom:dummy-entity-row
|
||||
entity: sensor.purifier_speed
|
||||
name: Mode
|
||||
open: true
|
||||
entities:
|
||||
- sensor.purifier_speed
|
||||
- sensor.purifier_mode
|
||||
- sensor.purifier_brightness
|
||||
- sensor.purifier_function
|
||||
- sensor.purifier_target_humidity
|
||||
- sensor.purifier_brightness
|
||||
- sensor.purifier_timer
|
||||
- sensor.purifier_time_remaining
|
||||
- binary_sensor.purifier_child_lock
|
||||
- binary_sensor.purifier_display_light
|
||||
- type: custom:fold-entity-row
|
||||
head:
|
||||
type: custom:dummy-entity-row
|
||||
|
||||
@@ -68,6 +68,29 @@
|
||||
state_indicator_off_size: 0px
|
||||
state_indicator_on_color: var(--color-red)
|
||||
state_on_indicator_on_color: var(--color-red)
|
||||
- type: custom:button-card
|
||||
template:
|
||||
- small
|
||||
- progress
|
||||
- with_state_indicator
|
||||
entity: sensor.purifier_target_humidity
|
||||
tap_action:
|
||||
action: call-service
|
||||
service: input_select.select_next
|
||||
service_data:
|
||||
entity_id: input_select.purifier_target_humidity
|
||||
show_state: true
|
||||
show_icon: false
|
||||
variables:
|
||||
min_value: 30
|
||||
max_value: 60
|
||||
normal_value: 61
|
||||
high_value: 70
|
||||
state_indicator_id: binary_sensor.purifier_out_of_water
|
||||
state_indicator_size: 5px
|
||||
state_indicator_off_size: 0px
|
||||
state_indicator_on_color: var(--color-red)
|
||||
state_on_indicator_on_color: var(--color-red)
|
||||
- type: custom:button-card
|
||||
template: default
|
||||
entity: binary_sensor.house_mode
|
||||
@@ -135,6 +158,7 @@
|
||||
max_value: 90
|
||||
normal_value: 10
|
||||
high_value: 30
|
||||
|
||||
- type: horizontal-stack
|
||||
cards:
|
||||
- type: custom:button-card
|
||||
|
||||
Reference in New Issue
Block a user