java.lang.ArithmeticException: Division by zero on line 650 (method setColorTemperature)

I'm getting this error with the following room lighting automation. It works without difficulty in Simple Automation Rules. What setting am I overlooking? This should be as simple as "pick a device", pick a contact sensor" and done.

Can you turn on debug logging for that device.. It should show the command sent.. Also what device is this and what driver are you using?

Sylvania RGBW light strip. Advanced Zigbee CT bulb.
Ring Alarm Contact Sensor G2, Ring Alarm Contact Sensor G2
Same devices for both apps. No idea where the error went to.

Room lighting:
Open door, light turns on. Close door, light stays on.

Disable Room lighting and switch to Simple lighting, Open door, light turns on, close door, light turns off.

The error was on device 851 and is a bulb (setColoratemperature)

I do not understand what I should do differently in Room lighting to make it work. The light is the identical device with the same driver in both apps. It appears the light strip 851 is not addressed in room lighting even though it is selected in the app.

Brian, Update. I created it in Rule Machine and it works. Went back to Room Lighting and tried switching the light to another device and then switched it back and now it works. No other changes. Gremlins??
I really do appreciate you looking into this.

Ha.. Guess so since we can't re-create it with debugging enabled..

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.