Remote server and zigbee2mqtt
Moderators: leecollings, remb0
-
Alain
- Posts: 171
- Joined: Sunday 26 April 2020 5:27
- Target OS: Linux
- Domoticz version: 2022.1
- Location: Netherlands
- Contact:
Remote server and zigbee2mqtt
Besides my Master Domoticz instance (which I run in a Ubuntu virtual machine on a Windows 10 PC), I also have two remote servers. On one server I have an RFXCOM and all the devices are synchronized to the master without any issues. On the other server I run zigbee2mqtt to connect a few Xiaomi temperature sensors. On this remote server the devices are listed and the values update periodically. The Zigbee devices, however, don't synchronize to the Master Domoticz.
I thought I had something wrong with the Master-Slave settings, but if I add motherboard sensors or a Thermosmart thermostat I have running to the server, it synchronizes them immediately with the Master. What could be wrong?
I thought I had something wrong with the Master-Slave settings, but if I add motherboard sensors or a Thermosmart thermostat I have running to the server, it synchronizes them immediately with the Master. What could be wrong?
Hue | Zigbee2Mqtt | MQTT | P1 | Xiaomi | RFXCom | Modbus | TP-Link | Node-Red | Grafana |
- FireWizard
- Posts: 1968
- Joined: Tuesday 25 December 2018 12:11
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Voorthuizen (NL)
- Contact:
Re: Remote server and zigbee2mqtt
Hi @Alain,
Unfortunately this is a known issue.
See also the last post: viewtopic.php?f=65&t=18154&p=264339&hil ... ve#p264339
I suggest that, as all data is published to MQTT, that you subscribe to that data in Node Red, convert it and publish it again with MQTT to Domoticz.
I´m happy to give support, if you need it.
Regards
Unfortunately this is a known issue.
See also the last post: viewtopic.php?f=65&t=18154&p=264339&hil ... ve#p264339
As you probably use the Domoticz plugin for Zigbee2MQTT on your slave, it will not be published to the Master.It's a known issue. Domoticz feature for synchronization (Domoticz remote server) doesn't work for devices created and updated by a plugin. As you, I've installed this plugin on my backup server.
I suggest that, as all data is published to MQTT, that you subscribe to that data in Node Red, convert it and publish it again with MQTT to Domoticz.
I´m happy to give support, if you need it.
Regards
-
Alain
- Posts: 171
- Joined: Sunday 26 April 2020 5:27
- Target OS: Linux
- Domoticz version: 2022.1
- Location: Netherlands
- Contact:
Re: Remote server and zigbee2mqtt
Thanks for your reply. On reading into the topic further, I also came to the conclusion that via Node-Red would be the best option. I am trying to get that working now. I have had a few flows running on my Master for a number of months now and have just installed Node-Red on the slave. I'm trying to figure out how to combine the two.
Can I use zigbee2mqtt as the topic?
Can I use zigbee2mqtt as the topic?
Hue | Zigbee2Mqtt | MQTT | P1 | Xiaomi | RFXCom | Modbus | TP-Link | Node-Red | Grafana |
- FireWizard
- Posts: 1968
- Joined: Tuesday 25 December 2018 12:11
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Voorthuizen (NL)
- Contact:
Re: Remote server and zigbee2mqtt
Hi, @Alain,
Actually it is not important, whether you have Node Red installed on the Master or on the Slave.
You subscribe to the topic(s) on your MQTT server, which you have already running, as you use Zigbee2MQTT.
Which topic to subscribe? I would say: Install MQTT Explorer on a laptop/desktop (http://mqtt-explorer.com/) and have a look what the topics are.
Regards
Actually it is not important, whether you have Node Red installed on the Master or on the Slave.
You subscribe to the topic(s) on your MQTT server, which you have already running, as you use Zigbee2MQTT.
Which topic to subscribe? I would say: Install MQTT Explorer on a laptop/desktop (http://mqtt-explorer.com/) and have a look what the topics are.
Regards
-
Alain
- Posts: 171
- Joined: Sunday 26 April 2020 5:27
- Target OS: Linux
- Domoticz version: 2022.1
- Location: Netherlands
- Contact:
Re: Remote server and zigbee2mqtt
Will do FireWizard. Thanks.
Hue | Zigbee2Mqtt | MQTT | P1 | Xiaomi | RFXCom | Modbus | TP-Link | Node-Red | Grafana |
-
Alain
- Posts: 171
- Joined: Sunday 26 April 2020 5:27
- Target OS: Linux
- Domoticz version: 2022.1
- Location: Netherlands
- Contact:
Re: Remote server and zigbee2mqtt
I have an MQTT broker on the master and a different one on the slave. They are not connected. I installed mqtt explorer on both computers and can only see the local host on each. If I fill in the IP-Address of the other computer I get a disconnected error.
Hue | Zigbee2Mqtt | MQTT | P1 | Xiaomi | RFXCom | Modbus | TP-Link | Node-Red | Grafana |
- FireWizard
- Posts: 1968
- Joined: Tuesday 25 December 2018 12:11
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Voorthuizen (NL)
- Contact:
Re: Remote server and zigbee2mqtt
Hi @Alain,
Have a look at: viewtopic.php?f=56&t=35062&p=265210&hilit=MQTT#p265210
You have to solve this issue first, so that you can contact both MQTT servers from both Master and Slave,
Regards
Have a look at: viewtopic.php?f=56&t=35062&p=265210&hilit=MQTT#p265210
You have to solve this issue first, so that you can contact both MQTT servers from both Master and Slave,
Regards
-
Alain
- Posts: 171
- Joined: Sunday 26 April 2020 5:27
- Target OS: Linux
- Domoticz version: 2022.1
- Location: Netherlands
- Contact:
Re: Remote server and zigbee2mqtt
Thanks FireWizard. I tried adding the lines to the config file but that didn't work. I found an article by some guy called Steve. He added different code to the config file, but I still can't get it to work. I'll keep messing with it and post up if I get it going.
Hue | Zigbee2Mqtt | MQTT | P1 | Xiaomi | RFXCom | Modbus | TP-Link | Node-Red | Grafana |
-
Alain
- Posts: 171
- Joined: Sunday 26 April 2020 5:27
- Target OS: Linux
- Domoticz version: 2022.1
- Location: Netherlands
- Contact:
Re: Remote server and zigbee2mqtt
I'm running the master in a VM so I had to open port 1883 for them to connect. I also added this to mosquitto.conf on the master and the slave:
Code: Select all
# include_dir /etc/mosquitto/conf.d
allow_anonymous true
listener 1883Hue | Zigbee2Mqtt | MQTT | P1 | Xiaomi | RFXCom | Modbus | TP-Link | Node-Red | Grafana |
Who is online
Users browsing this forum: No registered users and 1 guest