Page 1 of 1

difference between mqtt lan and mqtt auto discovery

Posted: Saturday 28 December 2024 13:41
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

Re: difference between mqtt lan and mqtt auto discovery

Posted: Saturday 28 December 2024 15:07
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

Re: difference between mqtt lan and mqtt auto discovery

Posted: Saturday 28 December 2024 15:17
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?

Re: difference between mqtt lan and mqtt auto discovery

Posted: Saturday 28 December 2024 15:37
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

Re: difference between mqtt lan and mqtt auto discovery

Posted: Saturday 28 December 2024 19:48
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

Re: difference between mqtt lan and mqtt auto discovery

Posted: Saturday 28 December 2024 20:15
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.

Re: difference between mqtt lan and mqtt auto discovery

Posted: Sunday 29 December 2024 8:30
by BartSr

Re: difference between mqtt lan and mqtt auto discovery

Posted: Sunday 29 December 2024 8:48
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.

Re: difference between mqtt lan and mqtt auto discovery

Posted: Sunday 29 December 2024 10:35
by rron
Yes I know but I thought that i overlooked something. One off the questions where can i use those two together

Re: difference between mqtt lan and mqtt auto discovery

Posted: Sunday 29 December 2024 13:57
by gizmocuz
So maybe switch to ESPuna of ESPHome?

Re: difference between mqtt lan and mqtt auto discovery

Posted: Sunday 29 December 2024 14:22
by BartSr
@Gizmocuz
What's ESPuna?

Re: difference between mqtt lan and mqtt auto discovery

Posted: Sunday 29 December 2024 14:58
by rron
I switched back to espeasy on http. That works ok. I will wait until mqtt auto discovery is implemented.

Re: difference between mqtt lan and mqtt auto discovery

Posted: Sunday 29 December 2024 17:18
by gizmocuz
Sorry, meant 'espurna32', but you're probably better of with ESPHome, just install it in a docker compose environment