Hello, I’ve been trying to retrieve the status of urbackup for hours. The URL is local and can be scraped, but so far I have only succeeded with the selector div > div:nth-child(1)
, but here I only get the alt-text for the top right button (“Toggle navigation UrBackup”).
If I copy the selector via Chrome or Firefox, I get for example #status_table > tbody > tr.even > td:nth-child(5)
or #status_table_wrapper > div.dataTables_scroll > div.dataTables_scrollHead
. And very reliably the message ‘unavailable’. Also all attempts with #body, #tbody, #root
or other selectors after div
lead to the message ‘unavailable’.
Does anyone have a tip how I could somehow get into the table?
When I look in the log, I find the following messages:
- “Unable to scrape data: Could not find a tag for given selector Consider using debug logging and log_response for further investigation.”
- “homeassistant.exceptions.InvalidStateError: Invalid state encountered for entity ID: sensor.urbackup_server. State max length is 255 characters.”
This is strange, because the ID has a normal length:
- resource: http://192.168.xx.xx:55414
scan_interval: 3600
sensor:
- unique_id: urbackup-server
name: Urbackup RP4
select: '.div.dataTables_scrollBody > table > tbody > tr:first-child'