This is on a C-8 Pro at version 2.4.0.151.
I have a rule that fired when I don't think it should have, so either my understanding of Rule Machine is incorrect, or there's a bug. The following rule should be active only when it's dark out (that is, when lights might be needed); under those conditions, it should be triggered by someone's arrival:
The kitchen "mood lighting" turned on this morning, but we were already home - no one had "arrived". I checked my logs, and the last arrival was yesterday afternoon. However, right before the rule fired (in the same second), it stopped being dark outside. There are no other events close in time to the rule firing - the previous event before those shown below is a thermostat temperature report nearly 30 seconds earlier. Here are some extracts from my syslog (so, chronological order, not reverse chronological):
Feb 1 14:31:18 192.168.1.77 1 2025-02-01T14:31:17.147-04:00 Hubby app 235 - - Syl has arrived (phone entered geofenced zone)
Feb 1 14:31:18 192.168.1.77 1 2025-02-01T14:31:17.269-04:00 Hubby app 240 - - Syl is home!
Feb 1 14:31:18 192.168.1.77 1 2025-02-01T14:31:17.454-04:00 Hubby app 241 - - Anne or Syl has arrived.
Feb 1 14:31:19 192.168.1.77 1 2025-02-01T14:31:17.657-04:00 Hubby app 245 - - At least one person (Anne, Syl, or extra person) is home.
Feb 1 14:35:14 192.168.1.77 1 2025-02-01T14:35:12.758-04:00 Hubby app 235 - - Anne has arrived (phone entered geofenced zone)
Feb 1 14:35:14 192.168.1.77 1 2025-02-01T14:35:12.882-04:00 Hubby app 236 - - Anne is home!
Feb 1 14:35:14 192.168.1.77 1 2025-02-01T14:35:13.059-04:00 Hubby app 241 - - Both Anne and Syl are now home.
The log line above that says that "At least one person" is home is from the rule that sets the variable Presence_somebody to true. So that variable has been true since yesterday. This morning:
Feb 2 08:14:02 192.168.1.77 1 2025-02-02T08:14:00.467-04:00 Hubby dev 64 - - Outdoor motion sensor: front illuminance is 666 Lux
Feb 2 08:14:02 192.168.1.77 1 2025-02-02T08:14:00.745-04:00 Hubby app 248 - - Environment: bright is now true (outdoor illuminance > 400 lux)
Feb 2 08:14:02 192.168.1.77 1 2025-02-02T08:14:00.908-04:00 Hubby app 250 - - Environment: lights are no longer needed
The last log line above is from the rule that sets the variable Environment_need_lights to false. And then in the same second:
Feb 2 08:14:02 192.168.1.77 1 2025-02-02T08:14:00.960-04:00 Hubby dev 54 - - Kitchen undercabinet lights button (VIRTUAL)(real actions) button 4 was pushed
Feb 2 08:14:02 192.168.1.77 1 2025-02-02T08:14:00.980-04:00 Hubby dev 54 - - Kitchen undercabinet lights button (VIRTUAL)(real actions) button 1 was pushed
Feb 2 08:14:02 192.168.1.77 1 2025-02-02T08:14:00.998-04:00 Hubby app 278 - - Kitchen mood lighting set because someone has arrived
So it seems that when Environment_need_lights became false (the opposite of the required condition!), the rule fired (even though the trigger had not happened at that time).
Is there something weird going on, or am I missing something obvious?