Help with Flow - Full Tablet MQTT to HE Virtual Switch [solved]

I'm stuck again with what should be a simple flow...

I'm trying to get the power status from my Living Room Fire Tablet to control a Virtual Switch that I've created in HE. As the tablets charger is on the same electrical circuit as my Hubitat, the intention is to use the status of the virtual switch in a rule to shutdown the Hubitat (once I've got it battery backed)

The topic is 'fully/deviceInfo/Fire_HD_Lounge' and a debug node shows the following:

So I can see I need to use the 'isPlugged' from the payload. I'd put that in a switch node with ==true connected to command node, Virtual Switch ON and ==false connected to command node, Virtual Switch OFF.

I've tried to add that in the switch node but I'm not getting the switch to change state. Any ideas? Thanks

Edit: Figured it out:


This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.