Hi, This plugin works great on HS3 and recognizes all of the kodi boxes.
However, I noticed that it results in really high cpu utilization, which I'm assuming is due to the continuous polling of the kodi boxes.
On a raspberry pi 3, this plug-in results in a constant 200% cpu utilization (quad core, so out of a total 400%) whereas the zwave plugin has about 5-10% and other plugins even lower than that.
I would like to see a kodi addon, that pushes status info during changes to HS3, rather than the HS3 plugin constantly pulling/querying.
It is really not that difficult and I put together the attached addon as a proof of concept. It is based on other home automation addons that were available on kodi.
Basically, whenever the kodi status changes and it is either playing a video, paused a video, resumed or stopped a video, the addon sends json post requests to HS3.
Currently, as a proof of concept, the attached addon can be coupled with a virtual device on HS3 (screenshot attached), with the following statuses:
0 = Playing
1 = Paused
2 = Resumed
3 = Stopped
In the kodi addon settings, enter the HS3 ip address and the ref id of the virtual device, and the device status will be updated with the video play status.
There is a lot more that can be done with the kodi addon, and this can replace certain parts of the HS3 plugin and reduce cpu utilization.
However, I noticed that it results in really high cpu utilization, which I'm assuming is due to the continuous polling of the kodi boxes.
On a raspberry pi 3, this plug-in results in a constant 200% cpu utilization (quad core, so out of a total 400%) whereas the zwave plugin has about 5-10% and other plugins even lower than that.
I would like to see a kodi addon, that pushes status info during changes to HS3, rather than the HS3 plugin constantly pulling/querying.
It is really not that difficult and I put together the attached addon as a proof of concept. It is based on other home automation addons that were available on kodi.
Basically, whenever the kodi status changes and it is either playing a video, paused a video, resumed or stopped a video, the addon sends json post requests to HS3.
Currently, as a proof of concept, the attached addon can be coupled with a virtual device on HS3 (screenshot attached), with the following statuses:
0 = Playing
1 = Paused
2 = Resumed
3 = Stopped
In the kodi addon settings, enter the HS3 ip address and the ref id of the virtual device, and the device status will be updated with the video play status.
There is a lot more that can be done with the kodi addon, and this can replace certain parts of the HS3 plugin and reduce cpu utilization.
Comment