Error while setting up multiscrape platform for sensor
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/helpers/entity_platform.py”, line 249, in _async_setup_platform
await asyncio.shield(task)
File “/config/custom_components/multiscrape/sensor.py”, line 56, in async_setup_platform
sensor_selector = Selector(hass, conf)
File “/config/custom_components/multiscrape/selector.py”, line 31, in init
raise ValueError(
ValueError: Selector error: either select, select_list or a value template should be provided.
Any help would be greatly appreciated as to what I am doing wrong?
I updated to 6.0.0. I am still having issues with maintaining the value. When I set the interval to 1800 (right side of the graph below) it appears it stops working after about 45 min or so. If I set the interval to something like 600 (left side of the graph below) then it seems to work, however there are gaps when it ready unavailable (grey area)?
I was hoping to query once a day and get the value and have it displayed for the day. Should I set the interval to 43,200 and then it will stay that way for the 24 hour period?
I think you should turn on debug logging and find out why it’s becoming unavailable. Is the site unreliable?
If you set it to one a day, it will stay like that all day, but if you are unlucky, it will be unavailable all day…
ok turned on debugging. Need to wait and see what error I may be getting. Other alternative it to set it every 5 minutes and then use value at the endow the day to calculate usage?
I don’t understand why there is no exception text here in the logging message above…
Could you turn on log_response and check out the response to the POST request when this occurs?
I’m using this exact configuration but with my username and password and I can’t get multiscrape to work. @farberm can you confirm this still works for you?
It is no longer working. I have not had the time to determine what they have changed on the site to scape the information but it as working for a long time prior to recently.
Thanks for the reply. I’ll keep hacking away at it in my free time and post if I figure it out. I have a few other utilities that use the same format of a form inside a div. Some have the id to the form set while others don’t.