title: how to read the state of ui-switch in node red
body: <p>I have a flow using a switch from dashboard. I want to know if the switch is on or off from another node. Here is what it looks like</p>
  
  <pre><code>mqtt output node ---- MySwitch --- debug
  
  another mqtt output node --- function        (if on) ---|-- debug
                               MySwitch state (if off) ---|
  </code></pre>