Heat pump monitor plugin/hardware/device
Posted: Friday 06 January 2017 11:29
Hello,
I want write monitor for Acond heat pump (AHP), which allow read data over https (PCL in local network or with remote access).
The number of monitored values from AHP can be lot (5 temperatures, 5 switch states,
I can do it as script, which in selected interval contact AHP, read informations and send it as JSON back to Domoticz.
Problems of this solution are:
-lot of manual adding virtual devices (temperatures, switches)
-propagate idx of all devices to the script
-authorisation
-script dependency on OS
-upgrade if monitored values changed
-hard usage for other users
So my idea is:
-select AHP from device list, which will create all necessenary virtual devices (depends on version)
-field for add authorisation credits
-script behind AHP device will make https call to PCL and fill data to virtual devices (problem with async communication?)
My questions:
1. Is this idea real?
2. Some different approach?
3. Any doc/example from which I can learn?
4. Others advices?
Thanks for your directing me.
Milan
I want write monitor for Acond heat pump (AHP), which allow read data over https (PCL in local network or with remote access).
The number of monitored values from AHP can be lot (5 temperatures, 5 switch states,
I can do it as script, which in selected interval contact AHP, read informations and send it as JSON back to Domoticz.
Problems of this solution are:
-lot of manual adding virtual devices (temperatures, switches)
-propagate idx of all devices to the script
-authorisation
-script dependency on OS
-upgrade if monitored values changed
-hard usage for other users
So my idea is:
-select AHP from device list, which will create all necessenary virtual devices (depends on version)
-field for add authorisation credits
-script behind AHP device will make https call to PCL and fill data to virtual devices (problem with async communication?)
My questions:
1. Is this idea real?
2. Some different approach?
3. Any doc/example from which I can learn?
4. Others advices?
Thanks for your directing me.
Milan