Provoke sensor update


I’m looking for a way how to provoke an update on sensor when it is necessary. I found the ‘scan_interval’ property which update the sensor on specific interval. However, sometimes I need to update sensor data before this interval.

In my case I use a Rest sensor. I looked at the python implementation on the ‘rest’ sensor and there is ‘update(self)’ method. If I see right this method do exactly sensor update, however I can’t find a way how to call it from python script component or my own custom component.

If someone has an information or idea I will be grateful.

Best Regards,

There’s currently no way to do that, though a few have asked. Maybe you should add your vote to this request.

Thank you . I did it, I hope similar feature will be implemented.