difference between mqtt lan and mqtt auto discovery

For devices supporting the Auto Discovery feature. Like ZWaveJS2MQTT, Zigbee2MQTT.

Moderator: leecollings

Post Reply
rron
Posts: 246
Joined: Sunday 30 March 2014 15:24
Target OS: Linux
Domoticz version: Beta
Location: Waterland
Contact:

difference between mqtt lan and mqtt auto discovery

Post by rron »

I want to send the S0 counter from my espeasy to domoticz via mqtt. I want it to sent it via mqtt auto discovery client gateway with lan. There 's no error on the espeasy for bouncing and I can see it also in the mqtt explorer. But it never appears in the auto discovery, and except new hardware is on.
Then I tried the mqtt lan client gateway and there it 's appearing. :?:
My question is what is the difference between those two mqtt settings? If you look at the settings tab in mqtt there 's also a different kind of devices detected. The auto discovery can see 167 rules and the mqtt lan can see only 92 rules, but some different devices. :shock:
Domoticz is on the latest stable version 2024.7 and espeasy on mega-20240414
Rpi, RFXcom, klikaan klikuit switch,thermosmart, z-wave, espeasy, smartevse
User avatar
gizmocuz
Posts: 2394
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: difference between mqtt lan and mqtt auto discovery

Post by gizmocuz »

Maybe ESPEasy does not support the Home Assistant MQTT Auto Discovery protocol?
You could create your own config topic/payload to get it supported
Best to go to the Home Assistant website and check the MQTT AD documentation how to do so
Quality outlives Quantity!
rron
Posts: 246
Joined: Sunday 30 March 2014 15:24
Target OS: Linux
Domoticz version: Beta
Location: Waterland
Contact:

Re: difference between mqtt lan and mqtt auto discovery

Post by rron »

Looks like it. But then you advice to use only one mqtt protocol and not auto discovery and mqtt client at the same time?
Rpi, RFXcom, klikaan klikuit switch,thermosmart, z-wave, espeasy, smartevse
User avatar
gizmocuz
Posts: 2394
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: difference between mqtt lan and mqtt auto discovery

Post by gizmocuz »

Nope. If you don't use basic MQTT for anything else in Domoticz, I would go the MQTT AD way.
But if I google for ESPEasy in combination with MQTT Auto Discovery I get a lot of website responses.
You can also use ESPHome for your S0 meter
Quality outlives Quantity!
akamming
Posts: 343
Joined: Friday 17 August 2018 14:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: difference between mqtt lan and mqtt auto discovery

Post by akamming »

rron wrote: Saturday 28 December 2024 13:41 I want to send the S0 counter from my espeasy to domoticz via mqtt. I want it to sent it via mqtt auto discovery client gateway with lan. There 's no error on the espeasy for bouncing and I can see it also in the mqtt explorer. But it never appears in the auto discovery, and except new hardware is on.
Then I tried the mqtt lan client gateway and there it 's appearing. :?:
My question is what is the difference between those two mqtt settings? If you look at the settings tab in mqtt there 's also a different kind of devices detected. The auto discovery can see 167 rules and the mqtt lan can see only 92 rules, but some different devices. :shock:
Domoticz is on the latest stable version 2024.7 and espeasy on mega-20240414
You have to read the espeasy documentation.

The device Will not be autocreated. Espeasy does not support autodiscovery

So what you need to do is
- create a virtual device in domoticz
- configure the espeasy device so that it updates that device. It Will then send commands on the domoticz/in topic

Although espeasy also supports the update to domoticz via http. This way you don’t need to configure Mqtt
rron
Posts: 246
Joined: Sunday 30 March 2014 15:24
Target OS: Linux
Domoticz version: Beta
Location: Waterland
Contact:

Re: difference between mqtt lan and mqtt auto discovery

Post by rron »

