Page 1 of 3

Plugwise Adam

Posted: Thursday 29 November 2018 15:41
by mveldman
On my heater i use this device https://www.plugwise.com/en_US/products/adam
Is there anyone who uses this gateway and has succesfully connected it to Domoticz?
I've tried using the Plugwise Anna connector whithout succes.
It would be nice, so i can use the geofence with Domoticz.

Re: Plugwise Adam

Posted: Tuesday 25 December 2018 11:58
by akatar
I have the same question, thinking of buying one but i don't know (yet) if i can add it to a ha system.
@mveldman: can you get an xml file out of the adam?
we can do this with the smile and the stretch 2, perhaps also with adam? please check if you want.

Re: Plugwise Adam

Posted: Tuesday 01 January 2019 22:38
by akatar
we'll i bought an adam and you can get an xml file out of the adam
<point_log id="60e4d9ac603f425a80e85b75f1c8249e">
<updated_date>2018-12-31T11:46:28.933+01:00</updated_date>
<type>central_heater_water_pressure</type>
<unit>bar</unit>
<last_consecutive_log_date>2018-12-31T11:46:28.932+01:00</last_consecutive_log_date>
<period end_date="2018-12-31T11:46:28.933+01:00" start_date="2018-12-31T11:46:28.933+01:00">
<measurement log_date="2018-12-31T11:46:28.933+01:00">1.60</measurement>
</period>
</point_log>
<point_log id="62183c24621c45f7ae427a7daf386f40">
<updated_date>2018-12-29T19:19:29.313+01:00</updated_date>
<type>maximum_boiler_temperature</type>
<unit>C</unit>
<last_consecutive_log_date>2018-12-29T19:19:29.313+01:00</last_consecutive_log_date>
<period end_date="2018-12-29T19:19:29.313+01:00" start_date="2018-12-29T19:19:29.313+01:00">
<measurement log_date="2018-12-29T19:19:29.313+01:00">73.00</measurement>
</period>
</point_log>
<point_log id="68cdf74391e246de880ecaa2177aa5c3">
<updated_date>2018-12-31T11:47:50.924+01:00</updated_date>
<type>domestic_hot_water_temperature</type>
<unit>C</unit>
<last_consecutive_log_date>2018-12-31T11:47:50.924+01:00</last_consecutive_log_date>
<period end_date="2018-12-31T11:47:50.924+01:00" start_date="2018-12-31T11:47:50.924+01:00">
<measurement log_date="2018-12-31T11:47:50.924+01:00">59.40</measurement>
</period>
</point_log>


etc etc

Re: Plugwise Adam

Posted: Monday 07 January 2019 12:21
by mveldman
akatar wrote: Tuesday 01 January 2019 22:38 we'll i bought an adam and you can get an xml file out of the adam
<point_log id="60e4d9ac603f425a80e85b75f1c8249e">
<updated_date>2018-12-31T11:46:28.933+01:00</updated_date>
<type>central_heater_water_pressure</type>
<unit>bar</unit>
<last_consecutive_log_date>2018-12-31T11:46:28.932+01:00</last_consecutive_log_date>
<period end_date="2018-12-31T11:46:28.933+01:00" start_date="2018-12-31T11:46:28.933+01:00">
<measurement log_date="2018-12-31T11:46:28.933+01:00">1.60</measurement>
</period>
</point_log>
<point_log id="62183c24621c45f7ae427a7daf386f40">
<updated_date>2018-12-29T19:19:29.313+01:00</updated_date>
<type>maximum_boiler_temperature</type>
<unit>C</unit>
<last_consecutive_log_date>2018-12-29T19:19:29.313+01:00</last_consecutive_log_date>
<period end_date="2018-12-29T19:19:29.313+01:00" start_date="2018-12-29T19:19:29.313+01:00">
<measurement log_date="2018-12-29T19:19:29.313+01:00">73.00</measurement>
</period>
</point_log>
<point_log id="68cdf74391e246de880ecaa2177aa5c3">
<updated_date>2018-12-31T11:47:50.924+01:00</updated_date>
<type>domestic_hot_water_temperature</type>
<unit>C</unit>
<last_consecutive_log_date>2018-12-31T11:47:50.924+01:00</last_consecutive_log_date>
<period end_date="2018-12-31T11:47:50.924+01:00" start_date="2018-12-31T11:47:50.924+01:00">
<measurement log_date="2018-12-31T11:47:50.924+01:00">59.40</measurement>
</period>
</point_log>


etc etc
That is something for a start!

Re: Plugwise Adam

Posted: Monday 07 January 2019 21:54
by akatar
try
http://ip adam/core/appliances

and

http://ip adam/core/modules

Re: Plugwise Adam

Posted: Wednesday 16 January 2019 12:12
by mveldman
akatar wrote: Monday 07 January 2019 21:54 try
http://ip adam/core/appliances

and

http://ip adam/core/modules
Ah, great, with this url's i can get the status of the Adam in Node-Red.
One step beyond!

Re: Plugwise Adam

Posted: Sunday 10 February 2019 13:05
by Dr8072
From what I can see the XML is the same as the Plugwise Anna given it needs to talk to the standard plugwise application.

Can anyone post a full XMl file from http://ip adam/core/appliances?
Might add be able to use it in the Anna Plugin after a few modifications to the code.

Re: Plugwise Adam

