Ok I think I have miss some think But don’t know.
1: 1 I trying to test on MQTT FX.
1: 2 # (try this one 1st)
1: 2 broadlink (then try this one too)
Then subscribe
1: 3 broadlink/epson_projector/menu
1: 4 play
Then Pulblish
2: TV menu in MQTT fx don’t come up
3: Items (I have try 3 ways so far)
//Test
Switch Menu "Menu" {mqtt=">[brokwe:broadlink/epson_projector/menu:command:ON:play\\:0d43b4e42518],>[broker:broadlink/epson_projector/menu:command:OFF:play\\:0d43b4e42518]"}
Switch Mebu2 "MENU 2" {mqtt=">[mqtt:broadlink/epson_projector/menu:command:ON:play]"}
Switch tv "turn on tv" {mqtt=">[mosquitto:broadlink/epson_projector/menu:command:ON:play\\:0d43b4e42518],>[mosquitto:broadlink/epson_projector/menu:command:OFF:play\\:0d43b4e42518]"}
4: Sitmap files (3 ways)
Frame label="TV"
{
Switch item=Menu label="MENU"
Switch item=Mebu2 label="menu2"
Switch item=tv label="TV"
5: Log file
2018-11-04 20:28:48.228 [ome.event.ItemCommandEvent] - Item 'tv' received command ON
2018-11-04 20:28:48.236 [vent.ItemStateChangedEvent] - tv changed from NULL to ON
2018-11-04 20:28:50.914 [vent.ItemStateChangedEvent] - CurrentDate changed from 2018-11-04T20:27:50.864+1000 to 2018-11-04T20:28:50.869+1000
2018-11-04 20:28:51.653 [ome.event.ItemCommandEvent] - Item 'tv' received command OFF
2018-11-04 20:28:51.664 [vent.ItemStateChangedEvent] - tv changed from ON to OFF
6: Also this is my default.json (what I think I don’t change or I break updates)
{
"mqtt": {
"host": "127.0.0.1",
"port": 1883,
"protocol": "mqtt",
"subscribeBasePath": "broadlink"
},
"recording": {
"timeout": {
"ir": 30,
"rf": 30
},
"path": null
},
"gui": {
"port": 3000
}
}
7: Also this is my local.json (what I add my self but dont know what I or need to change)
{
"mqtt": {
"host": "127.0.0.1",
"port": 1883,
"protocol": "mqtt",
"subscribeBasePath": "broadlink"
},
"recording": {
"timeout": {
"ir": 30,
"rf": 30
},
"path": null
},
"gui": {
"port": 3000
}
}
Thanks Guys