Varazir wrote: ↑Thursday 10 July 2025 21:30
Is it just me or more who get confused with the mix of English and French?
It would better to have 2 different readme files.
Second it's hard to follow when we don't have an source output from MQTT.
So you can see how the source looks like and how the JSON output looks like.
I'm thinking using this mod along with What's up Docker MQTT integration,
this is the JSON payload
https://gist.github.com/varazir/ecac2f5 ... 2a09cfc057
How it looks like in MQTT Explorer
I'm not sure what to do but something like this
Code: Select all
{
"Dockge Status": {
"topic": "wud/container/docker/dockge-dockge-1",
"type": "244",
"subtype": "73",
"switchtype": "11",
"mapping": {
"item": "status",
"default": "1",
"values": {
"close": "0"
}
}
},
"Dockge Update": {
"topic": "wud/container/docker/dockge-dockge-1",
"type": "244",
"subtype": "73",
"switchtype": "11",
"mapping": {
"item": "update_available",
"default": "false",
"values": {
"close": "0"
}
}
}
}
Analysis is good.
The only thing that won't work is mapping default and values.
Default value is related to Domoticz device. Here, 244/73/11 is a door switch, having internally 2 values (as per
https://wiki.domoticz.com/Developing_a_ ... vice_Types): "Statuses: Open: nValue = 1, Closed: nValue = 0).
So default should be either 0 or 1.
Concerning mapping values, first part of each item is MQTT message content.
So, for "Dockge Status", which seems to have a "status": "running", you should write something like "default": 0, "values": {"running": 1}
For "Dockge Update", which seems false or true, you may write ("default": 1, values: {"false": 0}
An additional remark: You have the same topic more than once (here "wud/container/docker/dockge-dockge-1"). You avoid a duplicate error message, it's a good practice to add a "key" item, that should be unique into file, and probably significant for you.
Here is an example of file that may work:
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": "11",
"mapping": {"item": "status", "default": "0", "values": {"running": "1"}}
},
"Dockge Update": {
"topic": "wud/container/docker/dockge-dockge-1",
"key": "wud/container/docker/dockge-dockge-1-update",
"type": "244", "subtype": "73", "switchtype": "11",
"mapping": {"item": "update_available", "default": "1", "values": {"false": "0"}}
}
}