LORATAP remote control

Hello everyone, I’m having an issue with a LORATAP remote control purchased from Domadoo (https://blog.domadoo.fr/87954-test-telecommande-zigbee-loratap-3-boutons/?domid=17)

The integration works fine on Gladys, however I don’t have any way to configure the actions in Gladys.

When I go to Zigbee2mqtt and check the state, I do get the correct response when I press the buttons.

Any idea ??

That’s normal because this remote control isn’t integrated into Gladys as far as I know.
You should send the information for the different buttons so that @AlexTrovato (if you happen to be around) can integrate it later.

I’m adding the device link Tuya TS0043 control via MQTT | Zigbee2MQTT

Great, thanks for the information :wink:
Now we just have to wait for the integration :wink:

That’s really nice anyway :wink:

I created a GitHub issue so we don’t lose track of this request:

This device is special, it has a feature for 3 buttons, each with single/double/long click actions…
I’m looking into it.

I think we’ll need to create 3 features in Gladys so we can properly integrate them with our click handling, but I’m not sure it’s that simple.

I tried something:

  • for « button » types
  • split into multiple features if the z2m property matches \\d+_(*.)\\

You can test with this test Docker image atrovato/gladys:zigbee2mqtt-multiple-buttons (it’s preferable not to replace your Gladys « prod » image, or to make a backup of the database beforehand).

Honestly, if it’s easier to only set one click per button, don’t worry about it. It’s for turning sockets on/off with the remote.

So, to test, should I create a new container with these images by stopping the other container?

I would even advise against sharing the database so you don’t destroy your environment if something goes wrong, or to make a backup.
If you have a second Raspberry Pi, that’s better.

Hi @AlexTrovato,

I’ve looked at your PR, and I was wondering why restrict ourselves to numbers in front of the actions? Shouldn’t we try to find a more global solution for all these kinds of multi-button devices? I’ve found quite a few on the zigbee2mqtt list (multi-button switches, remotes…) and not all of them start with a number. Aren’t we risking that each time a new device of this type appears for Gladys users we’ll have to add more exceptions?

Why couldn’t we do what you did but more generally with all types of prefixes (strings, numbers…) and if no action matches it’s equivalent to a single

For example for Leedarson 6ARCZABZH control via MQTT | Zigbee2MQTT
« colortemp_up »_release → device colortemp_up : action release
« colortemp_up »_hold → device colortemp_up : action hold
« colortemp_up » → device colortemp_up : action single
« on » → device on : action single
« off » → device off : action single
« colortemp_down »_release → device colortemp_down : action release
« colortemp_down »_hold → device colortemp_down : action hold
« colortemp_down » → device colortemp_down : action single
« brightness_up » → device brightness_up : action single
« brightness_down » → device brightness_down : action single

What do you think? I haven’t looked into the zigbee2mqtt integration in depth, I’ll let you say whether it’s possible or not

My apologies, I haven’t been able to test that yet.

Attempt to install the test image on a new Raspberry Pi, but it fails when saving the USB dongle.
The dongle backup isn’t working, so the associated containers are not being deployed.

Could this be caused by my Docker deployment command?

docker run -d \
--log-driver json-file \
--log-opt max-size=10m \
--restart=always \
--privileged \
--network=host \
--name gladys \
-e NODE_ENV=production \
-e SERVER_PORT=84 \
-e TZ=Europe/Paris \
-e SQLITE_FILE_PATH=/var/lib/gladysassistant/gladys-production.db \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /var/lib/gladysassistant:/var/lib/gladysassistant \
-v /dev:/dev \
-v /run/udev:/run/udev:ro \
atrovato/gladys:zigbee2mqtt-multiple-buttons

Thanks for your help!

And once again, congrats on the Gladys update — despite having few Zigbee modules, the temperature graphs are much more responsive ==

1 Like

Which version of the OS?

Here is my version information:

pi@test:~ $ cat /etc/os-release
PRETTY_NAME=« Raspbian GNU/Linux 11 (bullseye) »
NAME=« Raspbian GNU/Linux »
VERSION_ID=« 11 »
VERSION=« 11 (bullseye) »
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian
HOME_URL=« http://www.raspbian.org/ »
SUPPORT_URL=« http://www.raspbian.org/RaspbianForums »
BUG_REPORT_URL=« http://www.raspbian.org/RaspbianBugs »

Try adding --cgroupns host to your docker command (since you’re on Bullseye)

For info, we launch the container like this on the Pi image.

I just tested it, it works!
You’re a genius!!
And the remote too!!

How do I get this active now on my production environment?

Wait for the next update?

Thanks again for your efforts :wink:

You’re all awesome!

The Zigbee multi-button fix has been integrated into the latest version of Gladys :slight_smile:

Hello, I’m trying to integrate the LORATAP (LORATAP) remote control but I’m getting this

Is there a problem or did I do it wrong?

I’ll bet it’s a problem :smiley: