I’m really struggling with some logic, and unfortunately my plug in adaptor, since the latest firmware, doesn’t have a trigger available to detect the power, so having to use device properties.
So basically, what I’m trying to detect, is if my tablet_charger (ptblt_watts Tablet Charger) is using less than 1W power, in which case, all phones, tablets and anything else plugged in, is fully charged.
ptblt_watts Tablet Charger
pTablet_Charger Charge Tablets virtual switch to override
tBattery_Charger_On = Tablet Charger is turned on
cTblt_Watts: (condition to replace missing trigger)
(tBattery_Charger_on and (cTblt_Watts; NOW>00:10:00)) and !cBattery_Charger_StayOn and (tBattery_Charger_On; NOW>00:05:00)
pTablet_Charger or (tBattery_Charger_On and tBattery_Charger_On;tBattery_Charger_off;tBattery_Charger_On<00:00:30))
To test, I’ve created some smaller conditions:
cCharger_Time_On: (check if charger has been on for more than 10 mins)
cTablet_Charger_Test: (check if watts less than1 for more than 10 mins
cTblt_Watts = false
cCharger_Time_On = true
cTablet_Charger_Test = true
Not sure how this last conditon can be true, based on cTblt_Watts being false. Would anyone have any ideas? It’s causing my switch to turn on and off rapidly!
TonyChargers- status.zip (16.0 KB)