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

Update to ratgdo driver breaks integration with hubitat #32

Open
therealj4nd3rs0n opened this issue Mar 8, 2024 · 2 comments
Open

Update to ratgdo driver breaks integration with hubitat #32

therealj4nd3rs0n opened this issue Mar 8, 2024 · 2 comments

Comments

@therealj4nd3rs0n
Copy link

therealj4nd3rs0n commented Mar 8, 2024

I originally installed the esphome and ratgod packages using HPM and they worked amazingly well, for which I am very grateful. I installed the most recent version as of 3/4/24 using Hubitat Package Manager and the integration broke completely. In 'events' for the device I get the error:

Garage Door is offline: Cannot invoke method multiply() on null object

Looking at the logs I see:

java.lang.NullPointerException: Cannot invoke method multiply() on null object on line 257 (method initialize)

I have not been able to find the exact source of the issue, but I can confirm that manually reverting to the original ratgdo driver by copying the code from the 6015892 commit and pasting it into the drivers code in hubitat solves the issue

@bradsjm
Copy link
Owner

bradsjm commented Mar 8, 2024

Thanks, looks like when @ady624 did some refactoring the null checks were removed for some reason. I've added a null check for message.position back to hopefully fix your problem.

@therealj4nd3rs0n
Copy link
Author

The fix you added did the trick, I copy/pasted your new version into hubitat and both my ratgdo openers are back in good working order. Thank you for the incredibly quick fix!

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

2 participants