no Smartplug with Domoticz-Remote Server connection

Others (MiLight, Hue, Toon etc...)

Moderator: leecollings

Post Reply
njlammerts
Posts: 139
Joined: Wednesday 12 August 2020 17:13
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Fryslan
Contact:

no Smartplug with Domoticz-Remote Server connection

Post by njlammerts »

I use 1 raspberry Pi Zero W, 1 Pi Zero W 2 and 1 Pi 3b.
On the 3b I run several Tuya Temperature sensors and Blitzwolf Smart Plugs connected by Zigbee/MQTT. the all work well on the local Pi.
I want to read the KWh value of one of the Smartplugs remotely on the Zero W2 .
On the Zero W I also run the reading of the P1 smart meter which I can share with Domoticz remote server to the 3b and the Zero 2W.
But I cannot succeed in sharing the Smart Plug from the 3b to the Zero W2.
I followed the Wiki an read that it cannot remote share devices using Python scripts, but the Smartplugs are no Python device and are native read by Domoticz.

Any one a idea?
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: no Smartplug with Domoticz-Remote Server connection

Post by waltervl »

Do you use Zigbee2MQTT python plugin or do you use the MQTT Autodiscover gateway? I think the first so python.....

If you use MQTT Autodiscover gateway it should work with remote sharing. But you can also create a new MQTT ADD gateway on the W2 (you will get then all your Zigbee2MQTT devices on the server too)
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
njlammerts
Posts: 139
Joined: Wednesday 12 August 2020 17:13
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Fryslan
Contact:

Re: no Smartplug with Domoticz-Remote Server connection

Post by njlammerts »

I use the Zigbee2MQTT Plugin (v. 3.2.0-beta)
Besides the plugin i also use Plugin Manager for other things.


Typing the above and going to https://github.com/stas-demydiuk/domoti ... qtt-plugin, i just realized this al all Python related (sorry, my bad)


Is it possible to use one Pi (Zero) as central Zigbee2MQTT "server" and let other Pi's use this server as central "device hub"?. Is there a maximum for connected zigbee devices? When you get 1 Tuya temperature device, it divides in several other units ( temp, batt, filed strength, humidity, pressure etc)

Is it possible to "share" dummy switches?

The whole idea is to show if a pump is running, based on the power it uses (there are others devices connected to the Smartplug) but when the power > 4 Watts the the pump is running 10% and 50Watts when running 100% :-) . When i make a blockly script on the Pi where Zigbee2MQTT runs and use a dummy switch, then the switch goes on >4-50W and off <4W. I also see the dummy when go to the user and select device i want to share
Schermafbeelding 2023-08-09 154138.jpg
Schermafbeelding 2023-08-09 154138.jpg (199.52 KiB) Viewed 941 times
Schermafbeelding 2023-08-09 154426.jpg
Schermafbeelding 2023-08-09 154426.jpg (93.82 KiB) Viewed 941 times
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: no Smartplug with Domoticz-Remote Server connection

Post by waltervl »

njlammerts wrote: Wednesday 09 August 2023 15:14 Is it possible to use one Pi (Zero) as central Zigbee2MQTT "server" and let other Pi's use this server as central "device hub"?. Is there a maximum for connected zigbee devices? When you get 1 Tuya temperature device, it divides in several other units ( temp, batt, filed strength, humidity, pressure etc)
That is the whole idea.
You have Zigbee2MQTT talking to your controller (USB stick) on one side and talking to MQTT broker on the other side.
Then you have MQTT broker talking to whoever wants to talk with it. Domoticz server 1, 2 and/or 3. Domoticz can talk with the MQTT broker with build in MQTT AD gateway or use the python plugin.
So you can also install the Zigbee2MQTT plugin on the domoticz server that needs to have access to that device. Or try out the MQTT AD Gateway on that Domoticz server. No need to install anything https://www.domoticz.com/wiki/Zigbee2MQ ... todiscover
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
njlammerts
Posts: 139
Joined: Wednesday 12 August 2020 17:13
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Fryslan
Contact:

Re: no Smartplug with Domoticz-Remote Server connection

Post by njlammerts »

" Or try out the MQTT AD Gateway on that Domoticz server. No need to install anything https://www.domoticz.com/wiki/Zigbee2MQ ... todiscover"

Do you have to pair the external devices (Smartplugs, Tuya devices etc) or are they automatically seen an can you "select" what is seen by the gateway?
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: no Smartplug with Domoticz-Remote Server connection

Post by waltervl »

The MQTT AD loooks at the MQTT broker that gets its data form Zigbee2MQTT.
So just enable the MQTT AD Gateway in Domoticz with the right settings and the zigbee2MQTT devices are being created in Domoticz. It is that easy, it could take some time to get them all in as they need to be active. So a temp sensor only gets created if a temperature is sent. And zigbee sensors can be slow in sending (sometimes several hours).
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: no Smartplug with Domoticz-Remote Server connection

Post by waltervl »

Just a side note. Why all these domoticz servers? One server should be enough.
You can use Rooms and User accounts to show only specific devices for specific rooms or users.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests