Thank you!
Hi!
I love the theme but missed the functionality to add a general sensor value to a room. I forked the theme and added such functionality. Iâm not yet too happy but it works although Iâm a total newbie in Home Assistant programming. If you have feedback or suggestions let me know. As soon as Iâm happy Iâll do a pull request.
Thanks! I have already made something for this in the next update(s). I see you added a button for it. I was thinking about stopping additional sensors in a info popup in a room.
Awesome work Dwain!
I wonder what would be the best way to add a car?
A car? I would use a addon for it, more page addon or room addon.
Some ideas I had about this topic:
- I added the button because I love to have the simple overview so I wanted to have the actual value there:
- Following this approach and looking at the climate button I added also the history.
In the original approach I had a more fancy color scheme but for the purpose of a general sensor I removed it. - My next idea was to change the icon according to the sensor class (see https://developers.home-assistant.io/docs/entity_sensor)
- The last idea was about a group of sensors. Just adding multiple histories on the second page. Problem on the first is that there is no reasonable summary as all sensors could have different unit.
- Probably making individual sensors according to their class and showing the max value on the button is also an idea.
Let me know if I can help somehow on that topic, Iâll wait for your solution before adding to mine. My original demand was an air quality sensor with CO2 equivalent and something like a glance on (multiple) sensors.
Hi Patrick, I can look into this. Can you please join the EN slack group maybe we can discuss this live?
Also the next version will support custom buttons for room addons. So you can have this all inside a room addon!
Some good news I want to share with you all. As from version 1.2.0 (coming soon) it is not necessary anymore to reboot your complete HA installation after you made any changes to my themeâs config files
Really good News⊠waiting for the new release
Hi DwainâŠ
Can you share spy shot How new release looks on bigger screen?
Nice theme, installed last night and setting it up as of now.
Just wanted to share a swedish translation, not fully tested yet but feel free to use it.
I saved the english line to see what i translated from.
# Translation by r1kkie
se:
greetings:
good_morning: 'God morgon' #'Good Morning'
good_afternoon: 'God eftermiddag' # 'Good Afternoon'
good_evening: 'God kvÀll' #'Good Evening'
alarm:
armed_away: 'Larmet pÄslaget (Larmat borta)' #'Alarm system activated (Armed Away).'
armed_home: 'Larmet pÄslaget (Larmat hemma)' #'Alarm system activated (Armed Home).'
disarmed: 'Larmet avslaget' #'Alarm system de-activated.'
history:
sec_ago: 'sek sen' #'sec ago'
min_ago: 'min sen' #'min ago'
h_ago: 'h sen' #'h ago'
d_ago: 'd sen' #'d ago'
m_ago: 'm sen' #'m ago'
y_ago: 'y sen' #'y ago'
house_information:
title: 'Husinformation' #'House Information'
favorites: 'Favoriter' #'Favorites'
house_calendar: 'Huskalender' #'House Calendar'
activity: 'Aktiviteter (Dörrar, Fönster, Rörelse' #'Activity (Doors, windows, motion)'
motion:
title: 'Rörelse' #'Motion'
title_plural: 'Röreslser' #'Motions'
motion_on: 'UpptÀckt' #'Detected'
light:
title: 'Lampa' #'Light'
title_plural: 'Lampor' #'Lights'
light_on: 'lampa tÀnd' #'light on'
lights_on: 'lampor tÀnda' #'lights on'
light_off: 'lampa slÀckt' #'light off'
lights_off: 'lampor slÀckta' #'lights off'
all_lights_on: 'Alla lampor tÀnda' #'All lights on'
all_lights_off: 'Alla lampor slÀckta' #'All lights off'
on_text: 'TĂ€nd' #'On'
off_text: 'SlÀckt' #'Off'
door:
title: 'Dörr' #'Door'
title_plural: 'Dörrar' #'Doors'
door_open: 'dörr öppen' #'door open'
doors_open: 'dörrar öppna' #'doors open'
all_doors_open: 'Alla dörrar öppna' #'All doors open'
all_doors_closed: 'Alla dörrar stÀngda' #'All doors closed'
open: 'öppen' #'Open'
closed: 'StÀngd' #'Closed'
window:
title: 'Fönster' #'Window'
title_plural: 'Fönster' #'windows'
window_open: 'fönster öppet' #'window open'
windows_open: 'fönster öppna' #'windows open'
all_windows_open: 'Alla fönster öppna' #'All windows open'
all_windows_closed: 'Alla fönster stÀngda' #'All windows closed'
open: 'öppen' #'Open'
closed: 'StÀngt' #'Closed'
climate:
title: 'Temperatur' #'Temperature'
title_plural: 'Temperaturer' #'Temperates'
inside: 'inne' #'inside'
outside: 'ute' #'outside'
idle: 'Stand-by'
heating: 'VĂ€rmer till' #'Heating to'
off_text: 'Av' #'Off'
program: 'Program'
heat: 'VĂ€rme' #'Heat'
this_room: 'Detta rum' #'This room'
temperature: 'Temperatur' #'Temperature'
humidity: 'Fuktighet' #'Humidity'
cover:
title: 'Gardin' #'Cover'
title_plural: 'Gardiner' #'Covers'
cover_open: 'öppdragen' #'Open'
cover_closed: 'fördragen' #'Closed'
device:
title: 'Enhet' #'Device'
title_plural: 'Enheter' #'Devices'
device_on: 'enhet pÄslagen' #'device on'
devices_on: 'enheter pÄslagna' #'devices on'
on_text: 'pÄ' #'On'
off_text: 'av' #'Off'
device_off: 'Enhet avslagen' #'Device off'
devices_off: 'Enhet avslagen' #'Devices off'
all_devices_on: 'Alla enheter pÄslagna' #'All devices on'
all_devices_off: 'Alla enheter avslagna' #'All devices off'
media_player:
title: 'Mediaspelare' #'Media player'
title_plural: 'Mediaspelare' #'Media players'
media_player_on: 'mediaspelare pÄslagen' #'media player on'
media_players_on: 'mediapsplare pÄslagna' #'media players on'
media_player_off: 'Mediaspelare avstÀngd' #'Media player off'
media_players_off: 'Mediaspelare avstÀngda' #'Media players off'
all_media_players_on: 'Alla mediaspelare pÄslagna' #'All media players on'
all_media_players_off: 'Alla mediaspelare avstÀngda' #'All media players off'
on_text: 'PĂ„' #'On'
off_text: 'Av' #'Off'
vacuum:
title: 'Dammsugare' #'Vacuum'
title_plural: 'Dammsugare' #'Vacuums'
plant:
title: 'VĂ€xt' #'Plant'
title_plural: 'VĂ€xter' #'Plants'
home:
title: 'Hemsida' #'Homepage'
rooms:
title: 'Rum' #'Rooms'
all_lights:
title: 'Alla lampor' #'All lights'
scenes:
title: 'Scener' #'Scenes'
not_defined: 'Inga scener definerade' #'No scenes defined'
cameras:
title: 'Kamera' #'Cameras'
not_defined: 'Inga kameror definerad' #'No cameras defined'
more_page:
title: 'Mer' #'More'
house_info: 'Husinfo' #'House info'
house_data:
title: 'Husdata' #'House data'
all_sensors: 'Alla sensorer' #'All sensors'
all_batteries: 'Alla batterier' #'All batteries'
config: 'Konfiguration' #'Config'
developer_tools: 'Utvecklarverktyg' #'Developer tools'
settings:
title: 'TemainstÀllning' #'Theme settings'
theme_docs: 'Tema dokument' #'Theme docs'
support_paypal: 'Stöd/Donera med PayPal' #'Support/Donate with PayPal'
buy_coffee: 'Ge bort en kaffe' #'Buy me a coffee'
by: 'Av' #'By'
version: 'Version' #'Version'
update_available: 'Uppdatering av Dwains tema tillÀnglig' #'Update available of Dwains Theme!'
more_page_addons: 'Flera tillÀgg' #'More addons'
Oh didnt know that.
Unfortunately this hasnât been changed in 1.2.0. But iâm working hard on this (for quit some weeks now) but this will be pushed in version 1.3.0.
Please check his version if everything is correct
Looks good but there are some things i would change but thats more an opinion what word to use where its possible to use different ones.
But what I would change is this:
alarm:
armed_away: 'Larmet aktiverat (Aktiverat Borta).'
armed_home: 'Larm systemet aktiverat (Aktiverat Hemma).'
disarmed: 'Larmet avaktiverat.'
to this:
alarm:
armed_away: 'Larmet aktiverat (Aktiverat Borta).'
armed_home: 'Larmet aktiverat (Aktiverat Hemma).'
disarmed: 'Larmet avaktiverat.'
Just to make them equal and not mix in another word in one of the states.
Update time!!!
v1.2.0 - New features & bug fixes
NOTE: It still may contain some bugs. Please open a Issue on Github when you find something!
Got Dwains Theme already installed?
Copy the content of the this release over your existing files and overwrite all existing files! Note: The way resources are loaded has been changed from this version on. Overwrite your ui-lovelace.yaml
file with the one in this version! Do you have any custom resources? Go to the folder dwains-theme/resources/
rename the file custom_resources-sample.yaml
to custom_resources.yaml
and place your resources in that file! This file will never be overwritten with updates instead of the old way, so you can keep your own additional resources safe.
Read more on how to update here
This version has function to reload theme config, without restarting HA Use the new button on the theme settings page or do a service call dwains_theme.reload
Also you can use a map on person page and some entities (battery percentage etc) on person page without creating an addon for it.
And you can pust some more_entities
inside a room now (For example smoke detector etc).
Read the docs for more info.
â
Have a feature request?
Open an issue on GitHub with the title FR
or Feature Request
works like a charm!
Works beautifully
Thank a lot for this update.
This version has function to reload theme config, without restarting HA Use the new button on the theme settings page or do a service call dwains_theme.reload
Unfortunately, when i tried to reload the theme , i have this error :
Wed Feb 26 2020 21:34:52 GMT+0900 (Japan Standard Time)
[Errno 2] No such file or directory: 'dwains-theme/translations/en.yaml'
Traceback (most recent call last):
File "/data/data/com.termux/files/usr/lib/python3.7/site-packages/homeassistant/components/websocket_api/commands.py", line 134, in handle_call_service
connection.context(msg),
File "/data/data/com.termux/files/usr/lib/python3.7/site-packages/homeassistant/core.py", line 1226, in async_call
await asyncio.shield(self._execute_service(handler, service_call))
File "/data/data/com.termux/files/usr/lib/python3.7/site-packages/homeassistant/core.py", line 1251, in _execute_service
await handler.func(service_call)
File "/data/data/com.termux/files/home/.homeassistant/custom_components/dwains_theme/__init__.py", line 107, in handle_reload
translations = load_yaml("dwains-theme/translations/"+language+".yaml")
File "/data/data/com.termux/files/home/.homeassistant/custom_components/dwains_theme/__init__.py", line 34, in load_yaml
with open(fname, encoding="utf-8") as f:
FileNotFoundError: [Errno 2] No such file or directory: 'dwains-theme/translations/en.yaml'
I checked but i do have dwains-theme/translations/en.yaml
in my HA config folder.