you’re right. I missed that.
Dwain,
Thanks for you work on this. I’ve been fiddling with HA for about a year now but never had it ready to “go live”. With your theme, I think I have something that I can get the family to use since it is so intuitive.
I recently updated to 1.4.0 and am running HA on Hassio 0.111.6. I am having a couple of issues. The first is specific to your theme:
-
Sometimes when your theme loads, I can’t see the custom header at all so I can’t switch to other views. Other times, I see the header but I see all of the choices for different views/tabs rather than just the 5 main views. Screenshot of the latter below.
-
Media Player cards are now showing using the inverse color to the selected theme. This is both in your theme and in Lovelace. Dark theme and the card shows light (unreadable). Light theme and the card shows dark. My preference is to use the dark theme exclusively, but I can’t see the media player card info. Screenshot below.
Thanks for any assistance you or others can provide.
I realized that I hadn’t updated the Custom Header card. Now that it is updated, my header problem appears to be solved.
Now on to the media player.
This is a known bug, many users have reported this on my Discord server. I will fix this in in 1.4.1
In the meantime, you can edit the file dwains-theme/views/main/more_page/alarm.yaml
and add your states under - type: alarm-panel
:
- type: alarm-panel
states:
- arm_away
- arm_night
do you accept PR ?
It depends on which stuff, that arm_night I have already made for 1.4.1
Hello Dwains and thanks for your great work.
Unfortunately i cannot mange to make it to work. I read several time both preparation and installation docs but when i check the HA config i always got this error:
Error loading /config/configuration.yaml: invalid key: “OrderedDict([(”_d_t_icons.room_header_more_entities|default(‘mdi:arrange-bring-forward’)", None)])"
in “/config/packages/lovelace-dwains-theme-1.4.0/dwains-theme/plugins/button-cards-templates/rooms/header/more_entities.yaml”, line 5, column 0
Any ideas?
TIA
@dwains Yes, sure. I’ve made just a very few basic modifications - to start and learn from there.
Here’s my rooms.yaml
Thanks for any help
# https://dwainscheeren.github.io/lovelace-dwains-theme/configuration/rooms.html
rooms:
- name: Hallway
icon: mdi:key
# light: light.hallway
# temperature: sensor.hallway_temperature
# climate: climate.hallway_climate
# humidity: sensor.halway_humidity
motion: binary_sensor.fibaro_system_fgms001_zw5_motion_sensor_sensor_2
door: binary_sensor.sensative_strips_sensor
# window: binary_sensor.hallway_window_contact
# vacuum:
# entity: vacuum.rockrobo
# camera: camera.rockrobo_map
# plant: plant.hallway_plant
# media_player: media_player.awesome_hallway_tv
# more_entities:
# entities:
# - entity: sensor.hallway_motion_battery_level
# - entity: sensor.smokedetector_battery
# - name: Garage
# icon: mdi:garage
# light: group.garage_lights
# door: group.garage_doors
# addons:
# - name: Hello room
# icon: mdi:puzzle
# path: 'dwains-theme/addons/rooms/hello-room/page.yaml'
# button_path: 'dwains-theme/addons/rooms/hello-room/button.yaml'
# data:
# some_data: 'This is some data parsed.'
# some_other_data: 'and some other data.'
# entity: vacuum.roborock
# - name: Bedroom
# icon: fal:bed
# more_entities:
# columns: 2 #optional
# entities:
# - entity: sensor.name1
# - entity: sensor.name2
# page_entities:
# columns: 1 #optional
# entities:
# - entity: sensor.name1
# - entity: sensor.name2
Did you also have the file icons.yaml
and did you made any changes in that file?
Yes, icons.yaml is present and i’ve touched nothing in it. So all commented out in this file.
Also don’t got lovelace_gen installed or any thing related to that in your main config?
I confirm lovelace_gen not installed and all prerequisites met. Anyway i’ve tried to minimize the configuration.yaml file (below). Even with this minimal conf, i’m getting the same error.
I’ve placed the directory named lovelace-dwains-theme-1.4.0
under config\packages
.
#Start of dwains-theme necessary code#
homeassistant:
# If you want to customize entries with friendly_name or custom icon.
# Read more here: https://www.home-assistant.io/docs/configuration/customizing-devices/
# Uncomment line below and create file customize.yaml or edit it
customize: !include customize.yaml
# Below entry links to the packages folder required for Dwains Theme
# packages: !include_dir_named sweetplace/packages/ # Comment this whole line if you want to disable Dwains Theme
packages: !include_dir_named packages/
# If you had any important strings before in homeassistant: place them back here below
time_zone: Europe/Rome
whitelist_external_dirs:
- '/share/cams'
- '/config/www'
# #End of dwains-theme necessary code#
I’ve placed the directory named
lovelace-dwains-theme-1.4.0
underconfig\packages
.
That’s the mistake you made, you need to copy the content of that folder to the root of your HA folder, its in the docs installation guide explained, please follow it again.
Thanks Dwain for you patient… Well i’m a little bit confused at this point. The content of the lovelace-dwains-theme-1.4.0
folder includes some subfolders that have the same name of my original folders in the HA config (ie www, custom-components, etc).
So just copying the content of lovelace-dwains-theme-1.4.0
straight to main HA config folder would overwrite the eventually already present folders.
It seems obviuous to just copy the content of each of your subfolders into mine but i’m asking just to be sure.
So ie. the content of lovelace-dwains-theme-1.4.0/www/
into my config/www/
folder.
Is that right?
Thanks
So ie. the content of
lovelace-dwains-theme-1.4.0/www/
into myconfig/www/
folder.
Is that right?
Yes, you need to do that. Don’t be afraid it won’t overwrite any existing file. But the files of my theme just need to be in the same folders as current folders are.
Nice. Solved. Sorry for bothering with this question…
Awesome, I hope you have a lot of fun with my theme.
For sure! Now let’s experimenting… Thanks again