Skip to content

Commit

Permalink
update dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeeq committed May 1, 2024
1 parent be704fe commit 551e3af
Show file tree
Hide file tree
Showing 6 changed files with 130 additions and 55 deletions.
18 changes: 12 additions & 6 deletions roles/servers/apps/home-assistant/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ home_assistant_custom_lovelace_plugins:
- name: 'lovelace-multiple-entity-row'
entity_name: 'multiple-entity-row.js'
repo: https://github.com/benct/lovelace-multiple-entity-row
version: v4.5.0
# version: v4.5.0
- name: 'button-card'
entity_name: 'button-card.js'
repo: https://github.com/custom-cards/button-card
release: true
# - name: 'lovelace-xiaomi-vacuum-map-card'
# entity_name: 'xiaomi-vacuum-map-card.js'
# repo: https://github.com/PiotrMachowski/lovelace-xiaomi-vacuum-map-card.git
Expand All @@ -33,12 +37,14 @@ home_assistant_custom_lovelace_plugins:
home_assistant:
automations:
inching:
- entity_id: switch.4chpror3_switch_garaz_brama
- entity_id: switch.4chpror3_switch_dwor_brama
- entity_id: switch.4chpror3_switch_dwor_furtka
- entity_id: switch.sonoff_4chpror3_garaz_4chpror3_switch_garaz_brama
- entity_id: switch.sonoff_4chpror3_dwor_4chpror3_switch_dwor_brama
- entity_id: switch.sonoff_4chpror3_dwor_4chpror3_switch_dwor_furtka
inching_seconds: 15
- entity_id: switch.4chpror3_swiatlo_garaz_wew
- entity_id: switch.4chpror3_swiatlo_garaz_zew
- entity_id: switch.sonoff_4chpror3_garaz_4chpror3_swiatlo_garaz_wew
- entity_id: switch.sonoff_4chpror3_garaz_4chpror3_swiatlo_garaz_zew
- entity_id: switch.sonoff_4chpror3_garaz_4chpror3_swiatlo_garaz_brama_dwor_btn

mqtt:
zigbee_coordinator_base_topic: "tasmota_10B490"
sonoff:
Expand Down
15 changes: 14 additions & 1 deletion roles/servers/apps/home-assistant/tasks/custom.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,28 @@
- "{{ install_path }}/config/www"
- "{{ install_path }}/config/git"

- name: "Pull custom components"
- name: "Pull custom components via git"
git:
repo: "{{ item.repo }}"
dest: "{{ install_path }}/config/git/{{ item.name }}"
update: true
version: "{{ item.version | default('HEAD') }}"
when: item.release is not defined or item.release != true
with_items:
- "{{ home_assistant_custom_components }}"
- "{{ home_assistant_custom_lovelace_plugins }}"

# - name: "Pull custom components via release"
# git:
# https://github.com/PiotrMachowski/lovelace-xiaomi-vacuum-map-card/releases/download/v2.2.2/xiaomi-vacuum-map-card.js
# repo: "{{ item.repo }}"
# dest: "{{ install_path }}/config/git/{{ item.name }}"
# update: true
# version: "{{ item.version | default('HEAD') }}"
# with_items:
# - "{{ home_assistant_custom_components }}"
# - "{{ home_assistant_custom_lovelace_plugins }}"

- name: Create a symbolic link custom_components
file:
src: "../git/{{ item.name }}/custom_components/{{ item.name }}"
Expand All @@ -31,3 +43,4 @@
dest: "{{ install_path }}/config/www/{{ item.entity_name }}"
remote_src: true
loop: "{{ home_assistant_custom_lovelace_plugins }}"
when: item.release is not defined or item.release != true
4 changes: 2 additions & 2 deletions roles/servers/apps/home-assistant/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@

