thomasloven / hass-plejd

๐Ÿ”น Plejd BLE integration for Home Assistant
96 stars 9 forks source link

Expose hidden Scenarios #45

Closed xion92 closed 1 year ago

xion92 commented 1 year ago

I have made one scenario to every switch I have. To use it to automate things in home assistant.

Is there a way to expose those, but not have them visable on the dashboard in the Plejd app?

thomasloven commented 1 year ago

That's a nice workaround. I'll see if I can add an option for it.

xion92 commented 1 year ago

@thomasloven Even better would be to get events on all button-presses. Maybe it already exists? Haven't got the integration upp and running yet

Lisnol commented 1 year ago

Same here. This is why I have to stay with icanos, but I really want the Bluetooth proxy that you support.

thomasloven commented 1 year ago

There are events fired when buttons are pressed and when scenes are triggered... There's even event entities making it really easy to use them...

(There are only events for buttons that are not connected to anything in the Plejd app - that's just how they work)

Cebbas commented 1 year ago

@thomasloven what kind of event is sent from the button press?

thomasloven commented 1 year ago

There are event entities which have state changes. bild

Cebbas commented 1 year ago

@thomasloven where do you find them or activate them?

I don't have them ๐Ÿ˜…

image

thomasloven commented 1 year ago

No only plejd buttons, like WPH-01. Other buttons connected directly to stuff don't broadcast events on the mesh.

thomasloven commented 1 year ago

All scenes trigger direct event entities which are not associated with any Device. bild bild

xion92 commented 1 year ago

@thomasloven

I tried this. A button activates a scenario. Home assistant then toggles a light. But I can't activate again for like 5 seconds. That is quite som time. Should I start a new issue for that?

Cebbas commented 1 year ago

@thomasloven I don't have them๐Ÿ˜… has 4 buttons spring-loaded buttons that are not connected to anything in the plaid app but can't find any of them

image

xion92 commented 1 year ago

@Cebbas If I understand it right only the battery powered button WPH-01 is shown. The other buttons you need to make a scenario in the Plejd app and connect it to the button. Then you can make automations when home assistant see that the scenario has run.

Think I read somewhere that Plejd work that way, it has nothing to do with this integration

thomasloven commented 1 year ago

This should be fixed since 0.4.0

oyvindwe commented 1 year ago

If I understand it right only the battery powered button WPH-01 is shown.

And WRT-01 (also battery powered).

xion92 commented 1 year ago

Hidden scenes in plejd is now showing in HA for me