I'm trying to do something a little funky, but it should be pretty straightforward. I must be missing something. I have a Lutron Caseta 2-button switch controlling a light in a shower. I have another 2-button Lutron Pico that controls some other lights through Lutron. I'd like all the lights programmed through Lutron AND the shower light to go off when the off button on the Pico is touched. The on button on the Pico should not affect the shower light. So, off only.
I tried to do this various fancy ways, but a simple Rule Machine rule is where I settled. It's also the only thing I can get to work. The trigger is the off button on the Pico and the action is turning off the shower light switch. That's it. Lutron takes care of the other lights involved. After some hacking around, it works. Except . . . it's throwing an error in the log every time it does it. NullPointerException on line 80.
FWIW, I think the switches are set correctly. In Devices, the switch is a Lutron Switch and the Pico is a Lutron Pico. The Pico is set as a 2-button device. The Lutron Integrator also has them correctly set as switch/Pico.
What is "dev:8" in the lines above with the Error? If you click on the Red Error box, it will take you to that device. I am curious as to which type of device is throwing the error.
Also, please share a screenshot of your RM rule. Often, the root cause will be obvious once others can take a look. Another option would be to simply recreate the RM rule again, and delete the original rule to see if the problem persists.
Not sure what exactly is causing the error. However, there is a simpler way to setting this up. Have you created any scenes in the Lutron app? They come in as keyboard presses on the Lutron Hub. You could set an OFF scene in Lutron and input it into Hubitat. This would simplify your rule to be button 2 on Pico pushes a button on the Lutron Hub. Everything would turn off at the same time.