Motion Lighting Error with newest firmware

@bravenel

Newest version of motion lighting is throwing errors when the "don't turn off if already on" option is set to ON.

app:61152019-01-11 03:12:46.529 pm errorjava.lang.ClassCastException: null (alreadyOn)

app:61162019-01-11 03:12:46.527 pm errorjava.lang.ClassCastException: null (alreadyOn)

I am pretty sure @bravenel has already identified this bug and stated it will be fixed in the next firmware release.

Ah OK, didn't see this in the previous versions so I thought it was something new.

What version are you on? This is not something I've seen before.

Nor is it one that I'm seeing in my testing.

Is this the same issue?

No. That bug was fixed in the latest release.

Started happening after today's update to 2.0.4.109. I tried going into each rule that I was using it in and pressing done, but it didn't seem to fix it.

Show the app setup page.

Ahhh, sorry about that. I wasn’t aware of a new release today.

1 Like

I got some of these in my logs today too.

[app:44] 2019-01-11 05:03:41.552 pm [error] java.lang.ClassCastException: null (alreadyOn)
[dev:37] 2019-01-11 05:03:41.520 pm [info] LR Lamp R was set to 80% [digital]
[dev:37] 2019-01-11 05:03:41.518 pm [info] LR Lamp R was turned on [digital]
[app:44] 2019-01-11 05:03:41.338 pm [error] java.lang.ClassCastException: null (alreadyOn)
[dev:34] 2019-01-11 05:03:41.279 pm [info] LR Lamp L was set to 80% [digital]
[dev:34] 2019-01-11 05:03:41.277 pm [info] LR Lamp L was turned on [digital]
[app:44] 2019-01-11 05:03:40.671 pm [info] Setting dimmers [LR Lamp L, LR Lamp R] to 80
[app:44] 2019-01-11 05:03:40.641 pm [info] Motion active Living Room Motion

Thanks. Did the automation still work as expected?

Appears to be working as expected yes.

I removed the "don't turn off if already on" option from my rules and the error is gone.