I am trying to mimic an infrared remote to control my Fan, The sitemap is defined as follows:
Switch item=FAN_SR_Speed mappings=[1="1", 2="2", 3="3", 4="4" ]
The item is defined as follows:
Switch FAN_SR_Speed "Speed"
It renders fine, but produces a warning when a button is pressed,
[WARN ] [rest.core.internal.item.ItemResource] - Received HTTP POST request at 'items/FAN_SR_Speed' with an invalid status value '1'.
How do i fix this?