Send a zigbee2mqtt message

With the integration of a siren in zigbee2mqtt, I am forced to use an external tool to send a message with its payload to test the siren.
I thought that being able to do this in a scene as the action Send an MQTT message would allow, in the case where the device is not integrated, to send it a command.

Hi,

I’m totally for it but no more votes :frowning:

1 Like

Actually, I thought of this feature for you because I’m a bit slow at integrating your siren.

2 Likes

I worked on my request and added an action in scenes to send a msg to zigbee2mqtt.
This allows, for example, controlling a zigbee device that is not yet recognized in Gladys.
For example the Woox siren used by @Hizo.

One missing feature is the ability to control the siren.

For that, with the new action Send a zigbee2mqtt message, I can send the command directly to the siren.
For example to activate the siren:


The same thing to stop it


I added scene activation to the dashboard:

When starting the Start scene, in software like MQTTX the topic is correctly sent

Same for the stop

And physically the siren triggers and stops.

@pierre-gilles, here is the PR

An image is being built: willde71/gladys-test:zigbee2mqtt-msg

4 Likes

Excellent @_Will_71 !! :slight_smile: Great job !

Heads up, small coverage issue — there are missing tests for the scene action :slight_smile:

Thanks. Yes, I saw it. I’ll take care of it over the weekend.

1 Like

That’s really nice! I have a few devices that aren’t recognized by Gladys, so this is a good solution to make up for the lack of certain features :+1:

2 Likes

@pierre-gilles, I’ve added the missing tests in the PR.

1 Like

Looks good to me! Could you just create a PR on the documentation side (v4-website/docs/scenes at master · GladysAssistant/v4-website · GitHub) to add a short explanatory note about this scene action? Thanks!

Yes, of course

@pierre-gilles here’s the PR for the doc

1 Like

This feature is available in Gladys Assistant 4.49:

I’m closing this thread to free up votes :folded_hands:

1 Like