Dashboard: activate or deactivate a scene

Hello,

Would it be possible to create a new box for activating or deactivating a scene from the Dashboard?
Given that the integration of sirens and various gas sensors is underway in the Z2M integration, it would be interesting to be able to activate an « Alarm » scene directly from the dashboard.

You don’t really need a box for this.
You create a fake MQTT device of the switch type (which you will display on your dashboard) and you create a scene whose scenario is:

  • When the state of my MQTT device changes
  • Trigger scene X

And that’s it!

1 Like

Oh great idea!

Indeed, I agree with @guim31 for the hack! :slight_smile:

But I think this request is still useful, we’ll keep it!

1 Like

I removed the « Solution » then, thanks to both of you!

Hello everyone,

I made a small proposal for this request:

I wondered if we shouldn’t choose a list of scenes instead of a single scene, what do you think?
All feedback is welcome :slight_smile:

1 Like

Top thanks for the proposal @Lokkye!

Just a question about the purpose of this feature, was the idea to add a button to « enable/disable » a scene, or « trigger » a scene?

Because the title doesn’t match the messages below

@pierre-gilles from what I understood from the messages, it was just to activate or deactivate a scene, but I can add a button to trigger it in the same box if needed.

This message made me think the opposite, it clearly talked about triggering:

After that, the two features are interesting, I agree!

To be tested if everything should be in the same box, or two different boxes, it shouldn’t be too loaded for mobile use :slight_smile:

3 Likes

[

I reviewed your PR, and indeed the current implementation is not clear.

The box displays the date of the last execution, so you’d expect that clicking the button executes the scene, but that’s not the case!

All my comments are available here:

I’m closing this thread because this feature was implemented a long time ago :smiley: