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

Keymaster automations - not able to find Zwave integration #330

Open
Scott41677 opened this issue Mar 22, 2023 · 16 comments
Open

Keymaster automations - not able to find Zwave integration #330

Scott41677 opened this issue Mar 22, 2023 · 16 comments

Comments

@Scott41677
Copy link

Good morning all, I am having an issue with my Keymaster / Schlage Camelot Zwave lock. After reading the documents on the Keymaster wiki, I am logging a bug report as I am having an issue where the automations are throwing an error ‘A Z-Wave integration has not been configured for this Home Assistant instance’. This is with any Keymaster automation, but specifically for this issue, if I attempt to run the keymaster_synchronize_codeslot_side_garage_door_5 automation(Schlage lock is named as 'side_garage_door), that error appears in the ‘traces’ page if I manually trigger it. The automation does NOT trigger automatically when updating the code on the lovelace dashboard using the card for Code 5.

I can get a code to send to the lock using the ‘Developer tools>services>keymaster: Add code to lock’ service with no issue, but the automations do not seem to fire. I have restarted HA, reloaded the Zwave integration and reloaded Keymaster with no success. All other zwave devices and automations seem to work fine. Has anyone else seen this issue with Keymaster?

2023-03-21 21:28:13.974 ERROR (MainThread) [custom_components.keymaster.binary_sensor] Z-Wave integration not found

@firstof9
Copy link
Collaborator

You have ZwaveJS working?

@Scott41677
Copy link
Author

Scott41677 commented Mar 22, 2023 via email

@Scott41677
Copy link
Author

Screenshot 2023-03-22 095738
Screenshot 2023-03-22 095833

@firstof9
Copy link
Collaborator

That error should go away once zwavejs loads.

@Scott41677
Copy link
Author

Scott41677 commented Mar 22, 2023 via email

@firstof9
Copy link
Collaborator

Check the automation/script traces.

@Scott41677
Copy link
Author

Scott41677 commented Mar 22, 2023 via email

@Scott41677
Copy link
Author

Scott41677 commented Mar 22, 2023

screenshot of the automation trace with the error shown. The same error is show above from the log file. All Keymaster automations return this same error, this one is only an example to illustrate the error
Screenshot 2023-03-22 172705

@Scott41677
Copy link
Author

Scott41677 commented Mar 22, 2023

screenshot showing the ZwaveJS successfully running in my HA instance.
Screenshot 2023-03-22 172900

@firstof9
Copy link
Collaborator

Thanks for confirming, looks like there's some kind of issue checking the lock entity out in the entity registry.

@raman325 any ideas?

@raman325
Copy link
Collaborator

raman325 commented Mar 23, 2023

did you change the entity ID of the lock entity from what's configured in keymaster? There's no reason why it shouldn't be found as long as the IDs match

@Scott41677
Copy link
Author

Thanks raman. I double-checked the entities and the zwave entities were listed as 'side_garage_door' as expected. However, when I looked at the entities within the Keymaster entities, they were listed as 'side_side_garage_door' for a few of them. Not all entities were listed that way, but a few were, maybe 8.
I updated them to the 'side_garage_door' and I am in testing now. It appears that, through ZwaveJS, the user codes are updating and resetting as expected but I need to test the lock itself. I will let you know my findings as soon as I am able to do that later this afternoon.

@Scott41677
Copy link
Author

Good afternoon, I was able to verify that after manually updating the entities and removing the extra 'side_' from the entity name, the lock page works as expected. I am now able to assign and reset codes as needed from the lovelace page. Thanks so much for that direction!

@firstof9
Copy link
Collaborator

Thanks for the point in the direction to fix it @raman325!

@chelming
Copy link

chelming commented Feb 23, 2024

did you change the entity ID of the lock entity from what's configured in keymaster? There's no reason why it shouldn't be found as long as the IDs match

I'm getting the same error in my logs (1,100 times) but everything seems to be working. I renamed some entities and did a sed replace in the packages directory for the old/new names. Is there something else I need to do? (I've done generate scripts a few times)

Same exact error though:

Logger: custom_components.keymaster.binary_sensor
Source: custom_components/keymaster/binary_sensor.py:49
Integration: keymaster ([documentation](https://github.com/FutureTense/keymaster), [issues](https://github.com/FutureTense/keymaster/issues))
First occurred: February 20, 2024 at 2:14:55 PM (1114 occurrences)
Last logged: 7:13:06 PM

Z-Wave integration not found

@raman325
Copy link
Collaborator

You need to update the config entry data too. You can find it in config/.storage/core.config_entries but be very careful, you can screw up other integrations if you update it incorrectly. If you decide to update the file by hand/via CLI, I'd back it up first just in case

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