Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scene does not change state #85

Closed
f00dagi opened this issue May 20, 2020 · 6 comments
Closed

Scene does not change state #85

f00dagi opened this issue May 20, 2020 · 6 comments

Comments

@f00dagi
Copy link

f00dagi commented May 20, 2020

Hi!

I have created a scene named 'dubbel' in the Plejd app which simply adjust a light source to it's lowest brightness through a double click on a physical light switch (DIM-01). That works fine.

After home assistant reboot I get a switch.dubbel entity which has the state 'off'. The issue is that I cannot get the state to change from 'off' to 'on' either through double click on the physical light switch or through changing the state within home assistant. It remains at 'off' and the scene is not triggered.

In other words creating a scene in the Plejd app and make it show in home assistant is easy but I cannot by any means trigger the scene.

Thanks for your efforts.

hassio-plejd: 0.4.5
home assistant: 0.110.0

@icanos
Copy link
Owner

icanos commented May 24, 2020

Hi,

I've looked into this and it seems that Plejd doesn't send a notification back when a scene is triggered, since that is just a tap like action. Therefore, a switch isn't the correct entity in HA. Not sure what it should be.

I will however look into why its not triggered correctly.

@icanos
Copy link
Owner

icanos commented Jun 12, 2020

Could you update to latest and try again?

@f00dagi
Copy link
Author

f00dagi commented Jun 12, 2020

I have updated to 0.4.7 and 0.111.1 and tried everything I can think of but I cannot get the switch to change state from 'off' to 'on' and the double click action does not trigger.

image
image
image

@icanos
Copy link
Owner

icanos commented Jun 17, 2020

I don't think I'll be able to fix that since scenes in Plejd doesn't trigger any BLE event (that I know of at least).

@JohnLindahlTech
Copy link
Contributor

See my comment in #134, short version: change setting in scene to ”1%” instead of ”min” and restart this plugin and HA. The conf-sync seems to be unable to handle the min setting in HA which makes HA send empty message on brigthness, which in turn crashes the write to lamp.

@SweVictor
Copy link
Collaborator

Scene handling have been completely rewritten in #179, merged to develop branch. Scenes are now registered as scenarios in Home Assistant and there is a device automation channel that informs HA of any scenes triggered.

Please test the latest develop version (or wait for next release) and open a new issue if problems persists. As @icanos mentions, if no BLE command is emitted you won't be able to pick it up in HA. You can see BLE commands using verbose or silly logging in the addon configuration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants