Page 1 of 2

WUD - What's up docker

Posted: Tuesday 08 July 2025 18:06
by Varazir
Hello,

WUD has has MQTT support and say it's playing nice with home assistance.
https://getwud.github.io/wud/#/configur ... gers/mqtt/
I thought I would give it a try.

I can see my containers in my MQTT explorer
Image

This is my setup in Domoticz
Image

Maybe I'm doing something wrong or need some something to translate the MQTT payload in Domoticz for it to discover.

This is payload for Domoticz
https://gist.github.com/varazir/ecac2f5 ... 2a09cfc057

Show status, if there an update maybe more but it's what I come up with.

maybe with script/API trigger an update from Domoticz.

Re: WUD - What's up docker

Posted: Tuesday 08 July 2025 22:44
by Varazir
I see that I missed in the docker conf

- WUD_TRIGGER_MQTT_MOSQUITTO_HASS_ENABLED=true
- WUD_TRIGGER_MQTT_MOSQUITTO_HASS_DISCOVERY=true

few devices has been created. One step forward
Image

Re: WUD - What's up docker

Posted: Wednesday 09 July 2025 17:06
by heggink
Quite interesting! Is this compensating for the lack of update indicators in dockge?

Re: WUD - What's up docker

Posted: Wednesday 09 July 2025 18:38
by Varazir
heggink wrote: Wednesday 09 July 2025 17:06 Quite interesting! Is this compensating for the lack of update indicators in dockge?
yes sort of and no notification in Domoticz.

Re: WUD - What's up docker

Posted: Saturday 12 July 2025 11:20
by Varazir
I'm have set it up using the Python Plugin: MqttMapper plugin to do this but it seams like WUD isn't that good at pushing data to the MQTT broker.
I think I see the issue, the cron was set to run 0300

Change the cron to every 5 min.

https://github.com/FlyingDomotic/domoti ... per-plugin

Re: WUD - What's up docker

Posted: Sunday 13 July 2025 0:41
by Varazir
Example

Code: Select all

{
	"Dockge Status": {
		"topic": "wud/container/docker/dockge-dockge-1",
		"key": "wud/container/docker/dockge-dockge-1-status",
		"type": "244",
		"subtype": "73",
		"switchtype": "0",
		"mapping": {
			"item": "status",
			"default": "0",
			"values": {
				"running": "100"
			}
		}
	},
	"Dockge Update": {
		"topic": "wud/container/docker/dockge-dockge-1",
		"key": "wud/container/docker/dockge-dockge-1-update",
		"type": "244",
		"subtype": "73",
		"switchtype": "0",
		"mapping": {
			"item": "update_available",
			"default": "0",
			"values": {
				"false": "0",
				"true": "100"
			}
		}
	}
}

Re: WUD - What's up docker

Posted: Sunday 13 July 2025 0:49
by waltervl
So what was wrong with the HA Discovery option? From the documentation it just should work.

Re: WUD - What's up docker

Posted: Sunday 13 July 2025 9:31
by Varazir
waltervl wrote: Sunday 13 July 2025 0:49 So what was wrong with the HA Discovery option? From the documentation it just should work.
With this settings
Image

I only get this devices
Image

This how it looks like in MQTTexplorer
Image


Logs
Image

Re: WUD - What's up docker

Posted: Sunday 13 July 2025 10:26
by waltervl
Yes, and that seems correct. i see 3 binary sensors in config and 4 sensors. So in Domoticz creates 3 switches and 4 custom sensors. So exactly what WUD configured. It also should be enough to manage the system I suppose.
But perhaps in topic WUD/update also config topics are present?

It is (or was) by the way not advised to have the discovery topic (default homeassistant) the same as the main state topic.... If you want to differ better make it for example WUD_discover, zwave_discover, zigbee2mqtt_discover etc

Re: WUD - What's up docker

Posted: Sunday 13 July 2025 17:53
by Varazir
waltervl wrote: Sunday 13 July 2025 10:26 Yes, and that seems correct. i see 3 binary sensors in config and 4 sensors. So in Domoticz creates 3 switches and 4 custom sensors. So exactly what WUD configured. It also should be enough to manage the system I suppose.
But perhaps in topic WUD/update also config topics are present?
Don't know, But it don't show status of each container. It's what I'm after.
waltervl wrote: Sunday 13 July 2025 10:26 It is (or was) by the way not advised to have the discovery topic (default homeassistant) the same as the main state topic.... If you want to differ better make it for example WUD_discover, zwave_discover, zigbee2mqtt_discover etc
Why dose it matter ?