- import_tasks: custom.yml
- import_tasks: config.yml
# - import_tasks: config_mosquitto.yml
# - import_tasks: install.yml
- import_tasks: config_mosquitto.yml
- import_tasks: install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,22 @@
target:
entity_id: switch.gosund_switch_pompa_cyrkulacyjna
mode: single
- alias: Click button to close dwor_brama
description: ''
trigger:
- platform: state
entity_id:
- switch.sonoff_4chpror3_garaz_4chpror3_swiatlo_garaz_brama_dwor_btn
from: "off"
to: "on"
condition: []
action:
- service: switch.toggle
metadata: {}
data: {}
target:
entity_id: switch.sonoff_4chpror3_dwor_4chpror3_switch_dwor_brama
mode: single
# - alias: Alert Brama
# description: ''
# trigger:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ lovelace:
resources:
- url: /local/multiple-entity-row.js?ver=1
type: module
- url: /local/button-card.js?ver=1
type: module

# Text to speech
tts:
Expand Down
130 changes: 84 additions & 46 deletions roles/servers/apps/home-assistant/templates/config/ui-lovelace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,12 @@ views:
name: Bateria
- type: entities
entities:
- entity: switch.minir2_swiatlo_przedpokoj
- entity: switch.sonoff_minir2_przedpokoj_minir2_swiatlo_przedpokoj
name: Przedpokoj
icon: mdi:ceiling-light
- type: section
label: Dol
- entity: switch.minir2_swiatlo_salon_kinkiety
- entity: switch.sonoff_minir2_salon_kinkiety_minir2_swiatlo_salon_kinkiety
name: Salon Kinkiety
icon: mdi:wall-sconce
- entity: switch.spp_salon
Expand All @@ -160,11 +160,11 @@ views:
- entity: light.ikea_tradfri_kuchnia_szafki
name: Kuchnia LED szafki
icon: mdi:led-strip
- entity: switch.minir2_swiatlo_taras
- entity: switch.sonoff_minir2_taras_minir2_swiatlo_taras
name: Taras
icon: mdi:coach-lamp-variant
- type: section
- entity: switch.minir2_swiatlo_sypialnia
- entity: switch.sonoff_minir2_sypialnia_minir2_swiatlo_sypialnia
name: Sypialnia
icon: mdi:ceiling-light
- type: section
Expand All @@ -177,7 +177,7 @@ views:
state_color: true
- type: entities
entities:
- entity: switch.gosund_switch_clevo
- entity: switch.gosund_clevo_gosund_switch_clevo
type: custom:multiple-entity-row
name: Clevo
icon: mdi:laptop
Expand All @@ -186,7 +186,7 @@ views:
entities:
- entity: sensor.gosund_clevo_energy_power
name: Zuzycie
- entity: switch.gosund_switch_monitory
- entity: switch.gosund_monitory_gosund_switch_monitory
type: custom:multiple-entity-row
name: Biuro Monitory
icon: mdi:monitor
Expand All @@ -195,16 +195,19 @@ views:
entities:
- entity: sensor.gosund_monitory_energy_power
name: Zuzycie
- entity: switch.gosund_switch_pompa_cyrkulacyjna
- entity: switch.gosund_pompa_gosund_switch_pompa_cyrkulacyjna
type: custom:multiple-entity-row
name: Pompa Cyrkulacyjna
icon: mdi:thermometer-water
toggle: true
show_state: true
entities:
- entity: automation.wlacz_cyrkulacje
name: Auto
toggle: true
- entity: sensor.gosund_pompa_energy_power
name: Zuzycie
- entity: switch.gosund_switch_pc
- entity: switch.gosund_pc_gosund_switch_pc
type: custom:multiple-entity-row
name: PC
toggle: true
Expand All @@ -216,23 +219,23 @@ views:
show_header_toggle: false
state_color: true
- type: entities
title: Swiatla Ogrod
entities:
- entity: switch.4chpror3_swiatlo_podjazd
- entity: switch.sonoff_4chpror3_ogrod_swiatla_4chpror3_swiatlo_podjazd
name: Podjazd
icon: mdi:post-lamp
- entity: switch.4chpror3_swiatlo_boki_ogrodu
- entity: switch.sonoff_4chpror3_ogrod_swiatla_4chpror3_swiatlo_boki_ogrodu
name: Boki ogrodu
icon: mdi:light-flood-up
- entity: switch.4chpror3_swiatlo_tyl_ogrodu
- entity: switch.sonoff_4chpror3_ogrod_swiatla_4chpror3_swiatlo_tyl_ogrodu
name: Tyl ogrodu
icon: mdi:light-flood-up
- entity: switch.4chpror3_swiatlo_slupki_ognisko
- entity: switch.sonoff_4chpror3_ogrod_swiatla_4chpror3_swiatlo_slupki_ognisko
name: Slupki ognisko
icon: mdi:post-lamp
- entity: switch.minir2_swiatlo_taras
- entity: switch.sonoff_minir2_taras_minir2_swiatlo_taras
name: Taras
icon: mdi:coach-lamp-variant
title: Swiatla Ogrod
- type: entities
entities:
- entity: sensor.speedtest_ping
Expand Down Expand Up @@ -270,7 +273,7 @@ views:
cards:
- type: entities
entities:
- entity: switch.4chpror3_switch_dwor_brama
- entity: switch.sonoff_4chpror3_dwor_4chpror3_switch_dwor_brama
type: custom:multiple-entity-row
name: Brama Dwor
icon: mdi:gate
Expand All @@ -281,11 +284,11 @@ views:
name: Bateria
- entity: binary_sensor.door_state_dwor_brama
name: Stan
- entity: switch.4chpror3_switch_dwor_furtka
- entity: switch.sonoff_4chpror3_dwor_4chpror3_switch_dwor_furtka
name: Furtka
icon: mdi:door
- type: section
- entity: switch.4chpror3_switch_garaz_brama
- entity: switch.sonoff_4chpror3_garaz_4chpror3_switch_garaz_brama
type: custom:multiple-entity-row
name: Brama Garazowa
icon: mdi:garage-alert
Expand All @@ -296,41 +299,45 @@ views:
name: Bateria
- entity: binary_sensor.door_state_garaz_brama
name: Stan
- entity: switch.4chpror3_swiatlo_garaz_wew
- entity: switch.sonoff_4chpror3_garaz_4chpror3_swiatlo_garaz_wew
name: Garaz Swiatlo
icon: mdi:lightbulb-fluorescent-tube
- entity: switch.4chpror3_swiatlo_garaz_zew
- entity: switch.sonoff_4chpror3_garaz_4chpror3_swiatlo_garaz_zew
name: Swiatlo nad Brama Garazowa
icon: mdi:coach-lamp-variant
- entity: switch.minir2_swiatlo_drzwi_dwor
- entity: switch.sonoff_minir2_drzwi_dwor_minir2_swiatlo_drzwi_dwor
name: Drzwi Dwor
icon: mdi:coach-lamp
title: Garaz
show_header_toggle: false
- type: entities
title: Swiatla Ogrod
entities:
- entity: switch.4chpror3_swiatlo_podjazd
- entity: switch.sonoff_4chpror3_ogrod_swiatla_4chpror3_swiatlo_podjazd
name: Podjazd
icon: mdi:post-lamp
- entity: switch.4chpror3_swiatlo_boki_ogrodu
- entity: switch.sonoff_4chpror3_ogrod_swiatla_4chpror3_swiatlo_boki_ogrodu
name: Boki ogrodu
icon: mdi:light-flood-up
- entity: switch.4chpror3_swiatlo_tyl_ogrodu
- entity: switch.sonoff_4chpror3_ogrod_swiatla_4chpror3_swiatlo_tyl_ogrodu
name: Tyl ogrodu
icon: mdi:light-flood-up
- entity: switch.4chpror3_swiatlo_slupki_ognisko
- entity: switch.sonoff_4chpror3_ogrod_swiatla_4chpror3_swiatlo_slupki_ognisko
name: Slupki ognisko
icon: mdi:post-lamp
- entity: switch.minir2_swiatlo_taras
- entity: switch.sonoff_minir2_taras_minir2_swiatlo_taras
name: Taras
icon: mdi:coach-lamp-variant
title: Swiatla Ogrod
- type: entities
entities:
- entity: sensor.consumed_energy_total
name: Consumed Energy Total
- entity: sensor.donated_energy_total
name: Donated Energy Total
- entity: sensor.consumed_energy_dzien_total
name: Consumed Energy Day Total
- entity: sensor.donated_energy_dzien_total
name: Donated Energy Day Total
- entity: sensor.consumed_energy_noc_total
name: Consumed Energy Night Total
- entity: sensor.donated_energy_noc_total
name: Donated Energy Night Total
- entity: sensor.saj_saj_wifi_dtu_a2c8e9_current_power
name: Current Power
- entity: sensor.saj_saj_wifi_dtu_a2c8e9_state
Expand All @@ -350,11 +357,22 @@ views:
type: glance
title: Automations
entities:
- entity: automation.inching_switch_4chpror3_switch_garaz_brama
- entity: automation.inching_switch_4chpror3_swiatlo_garaz_wew
- entity: automation.inching_switch_4chpror3_swiatlo_garaz_zew
- entity: automation.inching_switch_4chpror3_switch_dwor_brama
- entity: automation.inching_switch_4chpror3_switch_dwor_furtka
- entity: automation.inching_switch_sonoff_4chpror3_garaz_4chpror3_switch_garaz_brama
name: inching_garaz_brama
- entity: automation.inching_switch_sonoff_4chpror3_dwor_4chpror3_switch_dwor_brama
name: inching_dwor_brama
- entity: automation.inching_switch_sonoff_4chpror3_dwor_4chpror3_switch_dwor_furtka
name: inching_dwor_furtka
- entity: automation.inching_switch_sonoff_4chpror3_garaz_4chpror3_swiatlo_garaz_wew
name: inching_swiatlo_garaz_wew
- entity: automation.inching_switch_sonoff_4chpror3_garaz_4chpror3_swiatlo_garaz_zew
name: inching_swiatlo_garaz_zew
- entity: automation.inching_switch_sonoff_4chpror3_garaz_4chpror3_swiatlo_garaz_brama_dwor_btn
name: inching_garaz_brama_dwor_btn
- entity: automation.wlacz_cyrkulacje
name: wlacz_cyrkulacje
- entity: automation.wylacz_cyrkulacje
name: wylacz_cyrkulacje
state_color: false
- type: entities
entities:
Expand Down Expand Up @@ -402,10 +420,14 @@ views:
show_header_toggle: false
- type: entities
entities:
- entity: calendar.rain_bird_controller
name: Nawodnienie status
- entity: number.rain_bird_controller_rain_delay
name: Rain delay
- sensor.raindelay
- binary_sensor.rainsensor
name: Rain delay setting
- entity: sensor.rain_bird_controller_raindelay
name: Rain delay status
- entity: binary_sensor.rain_bird_controller_rainsensor
name: Rain Sensor status
title: Rain Bird Controller
- title: Pogoda
path: pogoda
Expand All @@ -426,19 +448,20 @@ views:
cards:
- type: entities
entities:
- vacuum.roborock_s5_max
- sensor.roborock_s5_max_battery
- sensor.roborock_s5_max_status
- entity: select.roborock_s5_max_mop_intensity
name: Mop intensity
- select.roborock_s5_max_mop_mode
- vacuum.roborock_s5_max
- binary_sensor.roborock_s5_max_mop_attached
- binary_sensor.roborock_s5_max_water_box_attached
- entity: sensor.roborock_s5_max_cleaning_time
name: Cleaning time
- entity: sensor.roborock_s5_max_total_cleaning_time
name: Total cleaning time
- type: picture
image_entity: image.roborock_s5_max_dol
- entity: image.roborock_s5_max_dol
name: Mapa dol
- entity: image.roborock_s5_max_gora
name: Mapa gora
title: Roborock S5 Max
- type: picture
image_entity: image.roborock_s5_max_dol
- type: entities
entities:
- entity: sensor.nawilzacz_powietrza_humidity
Expand Down Expand Up @@ -476,6 +499,21 @@ views:
type: picture-entity
entity: camera.yi_hack_a2_723336_cam
image: https://demo.home-assistant.io/stub_config/bedroom.png
- type: entities
entities:
- entity: select.reolink_furtka_play_quick_reply_message
name: Play quick reply message
- entity: siren.reolink_furtka_siren
name: Siren
- entity: binary_sensor.reolink_furtka_motion
name: Motion
- entity: binary_sensor.reolink_furtka_person
name: Person
- entity: binary_sensor.reolink_furtka_visitor
name: Visitor
title: Reolink-Furtka
- type: picture-entity
entity: camera.reolink_furtka_fluent
- theme: Backend-selected
title: Ogrzewanie
path: ogrzewanie
Expand Down

0 comments on commit 551e3af

Please sign in to comment.