First of i am new to node red, but have some experience from arduino.
I am trying to controll my Phillips Hue lights with a Hue switch, that outputs the following when pressed (in this case the "on" button have been pushed):
action: "short released"
When i listen to msg.payload.name i get "on" and "off" respectively. How do i turn these two string values into a boolean true and false as output?
I know i should be able to do this with the function block, but i am suspecting that there should be an easier way to do this?