Hi Guys!
I’m struggling with connecting Samsung Smart TV to OpenHAB.
I’m using clean installation (with also addons and demo installed). I’ve changed 4 following files:
In openhab.cfg
################################ SAMSUNG TV Binding ###################################
#
# Host of the first TV to control
# samsungtv:SchlafzimmerTV.host=192.168.1.8
# samsungtv:SchlafzimmerTV.port=55000
In demo.items
/* Smart TV */
Number TV_Kanal {samsungtv="0:SchlafzimmerTV:KEY_0, 1:SchlafzimmerTV:KEY_1, 2:SchlafzimmerTV:KEY_2, 3:SchlafzimmerTV:KEY_3, 4:SchlafzimmerTV:KEY_4, 5:SchlafzimmerTV:KEY_5, 6:SchlafzimmerTV:KEY_6, 7:SchlafzimmerTV:KEY_7, 8:SchlafzimmerTV:KEY_8, 9:SchlafzimmerTV:KEY_9"}
Dimmer TV_Kanal_up_down {samsungtv="INCREASE:Livingroom:KEY_CHUP, DECREASE:Livingroom:KEY_CHDOWN"}
Rollershutter TV_Lautstaerke {samsungtv="UP:SchlafzimmerTV:KEY_VOLUP, DOWN:SchlafzimmerTV:KEY_VOLDOWN"}
In demo.rules
rule "TV_Kanal_Remote_Top"
when
received command TV_Kanal_Remote_Top
Then
Switch TV_Kanal_Remote_Top.state {
case 0 : {
sendCommand("TV_Kanal", 1)
}
case 1 : {
sendCommand("TV_Kanal", 2)
}
case 2 : {
sendCommand("TV_Kanal", 3)
}
}
sendUpdate("TV_Kanal_Remote_Top", 3)
End
And in demo.sitemap
Switch item=TV_Kanal_Remote_Top label="TV_Channel" mappings=[0="1", 1="2", 2="3"]
After running OpenHAB there is nothing related to the Samsung on the screen. Button is displayed wrong (as toogle) and after changing state there is following message:
2015-09-16 21:43:38.108 [WARN ] [.w.internal.servlet.CmdServlet] - Received command 'TOGGLE' for item 'TV_Kanal_Remote_Top', but the item does not exist in the registry
TV IP was checked, TV has capacity to be remote controlled from mobile phone. As far as I know myself I haven’t done something in the middle of the process - but what?