Connecting Plugwise-2-py via MQTT to Domoticz

Moderator: leecollings

Brandjuh
Posts: 3
Joined: Tuesday 19 February 2019 14:20
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: Connecting Plugwise-2-py via MQTT to Domoticz

Post by Brandjuh »

uibeltje wrote: Monday 03 September 2018 23:35 I am stuck at this moment connecting my plugwise circles to Domoticz.

Everything seems to work fine except the connection between node-red and Domoticz. I do see data in the data-log folder but fail to import it in Domoticz via node-red.

I have created the Virtualplugwise-2-py hardware and entered the idx in node-red but the circles don't pop-up in the list.

Does anybody know where to look for errors? Is there a node-red logfile? My experience with the command line is limited but I learn by trial and error.
I have the same problem. Plugwise seems to run fine and data is collected in the folders. But its not sending from node-red to Domoticz .
This is my second day in trying it get to work, but I am clueless.

I hope someone can help me here. :)
Domoticz-plugwise1.png
Domoticz-plugwise1.png (153.38 KiB) Viewed 2858 times
Domoticz-plugwise2.png
Domoticz-plugwise2.png (384.59 KiB) Viewed 2858 times
Brandjuh
Posts: 3
Joined: Tuesday 19 February 2019 14:20
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: Connecting Plugwise-2-py via MQTT to Domoticz

Post by Brandjuh »

Solution without plugwise would be fine as well.
knielen
Posts: 46
Joined: Sunday 10 September 2017 9:45
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Connecting Plugwise-2-py via MQTT to Domoticz

Post by knielen »

Thanks a lot for these scripts, works great!
edwin1234
Posts: 249
Joined: Sunday 09 October 2016 20:20
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: Nederland
Contact:

Re: Connecting Plugwise-2-py via MQTT to Domoticzw

Post by edwin1234 »

Everything works accept getting it in domoticz how did you get it working?
And do you have the latest domoticz also?
foxhill
Posts: 1
Joined: Wednesday 19 February 2020 19:10
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Connecting Plugwise-2-py via MQTT to Domoticz

Post by foxhill »

Hi all, this maybe be an old discussion but nevertheless I'd appreciate some help. I have the same problem as a couple of posters here, namely that the Circles do not appear in Domoticz after deploying the node-red script. I'm using the latest version of Domoticz, 4.10717. I tested that MQTT data appears in Domoticz. Node-red seems to be happily doing its thing - console messages indicate that data is being transferred to Domoticz. The Plugwise-2-py webpage shows data. I have dummy hardware configured, as one of the posters above shows in his screen shot. I updated the node-red script to reflect the hardware ID. So I've run out of ideas why the circles do not appear.

Help would be greatly appreciate!
bagheerahans
Posts: 7
Joined: Tuesday 01 May 2018 12:23
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.9700
Contact:

Re: Connecting Plugwise-2-py via MQTT to Domoticz

Post by bagheerahans »

Despite the good work SevenW did for us. I am not able to get de values of my Plugwise in Domoticz. MQTT is working fine, I get values from another system trough MQTT in Domoticz.
What can be wrong?
 
Lesson learned in de days I am trying:
De Mac with my oder modules is 000D6F0000 plus de number from the module. But!! The first digit is not on the label of the module. You will find this in the source software. Label on the unit is 36670, in the software it is 236670. Mac becomes: 000D6F0000236670.
Put the log path also in de PI map, you stop the problem of file-rights.
Check the /dev/ttyUSB2 carefully, it can change after reboot!
panken
Posts: 1
Joined: Thursday 11 March 2021 22:19
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Connecting Plugwise-2-py via MQTT to Domoticz

Post by panken »

hello, i have the same problem. i have 1 pi with plugwise2py all works fine. and a 2nd pi with domoticz, mqtt and node-red.
in node-red virtual div adjusted to correct id. but no devices in domoticz. Help !!
BlueBullet
Posts: 3
Joined: Monday 08 June 2015 20:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Netherlands
Contact:

Re: Connecting Plugwise-2-py via MQTT to Domoticz

Post by BlueBullet »

In the Node-Red flow under "Plugwise2 Energy to Domoticz" and "Plugwise2 Power to Domoticz" and "Plugwise2 State to Domoticz" it uses the format:

json.htm?type=command&param=udevice&hid=$HID&did=$DID&dunit=$DUNIT&dtype=$DTYPE&dsubtype=$DSUBTYPE&nvalue=$NVALUE&svalue=$SVALUE

to communicate with Domoticz and this results in ERR.

Apparently this string format is no longer correct (outdated?).
Can't find any reference to "did", "dunit", "dtype" and "dsubtype" on https://www.domoticz.com/wiki/Domoticz_API/JSON_URL's
Trying to figure out what to adapt...
edwin1234
Posts: 249
Joined: Sunday 09 October 2016 20:20
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: Nederland
Contact:

Re: Connecting Plugwise-2-py via MQTT to Domoticz

Post by edwin1234 »

Did someone solve this
problem yet?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest