kabbi / zigbee2mqtt-adapter

zigbee2mqtt adapter for WebThings gateway
Mozilla Public License 2.0
21 stars 13 forks source link

ledvance smart+ mini switch #45

Open TobiBu opened 2 years ago

TobiBu commented 2 years ago

Hi,

I realized that for the Ledvance smart+ mini switch the thing on the thing page shows actions like on/off when pressing the up/down button but when using this device in the rules section there is only the actions up/down available. Thus rules are never triggered. Any clues how I can change that behaviour?

flatsiedatsie commented 2 years ago

Do you have a screenshot of the thing details page? I'm trying to follow the issue.

Cool device too.

TobiBu commented 2 years ago

here you go. IMG_9824

flatsiedatsie commented 2 years ago

Have you tried installing the Square Theme?

I take it you mean the action property (south-east) shows the action as a string? And you can't select that string in rules?

Thinking out loud:

Hmm, I wonder if it would be possible to have the addon 'learn' which messages appear, and use that to generate a dropdown instead. Then it might show up in rules. Then again, it would mean that the select dropdown would slowly gain more options over time. I wonder how the (rules) system would respond to that..

Alternatively, each action could get its own push-button property. If the action message appears, then that button could be 'pushed'. And actions could respond to that.

Hmm, wait, I just opened Rules to do a test. And it's already possible to respond to a string value. So isn't that an option in your case?

candle_rules_bla