Gladys Assistant 4.49: Triggers with delay in scenes!

Hello everyone!

New version of Gladys today, with some really cool features :smile:

Trigger with Delay in Scenes

It’s now possible to add a delay before triggering a scene based on a sensor value.

For example, if you have a motion sensor and want to make sure there’s no movement for at least 5 minutes before turning off the light, you can now do this:

This additional condition works with all types of conditions, even if it’s a condition like “If the temperature is above 25°C for 30 minutes.”

This prevents actions from being taken too quickly if a value briefly spikes and then normalizes.

What happens behind the scenes in the motion sensor example:

  • As soon as an “OFF” value is received, Gladys starts a 5-minute timer.
  • During the 5 minutes, if an “ON” value is received, this cancels the timer.
  • During the 5 minutes, if an “OFF” value is received, nothing happens (and the current timer keeps running).
  • After 5 minutes, if nothing has canceled the timer, the scene is executed.

Addition of a “Push Button” Feature

You can add a new “Push Button” type in the MQTT integration:

On the dashboard, this button will appear like this:

On the MQTT side, it will always send the value “1”.

Send a Zigbee2mqtt Message in Scenes

Do you have a Zigbee device managed by Zigbee2mqtt but not yet by Gladys?

Before it’s integrated into Gladys, you can now control this device from scenes:

Documentation: Send a Zigbee2Mqtt message | Gladys Assistant

(Still, let us know on the forum so we can integrate it!)

Thank you @_Will_71 for the development :pray:

“Ask the AI” in Scenes

This update provides the necessary groundwork allowing ChatGPT in scenes not to respond if it’s not necessary.

For now, the feature is not activated; I’m waiting for the update to spread before activating it on the Gladys Plus side.

Various Improvements:

  • Zigbee2mqtt: Added the Develco iomzb 11 by @_Will_71
  • The Zigbee coordinator is now hidden in Zigbee2mqtt (thanks @cicoub13)
  • Fixed a translation issue in English and German for the “User enters/leaves home” triggers
  • Security fix on get users which allowed instance users to list certain private user attributes (No impact for instances where users are within a trusted circle).
  • Fixed a bug with the “Device state change” trigger when a presence sensor was replaced by another.

The full CHANGELOG is available here

How to Update?

Make sure you’re using Watchtower for automatic updates. Check the documentation.

With Watchtower, Gladys will update automatically.

1 Like