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

Recent changes to Aeotec switch broke state updates #2529

Closed
abmantis opened this issue Jan 5, 2021 · 10 comments · Fixed by #2530
Closed

Recent changes to Aeotec switch broke state updates #2529

abmantis opened this issue Jan 5, 2021 · 10 comments · Fixed by #2530

Comments

@abmantis
Copy link

abmantis commented Jan 5, 2021

The following pull request broke the state reporting of the relays of Aeotec Switches: #2517

Now, when pressing the physical switch, on the log I get "No Valid Mapping for Basic Command Class and No ValueID Exported. Error?", and the state of the device does not change.
State report was working fine before.

@matejdro
Copy link
Contributor

matejdro commented Jan 6, 2021

Do you use basic command class to receive state updates (e.g. do you have your Z-wave controller added to the groups of your Aoetec switch)?

@kpine
Copy link
Contributor

kpine commented Jan 6, 2021

If I'm guessing, this is a Nano Switch? The best option for something like a Nano Switch is to set parameter 80 to "Basic". The switch sends 0/255 to signal off/on, and OZW does a single GET to refresh the binary switch value. Another choice would be to set 80 to "Hail". It would probably workaround the issue, but could cause more network traffic because OZW will do more GETs.

@matejdro
Copy link
Contributor

matejdro commented Jan 6, 2021

I guess good workaround would be to set it to Hail CC when using the external switch to switch the loads. That will only cause more network traffic when you use physical switch, but not when you toggle it via OZW (which sends get after set anyway so it shouldn't stay out of sync).

@kpine
Copy link
Contributor

kpine commented Jan 6, 2021

Are you saying these Aeotec switches also send Reports/Hail when you toggle it with a z-wave command? Then in that case, "Hail CC" would be a bad choice, and the "external switch" version is what I had in mind.

@matejdro
Copy link
Contributor

matejdro commented Jan 6, 2021

Yup that's exactly what it's happening.

@abmantis
Copy link
Author

abmantis commented Jan 6, 2021

Do you use basic command class to receive state updates (e.g. do you have your Z-wave controller added to the groups of your Aoetec switch)?

I'm not sure (still new to ZWave), but I think Zwave2Mqtt adds itself to group 0, so yes?

I guess good workaround would be to set it to Hail CC when using the external switch to switch the loads. That will only cause more network traffic when you use physical switch, but not when you toggle it via OZW (which sends get after set anyway so it shouldn't stay out of sync).

I've tried this and it solves the issue for the external switch. Unfortunately, it still fails when toggling it view OZW, because it sends get right after set, and the module replies with the old state like 80% of the times. This is because by the time the module replies to GET, it still hasn't updated the state yet. So the reply to get is "oldState = false, newState = false".
fishwaldo explains the issue here for dimmers, but its the same problem: see https://community.home-assistant.io/t/dimmer-lights-show-as-on-even-when-turned-off/152975/10
Having the basic report would always keep the state in sync.

If there's a solution to the Get after Set issues, I would be fine having Hail CC for external switches.

@matejdro
Copy link
Contributor

matejdro commented Jan 6, 2021

I'm not sure (still new to ZWave), but I think Zwave2Mqtt adds itself to group 0, so yes?

Yeah sorry, I mixed it up with Nano Shutter which sends Multilevel switch updates to group 0

Huh that's weird, I do not experience that. Get after set is usually pretty reliable for me.

@abmantis
Copy link
Author

abmantis commented Jan 6, 2021

Huh that's weird, I do not experience that. Get after set is usually pretty reliable for me.

On Nano Switches? Even after the changes disabling the basic report mapping?
For me, most of the times the state reported by get is the old one. I think they have the latest FW.

@nechry
Copy link
Member

nechry commented Jan 6, 2021

I can rollback the PR. I don't have time to test with devices.

@matejdro
Copy link
Contributor

matejdro commented Jan 6, 2021

Completely understandable. Thanks for your help.

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

Successfully merging a pull request may close this issue.

4 participants