Seems to be a Windows/Samba problem. Checked the file using Samba Share and my Windows desktop PC and it was empty. Checking it on the Pi4 where HA is running the file has a lot of content. So now I could change my user to be “owner” and I can see the analytics options. Many thanks for your help!
Very strange, but now the original code works as it did before. I literally did nothing more than try your code with the IF block to check for the existence of the forecast attribute (which did not work), tried a couple other things, which also did not work, and then reverted to my original code … which now works again. It seems the multiple restarts of HASS core sorted something out, because I am literally back to the identical config’ that worked before the upgrade.
speedtest integration not working with new update get this in the log file
Logger: homeassistant.config_entries
Source: components/speedtestdotnet/__init__.py:194
First occurred: 7:11:40 PM (1 occurrences)
Last logged: 7:11:40 PM
Error setting up entry SpeedTest for speedtestdotnet
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 249, in async_setup
result = await component.async_setup_entry(hass, self) # type: ignore
File "/usr/src/homeassistant/homeassistant/components/speedtestdotnet/__init__.py", line 75, in async_setup_entry
await coordinator.async_setup()
File "/usr/src/homeassistant/homeassistant/components/speedtestdotnet/__init__.py", line 194, in async_setup
self.api = await self.hass.async_add_executor_job(speedtest.Speedtest)
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.8/site-packages/speedtest.py", line 1091, in __init__
self.get_config()
File "/usr/local/lib/python3.8/site-packages/speedtest.py", line 1173, in get_config
ignore_servers = list(
ValueError: invalid literal for int() with base 10: ''
Thanks for commenting, looking a little more I found that it was a mqtt switch and not a sensor, I have edited it and the warning is gone, but the error message is still there and it refers to sensor
Logger: homeassistant.config_entries
Source: helpers/entity_component.py:174
First occurred: 1:14:21 (1 occurrences)
Last logged: 1:14:21
Error unloading entry configuration.yaml for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 353, in async_unload
result = await component.async_unload_entry(hass, self) # type: ignore
File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 77, in async_unload_entry
return await hass.data[DOMAIN].async_unload_entry(entry)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 174, in async_unload_entry
raise ValueError("Config entry was never loaded!")
ValueError: Config entry was never loaded!
Nothing scientific in this, but my similar issue somehow cleared up after trying some things which required multiple restarts. Eventually I reverted to the original config’ and it worked again as before. My suspicion is that the multiple restarts are what resolved the issue. I’m just saying that you might simply try restarting Home Assistant multiple times. It’s easy to do and couldn’t hurt. I think I restarted at least four times.
But the slider still can be moved higher than the max of 4.
And the speeds don’t match the template. The low speed gets sent at 50%, med gets set at 75% and high gets set at 100%. So there must be some other processing going on behind the scenes that isn’t directly taken from the template.
The templates don’t look correct, there should be percentages that are used to set 1 through 4. I.e you should be dividing a value by the number of speeds. I’ll take a look in the morning
set_config_parameter is for device configuration parameters. set_value is more advanced and lets you set any value on a node (even values that Home Assistant doesn’t currently have support for, like metering, sound switch, etc). @raman325 can probably elaborate on the differences a bit more but that’s the gist of it.
If I use 0 - 100% as the baseline (as in my previous template) it worked correctly.
But the percentage stops weren’t correct (i.e. you could set the percentage to 45 and it would gladly set it to that but then set the speed to off since it didn’t equal any of the preset percentages for low medium or high).
but if i set the max to 4 to presumably set the max to 4 at the right end of the slider and adjust the steps to 4 for the high speed then the calculations are all off.
I still say the easiest to understand would be to just set the speed_count as in the template fan.
Well actually it would be WAY easier if we could still just have a speed list for the users that benefited from it along with percentages but I guess that is not going to happen.
Thanks for getting me to look into this. I found that simply right clicking the mouse where I want the UUID gave me the option to generate one at that location too. (typing ‘gen’ didn’t seem to be working for me)