Been searching for a day now to get the udp connection working but no luck and can’t figure it out where i’m wrong. I have OH2 installed on a Synology NAS and have a samsung tv addon working.
my item:
Switch GF_LivingDining_Light “Light” (GF_LivingDining, gLight) [“Lighting”] {udp=">[192.168.0.100:8150:‘REGEX(.*)’]"}
my sitemap:
Switch item=GF_LivingDining_Light label=“Living & Dining Room” mappings=[“d15”=“ON”, “d15”=“OFF”]
my map:
d15=‘d15=1\x03d15=0\x03’
When i push the switch on the habpanel it needs to send the string “d15=1\x03d15=0\x03” to ip adress 192.168.0.100 on port 8150 through the UDP protocol
I had a lot of errors in the beginning but my latest one is:
there is no channel that services [itemName:GF_LivingDining_Light, command ON]
all udp examples are without channels so i’m a bit confused
You need to tell is what text to send. Right now you are sending the state of the Switch so ON or OFF. You also need to tell it whether to send the string on the ON command or OFF command. The following sends the string on the ON command.
thx for the answer
I indeed had to double escape those backslashes
but i still get the error “there is no channel that services [itemName=GF_LivingDinning_Lightc command ON]”
the string i have in my items file is
Switch GF_LivingDining_Light “Light” (GF_LivingDining, gLight) [“Lighting”] { udp=">[ON:192.168.0.100:8150:d15=1\x03d15=0\x03]" }