Hi all,
I noticed recently that some rule conditions are not being executed accordingly when mode changes, the log was saying mode changed but condition not met.
For example, I’ve one of the rules that activates virtual device based on location mode changes. One rule is to turn on isAway when mode changes to away. However from the execution log it seems that condition was not met, and so it was skipped. See screenshot below.
Inspecting the first IF condition evaluation, json block looks to be indicating location mode was “Home”, contrary to the statement above that indeed mode was changed to “Away” at that time:
[
{
"type": "state",
"subtype": "location",
"data": {
"platform": "samsung-smartthings",
"locationId": "xxx",
"attribute": "Mode",
"state": {
"eventId": "0882b498-74f0-11ed-b165-0566839802a6",
"timestamp": "2022-12-05T22:56:20.000Z",
"value": "Home",
"isStateChange": true
}
}
},
{
"type": "state",
"subtype": "location",
"data": {
"platform": "samsung-smartthings",
"locationId": "xxx",
"attribute": "Mode",
"state": {
"timestamp": "2022-12-05T22:56:20.000Z",
"value": "Home",
"eventId": "0882b498-74f0-11ed-b165-0566839802a6",
"isStateChange": true
}
}
}
]
Could this be a potential bug? Or is there anything wrong? Please help!