I am using a rest integration to get some datas from a Water Boiler and when this device it is off, I only get errors in the log, similar to Error fetching data: http://192.168.0.60/api?name=_all failed with All connection attempts failed.
I don’t know if is possible and this is why I ask here… there is any possibility to make this sensor somehow to know when the device is off or on?
I have even added a very big scan_interval, and I only fetch data “manually” from an automation, only when the device is off… but I see it does not count. Here is what I have done till now:
I mean that even if you put a very big scan_interval, the rest will still try to get the information from the url.
Even with this big scan interval, I still get errors of fetching data, when the device is off
I think it is not only when HA restarts, look: First occurred: July 11, 2023 at 23:14:34 (2842 occurrences)
So… from yesterday till now, 2842 erros
This is why I don’t understand why REST is doing this. SCRAPE sensor it is not updating even if you restart HA, which works great, but I don’t know if I can or if is possible to make a similar sensor with SCRAPE instead REST…
Yes, because the automation should meet a condition, which can’t pass through if the device it is not ON.
Take a look, the automation last run was yesterday (when I made some tests)
12 occurrences from 11:53 to 12:27 looks like about once every 3 minutes. Default scan interval is 30 seconds, so there must be something else doing those calls
Yes, but I don’t know what it is happening… I don’t have anything else inside HA, regarding REST integration… This is because i try to use it from few days ago…
Seems that RESTful integration, does not care about scan_interval… it will check the resource no matter what, but RESTful Sensor integration, in the other hand, have the scan_interval working good…
RESTfull maybe yes, but “scan_interval”, for me and for another friend, with the same device, it is not working well… RESTfull sensor instead, it is perfect for this. I don’t understand why and how, I saw more people complaining about this REST, talking about the fact that this is a very old integration which didn’t have more support or something like this. I don’t know details, it is what I found on the internet