Is it possible to modify device property through scenes?

Hey,
I have probably a quite weird question. Is it possible to directly change properties of devices (connected through zigbee2mqtt) through scenes?

To explain background, I have presence detector that has an lightbulb output. Whenever it detects presence, the lightbulb is on. It works well and quite fast. However, I’d like to disable presence detector for night. I though maybe through “Send Zigbee2mqtt Message” this could be achieved, but I’m not sure how to use this action. Any possible pointers or suggestions how to solve my problem?

Hi @Niomak!

Why not set it up as a scene in Gladys?

I have the exact same behavior at my place, and I’ve set up a series of scenes in Gladys with conditions based on the time of day.

Hey,

I’d like to set it up as scene in Gladys.
The problem is that with the presence detector I cannot change any device value via “set device value” in scene. I can still get device values (motion and signal strenght), but I have no option to change anything.
So my idea of workaround was to somehow, within the scene, change device properties.

Oh I see, indeed

Do you have the reference of this sensor?

You’ll need to find this sensor here: Zigbee2MQTT

Then with the MQTT topic, you’ll be able to change this in scene with “Send Zigbee2mqtt Message” indeed :slight_smile:

Thank you, with the information on the site you’ve provided I was able to solve my problem.

1 Like

Nice! Can you post your solution here? If someone has the same issue, it’ll help :slight_smile:

Sure. Although it is not an elegant solution.
There is a property output_time in the detector (can be seen in state tab in zigbee2mqtt setup), that if it is lower than 10, the output light stops working. So I change it to lower value using zigbee2mqtt Message. In topic I put “zigbee2mqtt/friently_name/set” and message is the property and new value.

1 Like

Nice! Thanks for posting this.

At least it works