[APP][PRO] Plugwise Smile P1 - Dutch and Belgian Smart Meter Reader

Robin,

I have been using your codes for accessing my Smile’s for a long time. Used Nodered for a long period.

My question is partly off topic as I want to access my Smile from Python scripts on a Synology NAS.
I do it on my NAS iso my Homey because I am more into Python and because I also access my Solaredge inverter and a TAPO smartplug for the heat pump energy.

I currently get the data with a “default” url: http://192.168.xxx.yyyy/core/locations/logs . But I want to get somewhat more flexibility as I want to get data over a longer period to simulate the effect of a storage battery.

I tried to decipher the part of the code on Github
[com.plugwise.smile/node_modules/smilep1/smilep1.js at master · gruijter/com.plugwise.smile · GitHub] where the url is composed, but I am puzzled due to my lack of understanding of Javascript.

Line 312 reads:

${path};class:eq:${logClass};${typeString};@from=${from};@to=${to};@interval=${interval};

I expect that path equals /core/locations/logs . Could you give one or more examples how a url should look if I want to select an other time period. The default interval is OK form me, but what are the options?. And what does the part class:eq:$(logClass) bring.

I hope you want to help me although this is a non-Homey question.

Fred

Indeed off topic. And I dont remember.
Maybe better of checking existing python code for smile p1: GitHub - plugwise/python-plugwise: Plugwise python module for Smiles (Anna, Adam, P1) and Stretch

1 Like

Nevertheless “bedankt” Robin! I will have a look at the python-plugwise repository.

1 Like

New version 5.1.0 is ready for testing: Plugwise Smile P1 App for Homey | Homey

  • Added Homey total imported/exported energy capability.
  • Minor fixes.

This new release prepares the app for new Homey Energy functionality.

1 Like