Posted: Tuesday 12 February 2019 20:59
by Dr8072
If my assumption is correct the software in the gateway/Adam is the same and will support the same API
So I've changed to code of the Anna thermostat, so it has the potential to work with the Adam too.
If someone is willing to try they can see if the Anna thermostat in the upcoming beta will work with the Adam

The code is being pushed to the beta and should hopefully be there later in the week
If my assumsion is correct it should have the same functionality a the ANNA

Pleas let me know if it works

Re: Plugwise Adam

Posted: Wednesday 13 February 2019 12:22
by ahattink
@Dr8072

Yes i would like to try and think i am able to.
My installation has an Anna with firmware 3.1.4 and Adam with firmware 2.3.19.
I will set up my test pi to connect to Adam and Anna and let you know about my findings.

Re: Plugwise Adam

Posted: Wednesday 13 February 2019 15:03
by Dr8072
Keep an eye out for a new beta... The code change is still not merged...

Re: Plugwise Adam

Posted: Thursday 14 February 2019 21:23
by Dr8072
The new beta is up... give it a try. if its not working can you
get me a proper appliances. xml?

run curl http://<username>:<password>@<ipadress anna>/core/appliances i > appliances.xml and up load it here.

Re: Plugwise Adam

Posted: Friday 15 February 2019 9:01
by ahattink
I updated Domoticz to the latest version.
Then i added the Anna and Adam to Domoticz.
I was under the impression i could see and add the Toms and Lisa's to Domoticz. But they where not in the device list.
1 new device was shown: intended_boiler_temperature

Attached XML files.
1 of the Adam
1 of Anna without decentral heating devices
1 Anna with decentral heating devices.

If you need more info, testing done ore anything, please let me know.

Re: Plugwise Adam

Posted: Friday 15 February 2019 9:20
by Dr8072
Thanks for the Adam list, that will help.
Did on the Adam test show the same devices as the Anna? If it is not to much asked a screen shot of the devices... (here or as a private msg) so I can see what added and to make it 100% correct for the 3 same scenarios run a:

curl -L "http://<username>:<password>@<ipadress anna>//cache/domain_objects;class=Location" >locations.xml


I didn't realize you can add these separate thermostats and knobs ... I hoped you could at least make use of some of the same functionality however no I have some data 'll see what the Adam is reporting and what I can do with it.

Keep in mind... I cannot physical test the Adam part as I do not have physical access to one

Re: Plugwise Adam

Posted: Friday 15 February 2019 11:24
by ahattink
Attached screenshots of the devices from Adam and Anna.

Attached XML's from Adam.

Re: Plugwise Adam

Posted: Friday 15 February 2019 11:24
by ahattink
And the Anna xml:

Re: Plugwise Adam

Posted: Friday 15 February 2019 11:36
by Dr8072
Thanks... I do see the various devices, This will require a little more then I first hoped, I need to restructure the way the appliances are handled...
but I have enough for a few tests

Re: Plugwise Adam

Posted: Sunday 17 February 2019 20:09
by Dr8072
@ahattink Currently I will get the following info for Tom's & Lisa from the Adam, Is that what you would expect?
Screenshot 2019-02-17 at 20.01.51.jpg
Screenshot 2019-02-17 at 20.01.51.jpg (263.47 KiB) Viewed 9221 times
Ignore the batteries

Re: Plugwise Adam

Posted: Monday 18 February 2019 8:19
by ahattink
@Dr8072 Yes that is exactly what i expected! :D

How can i try?

Re: Plugwise Adam

Posted: Monday 18 February 2019 9:12
by Dr8072
@hattink Just Checking, if this was right... I'll need to merge it with the Anna code so you also have info on your CV system.
I hope to push out a first version of that code by the end of the week.
If it will allow you to update depends if you can you provide me with the url used and form data of an update to a Tom and one for the Lisa? so i can actually make sure the set points work

For this you go (I Assume) to the html page of the Adam
http://<username:password>@<ip adress adam:port adam>

Thn start developer moed in Chrome of firefox
(firefox -> Open Menu -> Web Developer -> Toggle Tools>)
(Chrome ->Open Menu -> More Tools-> Developer tools)

In both the browser usually will split in a top pane ( with the webpage on top) Click on the network tab of the developer pane
Update the setpoint of a Tom. you should see a line appear of the type PUT.
Click on that line and you should get information of that url in a pane on the right
I need the full request URL :
(usually something like <http://ip:port/core/locations;id=70556647adb2a4b82818be0e28d172eb4/thermostat;id=66779bda77b3d45f29ea080811f0f83bd

(From firefox ) the XML info from the param tab
(From Chrome) the XML info from the Form data segment at the bottom of the first pane
(Usually something like this <thermostat_functionality><setpoint>21.5</setpoint></thermostat_functionality> )

Re: Plugwise Adam

Posted: Monday 18 February 2019 10:48
by ahattink
Hi Dr8072,

I did as you requested and hope this is the correct information.
I updated the Room Slaapkamer. (can not update individual devices in the Plugwise Web interface.)
This updates the setpoint from Tom Slaap and Lisa Slaap.

In Firefox is see the request URL:
http://192.168.2.57/core/locations;id=4 ... 260b9ca7a4
This forum garbles it a bit, so without the http:
192.168.2.57/core/locations;id=4da6f8d44ac042bd922f1effb352b87c/thermostat;id=ad029a06f1824c91886ee6260b9ca7a4

In parameters:
<thermostat_functionality><setpoint>5.5</setpoint></thermostat_functionality>

As you can see i set the room to 5.5 °C