Read P1 data from Toon

Everything about external control, apps, VNC, etc goes here.

Moderators: marcelr, TheHogNL, Toonz

Post Reply
JackV
Starting Member
Starting Member
Posts: 23
Joined: Tue Feb 09, 2021 12:11 am

Read P1 data from Toon

Post 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.
TheHogNL
Forum Moderator
Forum Moderator
Posts: 2125
Joined: Sun Aug 20, 2017 8:53 pm

Re: Read P1 data from Toon

Post 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.
Member of the Toon Software Collective
Post Reply

Return to “Toon external control”