If I use the homeassistant topic for all will that not mash everything and domoticz will hard understand what is what?
For me it's more logic to separate them. Then dose it matter to use *_discover? Dose the the plugins care about the topic? as long as it's matching in the settings shouldn't it work ?

Re: WUD - What's up docker

Posted: Sunday 13 July 2025 18:37
by waltervl
The discovery topic is by default split from the state topic to ease the system in discovering devices. Else every new message in the integration also has to be checked for config changes. And when you have a lot of devices you will get a lot of unnecessary possible config changes that needs to be handled.

In the past this could go wrong, this is why you see a split in config and state topics.

Re: WUD - What's up docker

Posted: Sunday 13 July 2025 21:10
by Varazir
So I should change prefix tag för zwave/zigbee/wud to homeassistant?
And the in the HW setup for both I should have homeassistant?

Re: WUD - What's up docker

Posted: Monday 14 July 2025 0:21
by waltervl
If you use the default settings of WUD, zigbee and zwave you will see you get a zwave, zigbee and wud state topics and homeassistant topic where all the config topics are. This will not have issues if you have only 1 Domoticz MQTT AD gateway. All the devices will be handled by this gateway.

If you want a seperate Domoticz MQTT AD gateway for each integration for ease of understanding you should also define a discovery prefix for each integration (eg WUD_discover) as else Domoticz will indeed be mixing things up.

Re: WUD - What's up docker

Posted: Tuesday 15 July 2025 11:20
by Varazir
waltervl wrote: Monday 14 July 2025 0:21 If you use the default settings of WUD, zigbee and zwave you will see you get a zwave, zigbee and wud state topics and homeassistant topic where all the config topics are. This will not have issues if you have only 1 Domoticz MQTT AD gateway. All the devices will be handled by this gateway.

If you want a seperate Domoticz MQTT AD gateway for each integration for ease of understanding you should also define a discovery prefix for each integration (eg WUD_discover) as else Domoticz will indeed be mixing things up.
Hmm, if I change all to homeassistant and create a new HW with that topic.
Will it create new devices and I need to merge them ?

Re: WUD - What's up docker

Posted: Tuesday 15 July 2025 12:17
by waltervl
I dont know, but probably yes.

Re: WUD - What's up docker

Posted: Tuesday 15 July 2025 13:18
by Varazir
waltervl wrote: Tuesday 15 July 2025 12:17 I dont know, but probably yes.
I got a bunch of new devices.
This my settings and I changed WUD to be taged as homeassistant
Image
Image
Edit: the HA service is enabled, it just shows not when I switch between settings

So what's the correct operation.
Edit the old device and click replace? (I always mess this upp and lost a lot of history due to that)

Re: WUD - What's up docker

Posted: Tuesday 15 July 2025 13:40
by waltervl
From the wiki https://wiki.domoticz.com/Managing_Devi ... ace_device
press the Edit button on the Old device, select replace and select the new Device. (In this case the devices called ‘New UV Meter’).
Next press OK. Result:
The old and new device will be merged and get the name and IDX of the old device. This will prevent changes in scripts that use this device.
The new device will be deleted. (behavior since Stable 2022.1)
If there is a hardware gateway difference between Old and New device (eg when switching from OZW to Zwave JS UI MQTT) the merged device (with old name and idx) will get the hardware gateway of the new device.

Re: WUD - What's up docker

Posted: Tuesday 15 July 2025 13:51
by Varazir
Okay thanks

this doesn't make sense,

Code: Select all

To replace the old sensor data (history logging) to the new device act as follow: 

First, add (or is added by new gateway) the new device to the system, and call it for example ‘New UV Meter’. 
Next press the Edit button on the Old device, select replace and select the new Device. (In this case the devices called ‘New UV Meter’). 
I would change the wording to "To move old sensor data to the new device..."

Re: WUD - What's up docker

Posted: Tuesday 15 July 2025 22:07
by Varazir
Hmm, I switched all to homeassistant, created a new HW and replaced all the old devices I needed.

Re: WUD - What's up docker

Posted: Tuesday 15 July 2025 22:37
by waltervl
And everything still works as expected?
I changed the wiki on the replace/move wording.