I'm the creator of Battery Notes, thanks for the great overview. Adding the battery_notes configuration.yaml entry before restarting will save you from adding the initial device manually. To display the battery type within the yaml you are using you need to replace the getBatteryLabel section as follows. getBatteryLabel: | () => { let battery_label = states[this._config.entities[0]].attributes.friendly_name.replace(/(battery|level)/gi, '').trim() let battery_type = states[this._config.entities[0]].attributes.battery_type_and_quantity if (battery_type) { return `${battery_label} (${battery_type})` } return battery_label }
Hello to you I love the principle of your HACS, and installed it following the tutorial from Smart Home Australia, I should point out that I only understand English a little. I find myself with a little problem. the battery status colors are not displayed when creating maps Is there a way to correct this? Thanks in advance for any help kind regards Pierre
Your methodical, slow, and detailed walk-through is perfect for those of us keen to keep up with this wonderful technology. Some of us (70+ years old) have no programming skills or knowledge of YAML files and the like and rely on clips like yours to keep us engaged.. Thank you
Thanks. Pitching YT videos is difficult, I could so like many others and rush through configuration and then put the code behind paywalls, but instead I prefer to provide the true step by step tutorials that gives the viewer a greater understanding with an outcome. Let me know if you have any specific topics that you'd like covered.
@@smart_home_australia Yes... I use Ubuntu on my desktop and run Home Assistant on a stand-alone mini PC.. I was stumped, or rather 'met my match' when it came to editing my YAML file when I was following your description. I got to Studio Code Server and wanted to copy and paste but it would not let me.. I searched Google for an answer without results.. So here I sit, stumped.. What can I do to overcome the inability to edit the YAML file on my computer.
So you have a desktop running Ubuntu and a stand-alone PC that runs HA, what OS are you running on that? Are you logging into the standard alone mini PC natively or RDP'ing into it? What's the error message you get in Studio Code Server? and are there any error messages in HA's log files. Sorry to ask so many questions. One of HA's strengths is its ability to run on lots of different hardware, but its one of its weaknesses from a support perspective.
@@smart_home_australia I installed HA, without other software, on to the remote computer and access it from Ubuntu. When I connect and open Studio Code Server, configuration yaml, it allows me to write but not paste. I suspect it has something to do with Ubuntu software. Windows or Apple might allow the 'paste' of the code. I did find a way to add the many lines but it was skewed and when I tested it it came back with the info that 'Card Param' was a problem.. Im sorry if I don't make much sense. My knowledge is limited. It is frustrating to say the least. I may get some help this coming weekend..
@@smart_home_australia My home-assistant has been installed natively on a dedicated pc. I don’t get an error message as I can not ‘paste’ to the yaml lines. It’s likely that Ubuntu doesn’t have the ability to cope with adding to the yaml file.. I hope to get some help today from my son who is a computer nerd. If not, I will get some desktop shots.
Another great Video! Thank you! App works great for all devices except Apple. I have not been able to get a good read on battery level other than 100% or zero. I just use an automation to turn on a smart plug on for 4 hours in the middle of the night. Not perfect but it works and beats leaving it plugged in all of the time.
I love my safe apple eco system, but sometimes the quirks can get a little annoying. Maybe this new push from Apple into Smart Homes is going to make interoperability much better.
Amazing this works so well, thank you for the tutorial. Please do a tutorial of Roomba vacuum robot custom integration with HA, the standard integration does not support room by room cleaning. There is a custom integration but its too complex for me to understand, please do a video supporting this.
Good morning Excellent video, however I don't understand why when I create a map, the battery status colors are not displayed. Thanks in advance for all the help
I had the same issue and I raised with the developer (Andrew Jackson, @AndrewJacksonUK, fabulous guy!!). Mine was resolved with reinstalling, but I'd recommend reaching out to him direct.
Unfortunately the auto entities card shows no entity. I assume it has got something to do with the devices I use. All are HomematicIP and they seem to habe less diannosis: The main battery entity (shows 'normal') and replace, battery type, last replaced. It has no numeric value.
To completely delete the Battery Notes add-on from Home Assistant, follow these steps: 1) Remove the configuration entry: Open your Home Assistant configuration.yaml file and remove the following line: battery_notes: 2) Uninstall the integration: Go to Settings > Integrations in the Home Assistant UI. Find the Battery Notes integration and click on it. Use the menu on the right to select "Uninstall". 3) Delete the custom component files: Navigate to your Home Assistant config directory and locate the custom_components folder. Inside it, find and delete the "battery_notes" folder. 4) Restart Home Assistant: After making these changes, restart your Home Assistant instance to ensure all traces of the add-on are removed. 5) Clean up entities (optional): If you want to remove any leftover entities created by Battery Notes, you can do so manually through the Home Assistant interface or by editing your entity registry file. Remember that uninstalling the integration will remove all battery notes you've added to your devices. If you think you might want to use this information again in the future, consider backing up your configuration before uninstalling. I hope that helps.
I'm the creator of Battery Notes, thanks for the great overview.
Adding the battery_notes configuration.yaml entry before restarting will save you from adding the initial device manually.
To display the battery type within the yaml you are using you need to replace the getBatteryLabel section as follows.
getBatteryLabel: |
() => {
let battery_label = states[this._config.entities[0]].attributes.friendly_name.replace(/(battery|level)/gi, '').trim()
let battery_type = states[this._config.entities[0]].attributes.battery_type_and_quantity
if (battery_type) {
return `${battery_label} (${battery_type})`
}
return battery_label
}
Thanks Andrew. Amazing work. Fabulous that development is so active. It just keeps getting better.
Hello to you
I love the principle of your HACS, and installed it following the tutorial from Smart Home Australia, I should point out that I only understand English a little.
I find myself with a little problem.
the battery status colors are not displayed when creating maps
Is there a way to correct this?
Thanks in advance for any help
kind regards Pierre
hello,
excuse this beginner question, despite replacing : getBatteryLabel, in order to display the battery type.
it still does not display!
@@pierregrosjean2865 For me neither. Best guess: Type is filtered out by the device_class But I don't know how to fix this
Thank youuuu!
I managed to install it and configure it.
LEGEND !! Well done... I hope its useful.
Your methodical, slow, and detailed walk-through is perfect for those of us keen to keep up with this wonderful technology. Some of us (70+ years old) have no programming skills or knowledge of YAML files and the like and rely on clips like yours to keep us engaged.. Thank you
Thanks. Pitching YT videos is difficult, I could so like many others and rush through configuration and then put the code behind paywalls, but instead I prefer to provide the true step by step tutorials that gives the viewer a greater understanding with an outcome.
Let me know if you have any specific topics that you'd like covered.
@@smart_home_australia Yes... I use Ubuntu on my desktop and run Home Assistant on a stand-alone mini PC.. I was stumped, or rather 'met my match' when it came to editing my YAML file when I was following your description.
I got to Studio Code Server and wanted to copy and paste but it would not let me.. I searched Google for an answer without results.. So here I sit, stumped.. What can I do to overcome the inability to edit the YAML file on my computer.
So you have a desktop running Ubuntu and a stand-alone PC that runs HA, what OS are you running on that? Are you logging into the standard alone mini PC natively or RDP'ing into it? What's the error message you get in Studio Code Server? and are there any error messages in HA's log files.
Sorry to ask so many questions. One of HA's strengths is its ability to run on lots of different hardware, but its one of its weaknesses from a support perspective.
@@smart_home_australia I installed HA, without other software, on to the remote computer and access it from Ubuntu.
When I connect and open Studio Code Server, configuration yaml, it allows me to write but not paste.
I suspect it has something to do with Ubuntu software. Windows or Apple might allow the 'paste' of the code.
I did find a way to add the many lines but it was skewed and when I tested it it came back with the info that 'Card Param' was a problem..
Im sorry if I don't make much sense. My knowledge is limited. It is frustrating to say the least.
I may get some help this coming weekend..
@@smart_home_australia My home-assistant has been installed natively on a dedicated pc. I don’t get an error message as I can not ‘paste’ to the yaml lines.
It’s likely that Ubuntu doesn’t have the ability to cope with adding to the yaml file..
I hope to get some help today from my son who is a computer nerd. If not, I will get some desktop shots.
Another great Video! Thank you! App works great for all devices except Apple. I have not been able to get a good read on battery level other than 100% or zero. I just use an automation to turn on a smart plug on for 4 hours in the middle of the night. Not perfect but it works and beats leaving it plugged in all of the time.
I love my safe apple eco system, but sometimes the quirks can get a little annoying. Maybe this new push from Apple into Smart Homes is going to make interoperability much better.
great video but you forgot to put the yaml code for the card at the very end.
yes
Oops :) I'll add it tomorrow :)
Sorry about that, added to video description and also available at tinyurl.com/5s56xfnz
@@smart_home_australia thanks so much! great job!
Glad you enjoyed it. 😊👍
Amazing this works so well, thank you for the tutorial. Please do a tutorial of Roomba vacuum robot custom integration with HA, the standard integration does not support room by room cleaning. There is a custom integration but its too complex for me to understand, please do a video supporting this.
I wish I could, but I don't own a Roomba so thats makes it tricky :)
Excellent video thank you
Glad you enjoyed it
Great video, thank you!
My pleasure! I'm glad you enjoyed it.
Thank you very much !
You are welcome!
Good morning
Excellent video, however I don't understand why when I create a map, the battery status colors are not displayed.
Thanks in advance for all the help
I had the same issue and I raised with the developer (Andrew Jackson, @AndrewJacksonUK, fabulous guy!!). Mine was resolved with reinstalling, but I'd recommend reaching out to him direct.
Unfortunately the auto entities card shows no entity. I assume it has got something to do with the devices I use. All are HomematicIP and they seem to habe less diannosis: The main battery entity (shows 'normal') and replace, battery type, last replaced. It has no numeric value.
I had top replace the *plus* by * now it works
Great you got it to work. WELL DONE.
Great overview. But I don't want to use "Battery Notes" anymore. Would be great if you mentioned how to delete the integration.
To completely delete the Battery Notes add-on from Home Assistant, follow these steps:
1) Remove the configuration entry:
Open your Home Assistant configuration.yaml file and remove the
following line:
battery_notes:
2) Uninstall the integration:
Go to Settings > Integrations in the Home Assistant UI. Find the
Battery Notes integration and click on it. Use the menu on the right
to select "Uninstall".
3) Delete the custom component files:
Navigate to your Home Assistant config directory and locate the
custom_components folder. Inside it, find and delete the
"battery_notes" folder.
4) Restart Home Assistant:
After making these changes, restart your Home Assistant
instance to ensure all traces of the add-on are removed.
5) Clean up entities (optional):
If you want to remove any leftover entities created by Battery
Notes, you can do so manually through the Home Assistant
interface or by editing your entity registry file.
Remember that uninstalling the integration will remove all battery notes you've added to your devices. If you think you might want to use this information again in the future, consider backing up your configuration before uninstalling.
I hope that helps.
yaml code, please.
Added to description, tinyurl.com/5s56xfnz