I don’t know how to evaluate a boolean attribute in a mysensors multidevice in rules. I tried
when $mydevice.isCharging = 1
or
when $mydevice.isCharging = true
or
when $mydevice.isCharging = "true"
or
when $mydevice.isCharging
.
Nothing works. When I log the attribute with
log "$mydevice.isCharging"
it reports true
.
-
[Solved] How to evaluate boolean attributes in rules for mysensors multidevice
-
Try:
when isCharging of mydevice is "true"
or without""
-
Thanks a lot.
when isCharging of mydevice is true
does the job.