1
0
Fork 0
ha-config/lovelace/lovelace.yaml

708 lines
20 KiB
YAML
Raw Normal View History

2022-05-11 16:41:13 +10:00
config:
title: Home
views:
- badges: []
cards:
- cards:
- card:
chips:
- chip:
content_template: Play default ({{ states('sensor.background_playlist')
}})
icon: mdi:music
tap_action:
action: call-service
service: media_player.select_source
service_data:
source_template: '{{ states(''sensor.background_playlist'') }}'
target:
entity_id: media_player.denon_avr_x1600h_heos
type: template
conditions:
- entity: sensor.background_playlist
state_not: 'off'
type: conditional
- chip:
content: ABC Jazz - {{ states('sensor.abc_jazz_now_playing') }}
icon: mdi:music
tap_action:
action: call-service
service: media_player.select_source
service_data:
source: ABC Jazz (Jazz Music)
target:
entity_id: media_player.denon_avr_x1600h_heos
type: template
conditions:
- entity: sensor.current_living_room_media_player_source
state_not: ABC Jazz (Jazz Music)
type: conditional
- chip:
content: RRR - {{ states('sensor.rrr_now_playing') }}
icon: mdi:music
tap_action:
action: call-service
service: media_player.select_source
service_data:
2022-07-19 18:53:10 +10:00
source: Triple R
2022-05-11 16:41:13 +10:00
target:
entity_id: media_player.denon_avr_x1600h_heos
type: template
conditions:
- entity: sensor.current_living_room_media_player_source
2022-07-19 18:53:10 +10:00
state_not: Triple R
2022-05-11 16:41:13 +10:00
type: conditional
- chip:
content: PBS - {{ states('sensor.pbs_now_playing') }}
icon: mdi:music
tap_action:
action: call-service
service: media_player.select_source
service_data:
2022-07-19 18:53:10 +10:00
source: PBS 106.7FM Melbourne
2022-05-11 16:41:13 +10:00
target:
entity_id: media_player.denon_avr_x1600h_heos
type: template
conditions:
- entity: sensor.current_living_room_media_player_source
2022-07-19 18:53:10 +10:00
state_not: PBS 106.7FM Melbourne
type: conditional
- chip:
content: KLFM
icon: mdi:music
tap_action:
action: call-service
service: media_player.select_source
service_data:
source: KLFM
target:
entity_id: media_player.denon_avr_x1600h_heos
type: template
conditions:
- entity: sensor.current_living_room_media_player_source
state_not: KLFM
2022-05-11 16:41:13 +10:00
type: conditional
- chip:
content: JJ - {{ states('sensor.jj_now_playing') }}
icon: mdi:music
tap_action:
action: call-service
service: media_player.select_source
service_data:
source: Double J (Indie Music)
target:
entity_id: media_player.denon_avr_x1600h_heos
type: template
conditions:
- entity: sensor.current_living_room_media_player_source
state_not: Double J (Indie Music)
type: conditional
- chip:
content: JJJ - {{ states('sensor.jjj_now_playing') }}
icon: mdi:music
tap_action:
action: call-service
service: media_player.select_source
service_data:
source: triple j 107.5 (Alternative Rock)
target:
entity_id: media_player.denon_avr_x1600h_heos
type: template
conditions:
- entity: sensor.current_living_room_media_player_source
state_not: triple j 107.5 (Alternative Rock)
type: conditional
type: custom:mushroom-chips-card
entities:
- sensor.background_playlist
type: custom:card-templater
- card:
type: vertical-stack
card_param: cards
filter:
exclude:
- state: unavailable
- state: 'off'
- state: idle
- state: standby
- entity_id: /spotify/
- entity_id: /denon/
2023-04-25 07:36:58 +10:00
- entity_id: /global/
2022-05-11 16:41:13 +10:00
- attributes:
source: HEOS Music
include:
- domain: media_player
not:
entity_id: '*.plex_*'
options:
media_controls:
- play_pause_stop
- on_off
- next
- previous
type: custom:mushroom-media-player-card
use_media_artwork: true
use_media_info: true
volume_controls:
- volume_set
- volume_buttons
- volume_mute
- attributes:
username: bjeanes
domain: media_player
entity_id: '*.plex_*'
options:
media_controls:
- play_pause_stop
- on_off
- next
- previous
type: custom:mushroom-media-player-card
use_media_artwork: true
use_media_info: true
volume_controls:
- volume_set
- volume_buttons
- volume_mute
show_empty: false
sort:
method: state
reverse: true
type: custom:auto-entities
type: horizontal-stack
2023-07-09 22:25:17 +10:00
- cards:
- collapsible_controls: false
entity: climate.living_room_a_c
fill_container: true
hvac_modes:
- auto
- dry
- heat
- cool
- 'off'
- heat_cool
icon: mdi:air-conditioner
layout: horizontal
primary_info: state
secondary_info: last-changed
show_temperature_control: true
type: custom:mushroom-climate-card
- card:
entities:
- switch.living_room_a_c_ionizer
type: entities
conditions:
- entity: climate.living_room_a_c
state_not: 'off'
type: conditional
- card:
entities:
- switch.living_room_a_c_jet_mode
type: entities
conditions:
- entity: switch.living_room_a_c_jet_mode
state_not: unavailable
type: conditional
- entities:
- entity: climate.living_room_a_c
name: A/C
- entity: sensor.ble_temperature_living_room_a4c1382a9b6e
- entity: sensor.area_temperature_degc_living_room
name: Average temperature
hours_to_show: 6
type: history-graph
type: custom:stack-in-card
- entities:
battery: sensor.inverter_battery_power
battery_charge: sensor.inverter_battery_level
grid: sensor.inverter_grid_power_demand
solar: sensor.inverter_pv_power
kw_decimals: 2
type: custom:power-flow-card
w_decimals: 0
watt_threshold: 900
2022-05-11 16:41:13 +10:00
- card:
state_color: true
title: Important
type: entities
filter:
exclude:
- state: unavailable
- state: unknown
2022-06-02 11:28:09 +10:00
- entity_id: /vacuum.*attached/
2022-08-26 09:25:05 +10:00
- entity_id: /inverter_.*_soc/
2023-04-25 07:36:58 +10:00
- entity_id: /athom/
2022-05-11 16:41:13 +10:00
include:
2023-05-19 22:25:20 +10:00
- entity_id: sensor.plex_tumtum_tree
state: unavailable
2022-05-11 16:41:13 +10:00
- attributes:
device_class: moisture
domain: binary_sensor
state: 'on'
- attributes:
device_class: problem
domain: binary_sensor
state: 'on'
- attributes:
device_class: connectivity
domain: binary_sensor
2022-05-20 10:25:44 +10:00
state: 'off'
- attributes:
unit_of_measurement: lqi
2022-05-11 16:41:13 +10:00
not:
entity_id: /robot_vacuum_(mop|water_box)/
2022-05-20 10:25:44 +10:00
state: < 100
2022-05-11 16:41:13 +10:00
- entity_id: calendar.on_call
state: 'on'
- entity_id: /fire_danger/
not:
state: /Low|^High/
2022-08-24 13:50:56 +10:00
- entity_id: sensor.ups_status
not:
state: Online
2022-05-11 16:41:13 +10:00
- entity_id: /octoprint_printing/
state: 'on'
- attributes:
state_class: measurement
unit_of_measurement: '%'
entity_id: /remaining/
state: <10
- attributes:
device_class: safety
state: 'on'
- entity_id: binary_sensor.electricity_price_spike
state: 'on'
- attributes:
days: <= 1
device_class: garbage_collection__schedule
- attributes:
device_class: battery
not 1:
attributes:
Is Charging: true
not 2:
attributes:
battery_status: Charging
not 3:
attributes:
Is Charged: true
not 4:
attributes:
icon: /charging/
options:
type: custom:battery-entity-row
state: < 10
- attributes:
weeks_remaining: 0
- entity_id: /cpu_percent/
state: '> 70'
- entity_id: /memory_percent/
state: '> 70'
- entity_id: sensor.recorder_age
state: '> 180'
show_empty: false
sort:
method: none
type: custom:auto-entities
unique: true
2023-04-25 07:36:58 +10:00
icon: hass:home
panel: false
path: default_view
title: Home
- badges: []
cards:
- cards:
- cards:
- entity: person.bo_jeanes
fill_container: false
hide_name: false
hide_state: false
type: custom:mushroom-person-card
use_entity_picture: true
- double_tap_action:
action: none
entity: sensor.template_room_bo_phone
icon: "{% if is_state(entity, 'not_home') and is_state('person.bo_jeanes',\
\ 'home') %}\n mdi:cellphone-off\n{% else %}\n mdi:cellphone-marker\n\
{% endif %}"
secondary: "{% if is_state('person.bo_jeanes', 'not_home') %}\n ~{{ states('proximity.bo_home')\
\ }}m from home\n{% elif is_state(entity, 'not_home') %}\n Unknown\n\
{% else %}\n {{ states(entity) | replace(\"_s_\",\"'s \") | replace(\"\
_\",\" \") | title }}\n ~{{ state_attr(entity, 'distance') }}m\n{% endif\
\ %}"
tap_action:
action: more-info
type: custom:mushroom-template-card
type: vertical-stack
- cards:
- entity: person.ri_liu
fill_container: false
hide_name: false
hide_state: false
layout: horizontal
type: custom:mushroom-person-card
use_entity_picture: true
- double_tap_action:
action: none
entity: sensor.template_room_ri_phone
icon: "{% if is_state(entity, 'not_home') and is_state('person.ri_liu',\
\ 'home') %}\n mdi:cellphone-off\n{% else %}\n mdi:cellphone-marker\n\
{% endif %}"
secondary: "{% if is_state('person.ri_liu', 'not_home') %}\n ~{{ states('proximity.ri_home')\
\ }}m from home\n{% elif is_state(entity, 'not_home') %}\n Unknown\n\
{% else %}\n {{ states(entity) | replace(\"_s_\",\"'s \") | replace(\"\
_\",\" \") | title }}\n ~{{ state_attr(entity, 'distance') }}m\n{% endif\
\ %}"
tap_action:
action: more-info
type: custom:mushroom-template-card
type: vertical-stack
type: horizontal-stack
- aspect_ratio: '16:9'
auto_fit: true
entities:
- entity: person.bo_jeanes
- entity: person.ri_liu
hours_to_show: 12
type: map
icon: mdi:account-supervisor-circle
path: people
theme: Backend-selected
title: People
- badges: []
cards:
- entities:
- entity: binary_sensor.in_bed
name: Anyone In bed
secondary_info: last-updated
- entity: input_boolean.bo_in_bed
- entity: input_boolean.ri_in_bed
- entity: cover.bedroom_blinds
- entity: sensor.bedroom_blinds_motor_state
- entity: automation.in_bed_detection
- entity: automation.manage_bedroom_blinds
type: entities
- chips:
- entity: binary_sensor.in_bed
type: entity
type: custom:mushroom-chips-card
- double_tap_action:
action: toggle
entity: cover.bedroom_blinds
fill_container: false
primary_info: name
show_buttons_control: false
show_position_control: true
type: custom:mushroom-cover-card
icon: mdi:bed
path: bedroom
theme: Backend-selected
title: Bedroom
- badges: []
cards:
- entity: weather.home_weather
number_of_forecasts: '3'
type: custom:weather-card
- entities:
- entity: sun.sun
- entity: sensor.home_weather_condition
- entity: sensor.home_weather_temperature
name: "\xB0C Current"
- entity: sensor.home_weather_humidity
name: Humidity
- entity: sensor.home_weather_cloud_coverage
name: Cloud coverage
hours_to_show: 24
refresh_interval: 0
type: history-graph
- center_latitude: -36.7769283
center_longitude: 144.2634146
extra_labels: true
map_style: Voyager
marker_latitude: -36.7769283
marker_longitude: 144.2634146
show_marker: true
show_range: true
show_zoom: true
type: custom:bom-radar-card
zoom_level: 8
- entities:
- entity: sun.sun
- entity: weather.home_weather
- entity: sensor.home_weather_condition
- entity: sensor.home_weather_forecast_condition
- entity: weather.home
- entity: weather.home_hourly
- entity: sensor.home_weather_cloud_coverage
- entity: sensor.home_weather_forecast_cloud_coverage
type: history-graph
2023-06-10 08:25:16 +10:00
- entities:
- entity: sensor.home_weather_temperature
- entity: sensor.area_temperature_degc_living_room
- entity: sensor.area_temperature_degc_bo_s_office
- entity: sensor.area_temperature_degc_bedroom
hours_to_show: 300
type: history-graph
2023-04-25 07:36:58 +10:00
icon: hass:thermometer
path: climate
title: Climate
- badges: []
cards:
- calibration_source:
camera: true
entity: vacuum.robot_vacuum
map_source:
camera: camera.vacuum_map
type: custom:xiaomi-vacuum-map-card
vacuum_platform: default
2022-07-19 18:53:10 +10:00
- calibration_source:
camera: true
entity: vacuum.dreame_p2028_4394_robot_cleaner
map_locked: true
map_modes:
- max_repeats: 3
max_selections: 10
predefined_selections:
- icon:
name: mdi:broom
x: -450
y: -9175
id: 8
label:
offset_y: 35
text: Analog Room
x: -450
y: -9175
- icon:
name: mdi:broom
x: -5625
y: -9175
id: 3
label:
offset_y: 35
text: Ri's Office
x: -5625
y: -9175
- icon:
name: mdi:broom
x: 2000
y: -9700
id: 4
label:
offset_y: 35
text: Laundry
x: 2000
y: -9700
- icon:
name: mdi:broom
x: 1925
y: -6625
id: 2
label:
offset_y: 35
text: Bathroom
x: 1925
y: -6625
- icon:
name: mdi:broom
x: -5750
y: -6350
id: 1
label:
offset_y: 35
text: Bo's Office
x: -5750
y: -6350
- icon:
name: mdi:broom
x: -2525
y: -750
id: 9
label:
offset_y: 35
text: Hallway
x: -2525
y: -750
- icon:
name: mdi:broom
x: 675
y: -3100
id: 5
label:
offset_y: 35
text: Kitchen
x: 675
y: -3100
- icon:
name: mdi:broom
x: -5575
y: -2525
id: 10
label:
offset_y: 35
text: Spare Room
x: -5575
y: -2525
- icon:
name: mdi:broom
x: 675
y: 1825
id: 6
label:
offset_y: 35
text: Living Room
x: 675
y: 1825
- icon:
name: mdi:broom
x: -5650
y: 1025
id: 7
label:
offset_y: 35
text: Bedroom
x: -5650
y: 1025
repeats_type: EXTERNAL
service_call_schema:
service: xiaomi_miot.call_action
service_data:
aiid: 1
entity_id: '[[entity_id]]'
force_params: true
params:
- piid: 1
value: 18
- piid: 10
value: '{"selects":[[[[selection_unwrapped]],[[repeats]],3,3,1]]}'
siid: 4
template: vacuum_clean_segment
- template: vacuum_goto
- max_repeats: 5
max_selections: 10
repeats_type: EXTERNAL
service_call_schema:
service: xiaomi_miot.call_action
service_data:
aiid: 1
entity_id: '[[entity_id]]'
force_params: true
params:
- piid: 1
value: 19
- piid: 10
value: '{"areas":[[[[selection_unwrapped]],[[repeats]],1,1]]}'
siid: 4
template: vacuum_clean_zone
map_source:
camera: camera.dreame_z10_pro_map
two_finger_pan: true
type: custom:xiaomi-vacuum-map-card
vacuum_platform: default
2022-05-11 16:41:13 +10:00
icon: ''
panel: false
path: misc
title: misc
- badges: []
cards:
- entities:
- switch.washing_machine_plug
- sensor.washing_machine_plug_current
- sensor.washing_machine_plug_energy_usage
- sensor.washing_machine_plug_total_daily_energy
- sensor.washing_machine_plug_voltage
- sensor.washing_machine_plug_wattage
hours_to_show: 120
type: history-graph
icon: mdi:washing-machine
path: washing
theme: Backend-selected
title: Washing
- badges: []
cards:
- card:
type: entities
filter:
exclude:
- entity_id: /tent/
include:
- entity_id: /adaptive/
type: custom:auto-entities
- card:
type: entities
filter:
exclude:
- entity_id: /tent/
include:
- domain: light
type: custom:auto-entities
icon: mdi:lamps
path: lighting
theme: Backend-selected
title: Lighting
- badges: []
cards:
- card:
type: entities
filter:
exclude: []
include:
- attributes:
device_class: door
domain: binary_sensor
type: custom:auto-entities
- card:
type: history-graph
filter:
exclude: []
include:
- attributes:
device_class: door
domain: binary_sensor
type: custom:auto-entities
icon: mdi:door
path: doors
theme: Backend-selected
title: Doors
2022-05-18 13:29:20 +10:00
- badges: []
cards:
- entities:
- sensor.ble_temperature_shower_a4c13865903a
- sensor.ble_temperature_bathroom_a4c138f6b8cb
- sensor.bathroom_sensor_temperature
- sensor.ble_humidity_shower_a4c13865903a
- sensor.ble_humidity_bathroom_a4c138f6b8cb
type: entities
- entities:
- sensor.ble_temperature_shower_a4c13865903a
- sensor.ble_temperature_bathroom_a4c138f6b8cb
- sensor.bathroom_sensor_temperature
- sensor.ble_humidity_shower_a4c13865903a
- sensor.ble_humidity_bathroom_a4c138f6b8cb
type: history-graph
icon: mdi:shower
path: bathroom
theme: Backend-selected
title: Bathroom
2022-08-26 18:25:05 +10:00
- badges: []
cards:
- card:
type: entities
filter:
exclude: []
include:
- entity_id: /teyes/
- device: /Teyes/
type: custom:auto-entities
unique: true
- aspect_ratio: '16:9'
auto_fit: true
entities:
- entity: device_tracker.teyes_cc3
hours_to_show: 12
type: map
icon: mdi:car
path: car
theme: Backend-selected
title: Car