akamming wrote: Saturday 28 December 2024 19:48
rron wrote: Saturday 28 December 2024 13:41 I want to send the S0 counter from my espeasy to domoticz via mqtt. I want it to sent it via mqtt auto discovery client gateway with lan. There 's no error on the espeasy for bouncing and I can see it also in the mqtt explorer. But it never appears in the auto discovery, and except new hardware is on.
Then I tried the mqtt lan client gateway and there it 's appearing. :?:
My question is what is the difference between those two mqtt settings? If you look at the settings tab in mqtt there 's also a different kind of devices detected. The auto discovery can see 167 rules and the mqtt lan can see only 92 rules, but some different devices. :shock:
Domoticz is on the latest stable version 2024.7 and espeasy on mega-20240414
You have to read the espeasy documentation.

The device Will not be autocreated. Espeasy does not support autodiscovery

So what you need to do is
- create a virtual device in domoticz
- configure the espeasy device so that it updates that device. It Will then send commands on the domoticz/in topic

Although espeasy also supports the update to domoticz via http. This way you don’t need to configure Mqtt

Yes I have red this documentation and I thought that it was already inplementated. The http update already worked by me but I wanted to keep it uniform and since I already had mqtt autodiscovery. It also worked wih the standard mqtt.
Auto discovery is work in progress for espeasy.
Rpi, RFXcom, klikaan klikuit switch,thermosmart, z-wave, espeasy, smartevse
BartSr
Posts: 365
Joined: Sunday 03 July 2016 16:16
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.7
Location: Netherlands
Contact:

Re: difference between mqtt lan and mqtt auto discovery

Post by BartSr »

Raspberry pi 3b
Arduino
KAKU
RfxCom
Zwave2MQTT
OTGW
Chinese sensors temp (Dallas),movement
Tasmota
Esp8266 / 32 espeasy
Zigbee2MQTT
akamming
Posts: 343
Joined: Friday 17 August 2018 14:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: difference between mqtt lan and mqtt auto discovery

Post by akamming »

rron wrote: Saturday 28 December 2024 20:15 Yes I have red this documentation and I thought that it was already inplementated. The http update already worked by me but I wanted to keep it uniform and since I already had mqtt autodiscovery. It also worked wih the standard mqtt.
Auto discovery is work in progress for espeasy.
But then you should know the anwser to your original question: you use the mqtt autodiscovery interface

The mqtt lan interface is the domoticz/in and domoticz/out interface.
rron
Posts: 246
Joined: Sunday 30 March 2014 15:24
Target OS: Linux
Domoticz version: Beta
Location: Waterland
Contact:

Re: difference between mqtt lan and mqtt auto discovery

Post by rron »

Yes I know but I thought that i overlooked something. One off the questions where can i use those two together
Rpi, RFXcom, klikaan klikuit switch,thermosmart, z-wave, espeasy, smartevse
User avatar
gizmocuz
Posts: 2394
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: difference between mqtt lan and mqtt auto discovery

Post by gizmocuz »

So maybe switch to ESPuna of ESPHome?
Quality outlives Quantity!
BartSr
Posts: 365
Joined: Sunday 03 July 2016 16:16
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.7
Location: Netherlands
Contact:

Re: difference between mqtt lan and mqtt auto discovery

Post by BartSr »

@Gizmocuz
What's ESPuna?
Raspberry pi 3b
Arduino
KAKU
RfxCom
Zwave2MQTT
OTGW
Chinese sensors temp (Dallas),movement
Tasmota
Esp8266 / 32 espeasy
Zigbee2MQTT
rron
Posts: 246
Joined: Sunday 30 March 2014 15:24
Target OS: Linux
Domoticz version: Beta
Location: Waterland
Contact:

Re: difference between mqtt lan and mqtt auto discovery

Post by rron »

I switched back to espeasy on http. That works ok. I will wait until mqtt auto discovery is implemented.
Rpi, RFXcom, klikaan klikuit switch,thermosmart, z-wave, espeasy, smartevse
User avatar
gizmocuz
Posts: 2394
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: difference between mqtt lan and mqtt auto discovery

Post by gizmocuz »

Sorry, meant 'espurna32', but you're probably better of with ESPHome, just install it in a docker compose environment
Quality outlives Quantity!
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests