Page 1 of 1

Read P1 data from Toon

Posted: Tue May 25, 2021 8:30 pm
by JackV
Is it possible to read the P1 smartmeter data from Toon 1/2 via something like http://"toon"/tsc/sensors on Toon 2, is it available in a file on Toon 1/2 or maybe some other way ?

background......
I have a question where people would like P1 data in Domoticz but have their Domoticz host not located close enough to their P1 meter so they can not make a connection by means of a direct cable and as a result can not get the data in Domoticz.

On my Raspberry Pi which has a direct P1 connection I created a python script that produces data like :
{'ActiveUsage': '39.0', 'ActiveBack': '0.0', 'Usage1L': '001439.723', 'Usage2H': '001385.425', 'Back3L': '000969.544', 'Back4H': '002154.278', 'Current': '003', 'Voltage': '236.7', 'Gas': '00107.935', 'Version': '50', 'TimeStamp': '210525200835', 'Status': 0}
This script is used by a Domoticz plugin to get the data in Domoticz so I would like to create an alternative script that reads the data from Toon.

Re: Read P1 data from Toon

Posted: Wed May 26, 2021 9:12 am
by TheHogNL
JackV wrote:Is it possible to read the P1 smartmeter data from Toon 1/2 via something like http://"toon"/tsc/sensors on Toon 2, is it available in a file on Toon 1/2 or maybe some other way ?

background......
I have a question where people would like P1 data in Domoticz but have their Domoticz host not located close enough to their P1 meter so they can not make a connection by means of a direct cable and as a result can not get the data in Domoticz.

On my Raspberry Pi which has a direct P1 connection I created a python script that produces data like :
{'ActiveUsage': '39.0', 'ActiveBack': '0.0', 'Usage1L': '001439.723', 'Usage2H': '001385.425', 'Back3L': '000969.544', 'Back4H': '002154.278', 'Current': '003', 'Voltage': '236.7', 'Gas': '00107.935', 'Version': '50', 'TimeStamp': '210525200835', 'Status': 0}
This script is used by a Domoticz plugin to get the data in Domoticz so I would like to create an alternative script that reads the data from Toon.
That information is already available for years with the url: /hdrv_zwave?action=getDevices.json
Only the seperate phases and the voltage are not displayed.