NorthernMan54 / homebridge-alexa

Expose your homebridge controlled devices to Amazon Alexa.
https://www.homebridge.ca
454 stars 69 forks source link

Can't Mute TV #328

Closed vcrosato closed 2 years ago

vcrosato commented 4 years ago

Hi,

I have two televisions configured in homebridge through Cmd4 plugin ("TV 1", and "TV 2". Both show up on iOS "Home" App, and I can change inputs through the app (eg: HDMI 1, HDMI2, etc..).

Now I'm trying to do through alexa (eg: "Alexa, change input to HDMI 1"). I've tried exposing the inputs to alexa via your plugin but no luck.

Everytime I ask alexa to change she said: "Cant find a video skill for that, Access you app to manage your video skills...."

If I ask Alexa to change channels receive the same answer...

Would you please help me? Thank you

My homebridge config below:

{ "bridge": { "name": "Homebridge", "username": "CC:22:3D:E3:CE:30", "port": 51826, "pin": "031-45-154", "ssdp": 1900 },

"description": "Bla bla bla.",
"platforms": 
[
    {
    "platform": "Alexa",
        "name": "Alexa",
        "username": "*****",
        "password": "****",
        "pin": "031-45-154",
        "channel": [{
            "into": "TV 1",
            "manufacturer": "Cmd4",
            "name": "Tuner"
        }],
        "inputs": [{
            "into": "TV 1",
            "devices": [{
                "manufacturer": "Cmd4",
                "name": "HDMI1",
                "alexaName": "HDMI 1"
            }, {
                "manufacturer": "Panasonic",
                "name": "HDMI2",
                "alexaName": "HDMI 2"
            }, {
                "manufacturer": "HTTP-IRBlaster",
                "name": "HDMI2",
                "alexaName": "TV NETFLIX"
            }]
        }]
    },
    {
    "platform": "Indigo",
        "name": "My Indigo Server",
        "protocol": "http",
        "host": "127.0.0.1",
        "port": "8176",
        "path": "",
        "includeActions": false,
        "includeIds": [  "1513923450", "1766142507", "1729302575", "1219427944",
                         "367714656", "1410634096", "1695221242", "1435197068",      "1171706780", "509140042", "639244835",
                         "997257091", "398093587", "440765069",
                         "1258385856",
                         "889646481", "1040325536",
                         "540701415",
                         "91798740", "127295890"
                  ],
        "excludeIds": [],
        "treatAsSwitchIds": [],
        "treatAsLockIds": [],
        "treatAsDoorIds": [],
        "treatAsGarageDoorIds": [],
        "treatAsMotionSensorIds": [],
        "thermostatsInCelsius": true,
        "accessoryNamePrefix": ""
    },
    {
    "platform": "Camera-ffmpeg",
        "cameras": [
        {
            "name": "Camera Name",
            "videoConfig": {
                "source": "-re -i rtsp://myfancy_rtsp_stream",
                "stillImageSource": "-i http://faster_still_image_grab_url/this_is_optional.jpg",
                "maxStreams": 2,
                "maxWidth": 1280,
                "maxHeight": 720,
                "maxFPS": 30
            }
        }
     ]
    },
    {
    "platform": "Cmd4",
        "name": "Cmd4",
        "outputConstants":                  false,
        "accessories" :
      [
          {
             "type": "Outlet",
             "displayName": "Impressora 1",
             "on":                       "FALSE",
             "outletInUse":              "FALSE",
             "name":                     "Impressora 1",
             "stateChangeResponseTime":   3,
             "state_cmd": "/usr/bin/php /Library/WebServer/Documents/test/scripts/monitor.php"
          },
          {
             "type": "Speaker",
             "displayName": "My_Speaker",
             "mute":                     "FALSE",
             "volume":                    5,
             "name":                     "My_Speaker",
             "stateChangeResponseTime":   3,
             "state_cmd": "/usr/bin/php /Library/WebServer/Documents/test/scripts/monitor.php"
          },
          {
             "type": "Television",
             "displayName": "Monitor 1",
             "active":                   "ACTIVE",
             "activeIdentifier":          123,
             "configuredName":           "Monitor 1",
             "sleepDiscoveryMode":       "ALWAYS_DISCOVERABLE",
             "brightness":                8,
             "closedCaptions":           "DISABLED",
             "displayOrder":             0,
             "currentMediaState":        "STOP",
             "targetMediaState":         "STOP",
             "pictureMode":              "STANDARD",
             "remoteKey":                "SELECT",
             "Manufacturer":              "Lenovo",
             "Model":                     "Lenovo l220x",
             "SerialNumber":              "12345",
             "polling":
             [
                {"active":                "ACTIVE", "interval": 50,  "timeout": 5000},
                {"currentMediaState":     "STOP",   "interval": 540, "timeout": 5000}
             ],
             "stateChangeResponseTime":    3,
             "state_cmd": "/usr/bin/php /Library/WebServer/Documents/test/scripts/monitor.php"
          },
          {
             "type": "Television",
             "displayName": "Monitor 2",
             "active":                   "ACTIVE",
             "activeIdentifier":          124,
             "configuredName":           "Monitor 2",
             "sleepDiscoveryMode":       "ALWAYS_DISCOVERABLE",
             "brightness":                8,
             "closedCaptions":           "DISABLED",
             "displayOrder":             0,
             "currentMediaState":        "STOP",
             "targetMediaState":         "STOP",
             "pictureMode":              "STANDARD",
             "remoteKey":                "SELECT",
             "Manufacturer":              "Lenovo",
             "Model":                     "Lenovo l220x",
             "SerialNumber":              "12346",
             "polling":
             [
                {"active":                "ACTIVE", "interval": 50,  "timeout": 5000},
                {"currentMediaState":     "STOP",   "interval": 540, "timeout": 5000}
             ],
             "stateChangeResponseTime":    3,
             "state_cmd": "/usr/bin/php /Library/WebServer/Documents/test/scripts/monitor.php"
          },
          {
             "type": "Television",
             "displayName": "TV 1",
             "active":                   "ACTIVE",
             "activeIdentifier":          1,
             "configuredName":           "TV 1",
             "sleepDiscoveryMode":       "ALWAYS_DISCOVERABLE",
             "brightness":                8,
             "closedCaptions":           "DISABLED",
             "displayOrder":             0,
             "currentMediaState":        "STOP",
             "targetMediaState":         "STOP",
             "pictureMode":              "STANDARD",
             "remoteKey":                "SELECT",
             "polling":
             [
                {"active":                "ACTIVE", "interval": 50,  "timeout": 5000},
                {"currentMediaState":     "STOP",   "interval": 540, "timeout": 5000}
             ],
             "stateChangeResponseTime":    3,
             "state_cmd": "/usr/bin/php /Library/WebServer/Documents/test/scripts/monitor.php",
            "linkedTypes":
            [
               {"type": "InputSource",
                "displayName":            "tv1_hdmi1",
                "configuredName":        "HDMI1",
                "currentVisibilityState": "SHOWN",
                "inputSourceType":        "HDMI",
                "isConfigured":           "CONFIGURED",
                "identifier":              1,
                "targetVisibilityState":    "SHOWN",
                "name":                     "HDMI1"
               },
               {"type": "InputSource",
                "displayName":           "tv1_hdmi2",
                "configuredName":        "HDMI2",
                "currentVisibilityState":"SHOWN",
                "inputSourceType":       "HDMI",
                "isConfigured":          "CONFIGURED",
                "identifier":             2,
                "targetVisibilityState":    "SHOWN",
                "name":                  "HDMI2"
               },
               {"type": "InputSource",
                "displayName":           "tv1_hdmi3",
                "configuredName":        "HDMI3",
                "currentVisibilityState":"SHOWN",
                "inputSourceType":       "HDMI",
                "isConfigured":          "CONFIGURED",
                "identifier":             3,
                "targetVisibilityState":    "SHOWN",
                "name":                  "HDMI3"
               },
               {"type": "InputSource",
                "displayName":           "tv1_hdmi4",
                "configuredName":        "HDMI4",
                "currentVisibilityState":"SHOWN",
                "inputSourceType":       "HDMI",
                "isConfigured":          "CONFIGURED",
                "identifier":             4,
                "targetVisibilityState":    "SHOWN",
                "name":                  "HDMI4"
               },
               {"type": "InputSource",
                "displayName":           "Netflix",
                "configuredName":        "Netflix",
                "currentVisibilityState":"SHOWN",
                "inputSourceType":       "APPLICATION",
                "isConfigured":          "CONFIGURED",
                "identifier":             5,
                "targetVisibilityState":    "SHOWN",
                "name":                     "Netflix"
               },
               {"type": "TelevisionSpeaker",
                "displayName": "tv1_speaker",
                "mute":                     "FALSE",
                "active":                   "ACTIVE",
                "volume":                    10,
                "volumeControlType":         "ABSOLUTE",
                "volumeSelector":            "INCREMENT",
                "name":                      "tv1_speaker"
               }
            ],
            "brightness":                 8,
            "closedCaptions":            "DISABLED",
            "displayOrder":              0,
            "currentMediaState":         "STOP",
            "targetMediaState":          "STOP",
            "pictureMode":               "STANDARD",
            "remoteKey":                 "SELECT",
            "Manufacturer":              "Panasonic",
            "Model":                     "Panasonic Viera 58",
            "SerialNumber":              "12345",
            "polling": [
               {"active":                "ACTIVE", "interval": 50,  "timeout": 5000},
               {"activeIdentifier":       1,       "interval": 50,  "timeout": 5000},
               {"currentMediaState":     "STOP",   "interval": 540, "timeout": 5000}
            ]
          },
          {
             "type": "Television",
             "displayName": "TV 2",
             "active":                   "ACTIVE",
             "activeIdentifier":          1,
             "configuredName":           "TV 2",
             "sleepDiscoveryMode":       "ALWAYS_DISCOVERABLE",
             "brightness":                8,
             "closedCaptions":           "DISABLED",
             "displayOrder":             0,
             "currentMediaState":        "STOP",
             "targetMediaState":         "STOP",
             "pictureMode":              "STANDARD",
             "remoteKey":                "SELECT",
             "polling":
             [
                {"active":                "ACTIVE", "interval": 50,  "timeout": 5000},
                {"currentMediaState":     "STOP",   "interval": 540, "timeout": 5000}
             ],
             "stateChangeResponseTime":    3,
             "state_cmd": "/usr/bin/php /Library/WebServer/Documents/test/scripts/monitor.php",
            "linkedTypes":
            [
               {"type": "InputSource",
                "displayName":            "tv2_hdmi1",
                "configuredName":         "HDMI1",
                "currentVisibilityState": "SHOWN",
                "inputSourceType":        "HDMI",
                "isConfigured":           "CONFIGURED",
                "identifier":              1,
                "targetVisibilityState":    "SHOWN",
                "name":                     "HDMI1"
               },
               {"type": "InputSource",
                "displayName":           "tv2_hdmi2",
                "configuredName":        "HDMI2",
                "currentVisibilityState":"SHOWN",
                "inputSourceType":       "HDMI",
                "isConfigured":          "CONFIGURED",
                "identifier":             2,
                "targetVisibilityState":    "SHOWN",
                "name":                  "HDMI2"
               },
               {"type": "InputSource",
                "displayName":           "tv2_hdmi3",
                "configuredName":        "HDMI3",
                "currentVisibilityState":"SHOWN",
                "inputSourceType":       "HDMI",
                "isConfigured":          "CONFIGURED",
                "identifier":             3,
                "targetVisibilityState":    "SHOWN",
                "name":                  "HDMI3"
               },
               {"type": "InputSource",
                "displayName":           "Netflix",
                "configuredName":        "Netflix",
                "currentVisibilityState":"SHOWN",
                "inputSourceType":       "APPLICATION",
                "isConfigured":          "CONFIGURED",
                "identifier":             5,
                "targetVisibilityState":    "SHOWN",
                "name":                     "Netflix"
               },
               {"type": "TelevisionSpeaker",
                "displayName": "tv2_speaker",
                "mute":                     "FALSE",
                "active":                   "ACTIVE",
                "volume":                    10,
                "volumeControlType":         "ABSOLUTE",
                "volumeSelector":            "INCREMENT",
                "name":                      "tv2_speaker"
               }
            ],
            "brightness":                 8,
            "closedCaptions":            "DISABLED",
            "displayOrder":              0,
            "currentMediaState":         "STOP",
            "targetMediaState":          "STOP",
            "pictureMode":               "STANDARD",
            "remoteKey":                 "SELECT",
            "Manufacturer":              "Panasonic",
            "Model":                     "Panasonic Viera 42",
            "SerialNumber":              "12345",
            "polling": [
               {"active":                "ACTIVE", "interval": 50,  "timeout": 5000},
               {"activeIdentifier":       1,       "interval": 50,  "timeout": 5000},
               {"currentMediaState":     "STOP",   "interval": 540, "timeout": 5000}
            ]
          }
        ]
    }
]

} `

NorthernMan54 commented 4 years ago

Can you share a homebridge accessory dump from your homebridge instance, I want to run it thru the accessory parser to see what is being shared with Alexa.

Also I presume you are using the beta version.

In regards to this response from Alexa, "Cant find a video skill for that, Access you app to manage your video skills...."

I have that also occurring majority of the time as well, I find that if I use the wording

"Alexa, change input to HDMI 1 on TV 1"

And this works, but it is awkward

vcrosato commented 4 years ago

Just tried "Alexa, change input to HDMI 1 on TV 1", got the same video skill answer..

About the version I really don't know. The output of debug read as:

[5/1/2020, 10:47:08 PM] [Alexa] homebridge-alexa v0.4.67, node v12.12.0, homebridge v0.4.53
[5/1/2020, 10:47:08 PM] [Alexa] Initializing platform accessory 'Alexa'...

Should I upgrade or change somehow to another version?

Here's my accessory dump:

curl -X PUT http://127.0.0.1:51826/accessories --header "Content-Type:Application/json" --header "authorization: 031-45-154"
{"accessories":[{"aid":1,"services":[{"iid":1,"type":"0000003E-0000-1000-8000-0026BB765291","characteristics":[{"iid":2,"type":"00000014-0000-1000-8000-0026BB765291","perms":["pw"],"format":"bool","description":"Identify"},{"iid":3,"type":"00000020-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"homebridge.io","description":"Manufacturer"},{"iid":4,"type":"00000021-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"homebridge","description":"Model"},{"iid":5,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Homebridge","description":"Name"},{"iid":6,"type":"00000030-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"CC:22:3D:E3:CE:30","description":"Serial Number"},{"iid":11,"type":"00000052-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"0.4.53","description":"Firmware Revision"}],"primary":false,"hidden":false},{"iid":2000000007,"type":"49FB9D4D-0FEA-4BF1-8FA6-E7B18AB86DCE","characteristics":[{"iid":8,"type":"77474A2F-FA98-485E-97BE-4762458774D8","perms":["pr","ev"],"format":"uint8","value":0,"description":"State","maxValue":1,"minValue":0,"minStep":1},{"iid":9,"type":"FD9FE4CC-D06F-4FFE-96C6-595D464E1026","perms":["pr","ev"],"format":"string","value":"1.0","description":"Version"},{"iid":10,"type":"5819A4C2-E1B0-4C9D-B761-3EB1AFF43073","perms":["pr","pw","ev"],"format":"data","value":null,"description":"Control Point"}],"primary":false,"hidden":false}]},{"aid":48,"services":[{"iid":1,"type":"0000003E-0000-1000-8000-0026BB765291","characteristics":[{"iid":2,"type":"00000014-0000-1000-8000-0026BB765291","perms":["pw"],"format":"bool","description":"Identify"},{"iid":3,"type":"00000020-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"homebridge-alexa","description":"Manufacturer"},{"iid":4,"type":"00000021-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Default-Model","description":"Model"},{"iid":5,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Alexa","description":"Name"},{"iid":6,"type":"00000030-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"nexx-Mac-mini-5.local","description":"Serial Number"},{"iid":7,"type":"00000052-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"0.4.67","description":"Firmware Revision"}],"primary":false,"hidden":false},{"iid":8,"type":"00000080-0000-1000-8000-0026BB765291","characteristics":[{"iid":9,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Alexa","description":"Name"},{"iid":10,"type":"0000006A-0000-1000-8000-0026BB765291","perms":["pr","ev"],"format":"uint8","value":0,"description":"Contact Sensor State","valid-values":[0,1],"maxValue":1,"minValue":0}],"primary":false,"hidden":false}]},{"aid":98,"services":[{"iid":1,"type":"0000003E-0000-1000-8000-0026BB765291","characteristics":[{"iid":2,"type":"00000014-0000-1000-8000-0026BB765291","perms":["pw"],"format":"bool","description":"Identify"},{"iid":3,"type":"00000020-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Cmd4","description":"Manufacturer"},{"iid":4,"type":"00000021-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Cmd4Model","description":"Model"},{"iid":5,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Impressora 1","description":"Name"},{"iid":6,"type":"00000030-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Cmd4 OutletImpressora 1","description":"Serial Number"},{"iid":7,"type":"00000052-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"1.0","description":"Firmware Revision"}],"primary":false,"hidden":false},{"iid":8,"type":"00000047-0000-1000-8000-0026BB765291","characteristics":[{"iid":9,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Impressora 1","description":"Name"},{"iid":10,"type":"00000025-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"bool","value":false,"description":"On"},{"iid":11,"type":"00000026-0000-1000-8000-0026BB765291","perms":["pr","ev"],"format":"bool","value":false,"description":"Outlet In Use"}],"primary":false,"hidden":false}]},{"aid":69,"services":[{"iid":1,"type":"0000003E-0000-1000-8000-0026BB765291","characteristics":[{"iid":2,"type":"00000014-0000-1000-8000-0026BB765291","perms":["pw"],"format":"bool","description":"Identify"},{"iid":3,"type":"00000020-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Cmd4","description":"Manufacturer"},{"iid":4,"type":"00000021-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Cmd4Model","description":"Model"},{"iid":5,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"My_Speaker","description":"Name"},{"iid":6,"type":"00000030-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Cmd4 SpeakerMy_Speaker","description":"Serial Number"},{"iid":7,"type":"00000052-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"1.0","description":"Firmware Revision"}],"primary":false,"hidden":false},{"iid":8,"type":"00000113-0000-1000-8000-0026BB765291","characteristics":[{"iid":9,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"My_Speaker","description":"Name"},{"iid":10,"type":"0000011A-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"bool","value":false,"description":"Mute"},{"iid":11,"type":"00000119-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"uint8","value":5,"description":"Volume","unit":"percentage","maxValue":100,"minValue":0,"minStep":1}],"primary":false,"hidden":false}]},{"aid":95,"services":[{"iid":1,"type":"0000003E-0000-1000-8000-0026BB765291","characteristics":[{"iid":2,"type":"00000014-0000-1000-8000-0026BB765291","perms":["pw"],"format":"bool","description":"Identify"},{"iid":3,"type":"00000020-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Lenovo","description":"Manufacturer"},{"iid":4,"type":"00000021-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Lenovo l220x","description":"Model"},{"iid":5,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Monitor 1","description":"Name"},{"iid":6,"type":"00000030-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"12345","description":"Serial Number"},{"iid":7,"type":"00000052-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"1.0","description":"Firmware Revision"}],"primary":false,"hidden":false},{"iid":8,"type":"000000D8-0000-1000-8000-0026BB765291","characteristics":[{"iid":9,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Monitor 1","description":"Name"},{"iid":10,"type":"000000B0-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"uint8","value":1,"description":"Active","valid-values":[0,1],"maxValue":1,"minValue":0},{"iid":11,"type":"000000E7-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"uint32","value":123,"description":"Active Identifier"},{"iid":12,"type":"000000E3-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"string","value":"Monitor 1","description":"Configured Name"},{"iid":13,"type":"000000E8-0000-1000-8000-0026BB765291","perms":["pr","ev"],"format":"uint8","value":1,"description":"Sleep Discovery Mode","valid-values":[0,1],"maxValue":1,"minValue":0},{"iid":14,"type":"00000008-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"int","value":8,"description":"Brightness","unit":"percentage","maxValue":100,"minValue":0,"minStep":1},{"iid":15,"type":"000000DD-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"uint8","value":0,"description":"Closed Captions","valid-values":[0,1],"maxValue":1,"minValue":0},{"iid":16,"type":"000000E0-0000-1000-8000-0026BB765291","perms":["pr","ev"],"format":"uint8","value":0,"description":"Current Media State","valid-values":[0,1,2,3],"maxValue":3,"minValue":0},{"iid":17,"type":"000000E2-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"uint16","value":1,"description":"Picture Mode","valid-values":[0,1,2,3,4,5,6,7,8,9,10,11,12,13],"maxValue":13,"minValue":0},{"iid":18,"type":"000000E1-0000-1000-8000-0026BB765291","perms":["pw"],"format":"uint8","description":"Remote Key","valid-values":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],"maxValue":16,"minValue":0},{"iid":19,"type":"00000137-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"uint8","value":2,"description":"Target Media State","valid-values":[0,1,2,3],"maxValue":2,"minValue":0}],"primary":false,"hidden":false}]},{"aid":96,"services":[{"iid":1,"type":"0000003E-0000-1000-8000-0026BB765291","characteristics":[{"iid":2,"type":"00000014-0000-1000-8000-0026BB765291","perms":["pw"],"format":"bool","description":"Identify"},{"iid":3,"type":"00000020-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Lenovo","description":"Manufacturer"},{"iid":4,"type":"00000021-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Lenovo l220x","description":"Model"},{"iid":5,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Monitor 2","description":"Name"},{"iid":6,"type":"00000030-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"12346","description":"Serial Number"},{"iid":7,"type":"00000052-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"1.0","description":"Firmware Revision"}],"primary":false,"hidden":false},{"iid":8,"type":"000000D8-0000-1000-8000-0026BB765291","characteristics":[{"iid":9,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Monitor 2","description":"Name"},{"iid":10,"type":"000000B0-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"uint8","value":0,"description":"Active","valid-values":[0,1],"maxValue":1,"minValue":0},{"iid":11,"type":"000000E7-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"uint32","value":124,"description":"Active Identifier"},{"iid":12,"type":"000000E3-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"string","value":"Monitor 2","description":"Configured Name"},{"iid":13,"type":"000000E8-0000-1000-8000-0026BB765291","perms":["pr","ev"],"format":"uint8","value":1,"description":"Sleep Discovery Mode","valid-values":[0,1],"maxValue":1,"minValue":0},{"iid":14,"type":"00000008-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"int","value":8,"description":"Brightness","unit":"percentage","maxValue":100,"minValue":0,"minStep":1},{"iid":15,"type":"000000DD-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"uint8","value":0,"description":"Closed Captions","valid-values":[0,1],"maxValue":1,"minValue":0},{"iid":16,"type":"000000E0-0000-1000-8000-0026BB765291","perms":["pr","ev"],"format":"uint8","value":0,"description":"Current Media State","valid-values":[0,1,2,3],"maxValue":3,"minValue":0},{"iid":17,"type":"000000E2-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"uint16","value":1,"description":"Picture Mode","valid-values":[0,1,2,3,4,5,6,7,8,9,10,11,12,13],"maxValue":13,"minValue":0},{"iid":18,"type":"000000E1-0000-1000-8000-0026BB765291","perms":["pw"],"format":"uint8","description":"Remote Key","valid-values":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],"maxValue":16,"minValue":0},{"iid":19,"type":"00000137-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"uint8","value":2,"description":"Target Media State","valid-values":[0,1,2,3],"maxValue":2,"minValue":0}],"primary":false,"hidden":false}]},{"aid":101,"services":[{"iid":1,"type":"0000003E-0000-1000-8000-0026BB765291","characteristics":[{"iid":2,"type":"00000014-0000-1000-8000-0026BB765291","perms":["pw"],"format":"bool","description":"Identify"},{"iid":3,"type":"00000020-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Panasonic","description":"Manufacturer"},{"iid":4,"type":"00000021-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Panasonic Viera 58","description":"Model"},{"iid":5,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"TV 1","description":"Name"},{"iid":6,"type":"00000030-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"12345","description":"Serial Number"},{"iid":7,"type":"00000052-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"1.0","description":"Firmware Revision"}],"primary":false,"hidden":false},{"iid":8,"type":"000000D8-0000-1000-8000-0026BB765291","characteristics":[{"iid":9,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"TV 1","description":"Name"},{"iid":10,"type":"000000B0-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"uint8","value":0,"description":"Active","valid-values":[0,1],"maxValue":1,"minValue":0},{"iid":11,"type":"000000E7-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"uint32","value":4,"description":"Active Identifier"},{"iid":12,"type":"000000E3-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"string","value":"TV 1","description":"Configured Name"},{"iid":13,"type":"000000E8-0000-1000-8000-0026BB765291","perms":["pr","ev"],"format":"uint8","value":1,"description":"Sleep Discovery Mode","valid-values":[0,1],"maxValue":1,"minValue":0},{"iid":14,"type":"00000008-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"int","value":8,"description":"Brightness","unit":"percentage","maxValue":100,"minValue":0,"minStep":1},{"iid":15,"type":"000000DD-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"uint8","value":0,"description":"Closed Captions","valid-values":[0,1],"maxValue":1,"minValue":0},{"iid":16,"type":"000000E0-0000-1000-8000-0026BB765291","perms":["pr","ev"],"format":"uint8","value":0,"description":"Current Media State","valid-values":[0,1,2,3],"maxValue":3,"minValue":0},{"iid":17,"type":"000000E2-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"uint16","value":1,"description":"Picture Mode","valid-values":[0,1,2,3,4,5,6,7,8,9,10,11,12,13],"maxValue":13,"minValue":0},{"iid":18,"type":"000000E1-0000-1000-8000-0026BB765291","perms":["pw"],"format":"uint8","description":"Remote Key","valid-values":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],"maxValue":16,"minValue":0},{"iid":19,"type":"00000137-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"uint8","value":2,"description":"Target Media State","valid-values":[0,1,2,3],"maxValue":2,"minValue":0}],"primary":false,"hidden":false,"linked":[20,28,36,44,52,60]},{"iid":20,"type":"000000D9-0000-1000-8000-0026BB765291","characteristics":[{"iid":21,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"HDMI1","description":"Name"},{"iid":22,"type":"000000E3-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"string","value":"HDMI1","description":"Configured Name"},{"iid":23,"type":"000000DB-0000-1000-8000-0026BB765291","perms":["pr","ev"],"format":"uint8","value":3,"description":"Input Source Type","valid-values":[0,1,2,3,4,5,6,7,8,9,10],"maxValue":10,"minValue":0},{"iid":24,"type":"000000D6-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"uint8","value":1,"description":"Is Configured","valid-values":[0,1],"maxValue":1,"minValue":0},{"iid":25,"type":"00000135-0000-1000-8000-0026BB765291","perms":["pr","ev"],"format":"uint8","value":0,"description":"Current Visibility State","valid-values":[0,1,2,3],"maxValue":3,"minValue":0},{"iid":26,"type":"000000E6-0000-1000-8000-0026BB765291","perms":["pr"],"format":"uint32","value":1,"description":"Identifier","minValue":0,"minStep":1},{"iid":27,"type":"00000134-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"uint8","value":0,"description":"Target Visibility State","valid-values":[0,1],"maxValue":1,"minValue":0}],"primary":false,"hidden":false},{"iid":28,"type":"000000D9-0000-1000-8000-0026BB765291","characteristics":[{"iid":29,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"HDMI2","description":"Name"},{"iid":30,"type":"000000E3-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"string","value":"HDMI2","description":"Configured Name"},{"iid":31,"type":"000000DB-0000-1000-8000-0026BB765291","perms":["pr","ev"],"format":"uint8","value":3,"description":"Input Source Type","valid-values":[0,1,2,3,4,5,6,7,8,9,10],"maxValue":10,"minValue":0},{"iid":32,"type":"000000D6-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"uint8","value":1,"description":"Is Configured","valid-values":[0,1],"maxValue":1,"minValue":0},{"iid":33,"type":"00000135-0000-1000-8000-0026BB765291","perms":["pr","ev"],"format":"uint8","value":0,"description":"Current Visibility State","valid-values":[0,1,2,3],"maxValue":3,"minValue":0},{"iid":34,"type":"000000E6-0000-1000-8000-0026BB765291","perms":["pr"],"format":"uint32","value":2,"description":"Identifier","minValue":0,"minStep":1},{"iid":35,"type":"00000134-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"uint8","value":0,"description":"Target Visibility State","valid-values":[0,1],"maxValue":1,"minValue":0}],"primary":false,"hidden":false},{"iid":36,"type":"000000D9-0000-1000-8000-0026BB765291","characteristics":[{"iid":37,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"HDMI3","description":"Name"},{"iid":38,"type":"000000E3-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"string","value":"HDMI3","description":"Configured Name"},{"iid":39,"type":"000000DB-0000-1000-8000-0026BB765291","perms":["pr","ev"],"format":"uint8","value":3,"description":"Input Source Type","valid-values":[0,1,2,3,4,5,6,7,8,9,10],"maxValue":10,"minValue":0},{"iid":40,"type":"000000D6-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"uint8","value":1,"description":"Is Configured","valid-values":[0,1],"maxValue":1,"minValue":0},{"iid":41,"type":"00000135-0000-1000-8000-0026BB765291","perms":["pr","ev"],"format":"uint8","value":0,"description":"Current Visibility State","valid-values":[0,1,2,3],"maxValue":3,"minValue":0},{"iid":42,"type":"000000E6-0000-1000-8000-0026BB765291","perms":["pr"],"format":"uint32","value":3,"description":"Identifier","minValue":0,"minStep":1},{"iid":43,"type":"00000134-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"uint8","value":0,"description":"Target Visibility State","valid-values":[0,1],"maxValue":1,"minValue":0}],"primary":false,"hidden":false},{"iid":44,"type":"000000D9-0000-1000-8000-0026BB765291","characteristics":[{"iid":45,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"HDMI4","description":"Name"},{"iid":46,"type":"000000E3-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"string","value":"HDMI4","description":"Configured Name"},{"iid":47,"type":"000000DB-0000-1000-8000-0026BB765291","perms":["pr","ev"],"format":"uint8","value":3,"description":"Input Source Type","valid-values":[0,1,2,3,4,5,6,7,8,9,10],"maxValue":10,"minValue":0},{"iid":48,"type":"000000D6-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"uint8","value":1,"description":"Is Configured","valid-values":[0,1],"maxValue":1,"minValue":0},{"iid":49,"type":"00000135-0000-1000-8000-0026BB765291","perms":["pr","ev"],"format":"uint8","value":0,"description":"Current Visibility State","valid-values":[0,1,2,3],"maxValue":3,"minValue":0},{"iid":50,"type":"000000E6-0000-1000-8000-0026BB765291","perms":["pr"],"format":"uint32","value":4,"description":"Identifier","minValue":0,"minStep":1},{"iid":51,"type":"00000134-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"uint8","value":0,"description":"Target Visibility State","valid-values":[0,1],"maxValue":1,"minValue":0}],"primary":false,"hidden":false},{"iid":52,"type":"000000D9-0000-1000-8000-0026BB765291","characteristics":[{"iid":53,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Netflix","description":"Name"},{"iid":54,"type":"000000E3-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"string","value":"Netflix","description":"Configured Name"},{"iid":55,"type":"000000DB-0000-1000-8000-0026BB765291","perms":["pr","ev"],"format":"uint8","value":10,"description":"Input Source Type","valid-values":[0,1,2,3,4,5,6,7,8,9,10],"maxValue":10,"minValue":0},{"iid":56,"type":"000000D6-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"uint8","value":1,"description":"Is Configured","valid-values":[0,1],"maxValue":1,"minValue":0},{"iid":57,"type":"00000135-0000-1000-8000-0026BB765291","perms":["pr","ev"],"format":"uint8","value":0,"description":"Current Visibility State","valid-values":[0,1,2,3],"maxValue":3,"minValue":0},{"iid":58,"type":"000000E6-0000-1000-8000-0026BB765291","perms":["pr"],"format":"uint32","value":5,"description":"Identifier","minValue":0,"minStep":1},{"iid":59,"type":"00000134-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"uint8","value":0,"description":"Target Visibility State","valid-values":[0,1],"maxValue":1,"minValue":0}],"primary":false,"hidden":false},{"iid":60,"type":"00000113-0000-1000-8000-0026BB765291","characteristics":[{"iid":61,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"tv1_speaker","description":"Name"},{"iid":62,"type":"0000011A-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"bool","value":false,"description":"Mute"},{"iid":63,"type":"000000B0-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"uint8","value":1,"description":"Active","valid-values":[0,1],"maxValue":1,"minValue":0},{"iid":64,"type":"00000119-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"uint8","value":4,"description":"Volume","unit":"percentage","maxValue":100,"minValue":0,"minStep":1},{"iid":65,"type":"000000E9-0000-1000-8000-0026BB765291","perms":["pr","ev"],"format":"uint8","value":3,"description":"Volume Control Type","valid-values":[0,1,2,3],"maxValue":3,"minValue":0},{"iid":66,"type":"000000EA-0000-1000-8000-0026BB765291","perms":["pw"],"format":"uint8","description":"Volume Selector","valid-values":[0,1],"maxValue":1,"minValue":0}],"primary":false,"hidden":false}]},{"aid":104,"services":[{"iid":1,"type":"0000003E-0000-1000-8000-0026BB765291","characteristics":[{"iid":2,"type":"00000014-0000-1000-8000-0026BB765291","perms":["pw"],"format":"bool","description":"Identify"},{"iid":3,"type":"00000020-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Panasonic","description":"Manufacturer"},{"iid":4,"type":"00000021-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Panasonic Viera 42","description":"Model"},{"iid":5,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"TV 2","description":"Name"},{"iid":6,"type":"00000030-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"12345","description":"Serial Number"},{"iid":7,"type":"00000052-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"1.0","description":"Firmware Revision"}],"primary":false,"hidden":false},{"iid":8,"type":"000000D8-0000-1000-8000-0026BB765291","characteristics":[{"iid":9,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"TV 2","description":"Name"},{"iid":10,"type":"000000B0-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"uint8","value":0,"description":"Active","valid-values":[0,1],"maxValue":1,"minValue":0},{"iid":11,"type":"000000E7-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"uint32","value":2,"description":"Active Identifier"},{"iid":12,"type":"000000E3-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"string","value":"TV 2","description":"Configured Name"},{"iid":13,"type":"000000E8-0000-1000-8000-0026BB765291","perms":["pr","ev"],"format":"uint8","value":1,"description":"Sleep Discovery Mode","valid-values":[0,1],"maxValue":1,"minValue":0},{"iid":14,"type":"00000008-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"int","value":8,"description":"Brightness","unit":"percentage","maxValue":100,"minValue":0,"minStep":1},{"iid":15,"type":"000000DD-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"uint8","value":0,"description":"Closed Captions","valid-values":[0,1],"maxValue":1,"minValue":0},{"iid":16,"type":"000000E0-0000-1000-8000-0026BB765291","perms":["pr","ev"],"format":"uint8","value":0,"description":"Current Media State","valid-values":[0,1,2,3],"maxValue":3,"minValue":0},{"iid":17,"type":"000000E2-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"uint16","value":1,"description":"Picture Mode","valid-values":[0,1,2,3,4,5,6,7,8,9,10,11,12,13],"maxValue":13,"minValue":0},{"iid":18,"type":"000000E1-0000-1000-8000-0026BB765291","perms":["pw"],"format":"uint8","description":"Remote Key","valid-values":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],"maxValue":16,"minValue":0},{"iid":19,"type":"00000137-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"uint8","value":2,"description":"Target Media State","valid-values":[0,1,2,3],"maxValue":2,"minValue":0}],"primary":false,"hidden":false,"linked":[20,28,36,44,52]},{"iid":20,"type":"000000D9-0000-1000-8000-0026BB765291","characteristics":[{"iid":21,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"HDMI1","description":"Name"},{"iid":22,"type":"000000E3-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"string","value":"HDMI1","description":"Configured Name"},{"iid":23,"type":"000000DB-0000-1000-8000-0026BB765291","perms":["pr","ev"],"format":"uint8","value":3,"description":"Input Source Type","valid-values":[0,1,2,3,4,5,6,7,8,9,10],"maxValue":10,"minValue":0},{"iid":24,"type":"000000D6-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"uint8","value":1,"description":"Is Configured","valid-values":[0,1],"maxValue":1,"minValue":0},{"iid":25,"type":"00000135-0000-1000-8000-0026BB765291","perms":["pr","ev"],"format":"uint8","value":0,"description":"Current Visibility State","valid-values":[0,1,2,3],"maxValue":3,"minValue":0},{"iid":26,"type":"000000E6-0000-1000-8000-0026BB765291","perms":["pr"],"format":"uint32","value":1,"description":"Identifier","minValue":0,"minStep":1},{"iid":27,"type":"00000134-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"uint8","value":0,"description":"Target Visibility State","valid-values":[0,1],"maxValue":1,"minValue":0}],"primary":false,"hidden":false},{"iid":28,"type":"000000D9-0000-1000-8000-0026BB765291","characteristics":[{"iid":29,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"HDMI2","description":"Name"},{"iid":30,"type":"000000E3-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"string","value":"HDMI2","description":"Configured Name"},{"iid":31,"type":"000000DB-0000-1000-8000-0026BB765291","perms":["pr","ev"],"format":"uint8","value":3,"description":"Input Source Type","valid-values":[0,1,2,3,4,5,6,7,8,9,10],"maxValue":10,"minValue":0},{"iid":32,"type":"000000D6-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"uint8","value":1,"description":"Is Configured","valid-values":[0,1],"maxValue":1,"minValue":0},{"iid":33,"type":"00000135-0000-1000-8000-0026BB765291","perms":["pr","ev"],"format":"uint8","value":0,"description":"Current Visibility State","valid-values":[0,1,2,3],"maxValue":3,"minValue":0},{"iid":34,"type":"000000E6-0000-1000-8000-0026BB765291","perms":["pr"],"format":"uint32","value":2,"description":"Identifier","minValue":0,"minStep":1},{"iid":35,"type":"00000134-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"uint8","value":0,"description":"Target Visibility State","valid-values":[0,1],"maxValue":1,"minValue":0}],"primary":false,"hidden":false},{"iid":36,"type":"000000D9-0000-1000-8000-0026BB765291","characteristics":[{"iid":37,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"HDMI3","description":"Name"},{"iid":38,"type":"000000E3-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"string","value":"HDMI3","description":"Configured Name"},{"iid":39,"type":"000000DB-0000-1000-8000-0026BB765291","perms":["pr","ev"],"format":"uint8","value":3,"description":"Input Source Type","valid-values":[0,1,2,3,4,5,6,7,8,9,10],"maxValue":10,"minValue":0},{"iid":40,"type":"000000D6-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"uint8","value":1,"description":"Is Configured","valid-values":[0,1],"maxValue":1,"minValue":0},{"iid":41,"type":"00000135-0000-1000-8000-0026BB765291","perms":["pr","ev"],"format":"uint8","value":0,"description":"Current Visibility State","valid-values":[0,1,2,3],"maxValue":3,"minValue":0},{"iid":42,"type":"000000E6-0000-1000-8000-0026BB765291","perms":["pr"],"format":"uint32","value":3,"description":"Identifier","minValue":0,"minStep":1},{"iid":43,"type":"00000134-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"uint8","value":0,"description":"Target Visibility State","valid-values":[0,1],"maxValue":1,"minValue":0}],"primary":false,"hidden":false},{"iid":44,"type":"000000D9-0000-1000-8000-0026BB765291","characteristics":[{"iid":45,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Netflix","description":"Name"},{"iid":46,"type":"000000E3-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"string","value":"Netflix","description":"Configured Name"},{"iid":47,"type":"000000DB-0000-1000-8000-0026BB765291","perms":["pr","ev"],"format":"uint8","value":10,"description":"Input Source Type","valid-values":[0,1,2,3,4,5,6,7,8,9,10],"maxValue":10,"minValue":0},{"iid":48,"type":"000000D6-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"uint8","value":1,"description":"Is Configured","valid-values":[0,1],"maxValue":1,"minValue":0},{"iid":49,"type":"00000135-0000-1000-8000-0026BB765291","perms":["pr","ev"],"format":"uint8","value":0,"description":"Current Visibility State","valid-values":[0,1,2,3],"maxValue":3,"minValue":0},{"iid":50,"type":"000000E6-0000-1000-8000-0026BB765291","perms":["pr"],"format":"uint32","value":5,"description":"Identifier","minValue":0,"minStep":1},{"iid":51,"type":"00000134-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"uint8","value":0,"description":"Target Visibility State","valid-values":[0,1],"maxValue":1,"minValue":0}],"primary":false,"hidden":false},{"iid":52,"type":"00000113-0000-1000-8000-0026BB765291","characteristics":[{"iid":53,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"tv2_speaker","description":"Name"},{"iid":54,"type":"0000011A-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"bool","value":false,"description":"Mute"},{"iid":55,"type":"000000B0-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"uint8","value":1,"description":"Active","valid-values":[0,1],"maxValue":1,"minValue":0},{"iid":56,"type":"00000119-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"uint8","value":10,"description":"Volume","unit":"percentage","maxValue":100,"minValue":0,"minStep":1},{"iid":57,"type":"000000E9-0000-1000-8000-0026BB765291","perms":["pr","ev"],"format":"uint8","value":3,"description":"Volume Control Type","valid-values":[0,1,2,3],"maxValue":3,"minValue":0},{"iid":58,"type":"000000EA-0000-1000-8000-0026BB765291","perms":["pw"],"format":"uint8","description":"Volume Selector","valid-values":[0,1],"maxValue":1,"minValue":0}],"primary":false,"hidden":false}]},{"aid":86,"services":[{"iid":1,"type":"0000003E-0000-1000-8000-0026BB765291","characteristics":[{"iid":2,"type":"00000014-0000-1000-8000-0026BB765291","perms":["pw"],"format":"bool","description":"Identify"},{"iid":3,"type":"00000020-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Indigo","description":"Manufacturer"},{"iid":4,"type":"00000021-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"KeypadLinc Dimmer","description":"Model"},{"iid":5,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Corredor 1","description":"Name"},{"iid":6,"type":"00000030-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"91798740","description":"Serial Number"},{"iid":7,"type":"00000052-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"54","description":"Firmware Revision"}],"primary":false,"hidden":false},{"iid":8,"type":"00000043-0000-1000-8000-0026BB765291","characteristics":[{"iid":9,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Corredor 1","description":"Name"},{"iid":10,"type":"00000025-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"bool","value":false,"description":"On"},{"iid":11,"type":"00000008-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"int","value":0,"description":"Brightness","unit":"percentage","maxValue":100,"minValue":0,"minStep":1}],"primary":false,"hidden":false}]},{"aid":87,"services":[{"iid":1,"type":"0000003E-0000-1000-8000-0026BB765291","characteristics":[{"iid":2,"type":"00000014-0000-1000-8000-0026BB765291","perms":["pw"],"format":"bool","description":"Identify"},{"iid":3,"type":"00000020-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Indigo","description":"Manufacturer"},{"iid":4,"type":"00000021-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"In-LineLinc Dimmer","description":"Model"},{"iid":5,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Corredor 2","description":"Name"},{"iid":6,"type":"00000030-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"127295890","description":"Serial Number"},{"iid":7,"type":"00000052-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"56","description":"Firmware Revision"}],"primary":false,"hidden":false},{"iid":8,"type":"00000043-0000-1000-8000-0026BB765291","characteristics":[{"iid":9,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Corredor 2","description":"Name"},{"iid":10,"type":"00000025-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"bool","value":false,"description":"On"},{"iid":11,"type":"00000008-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"int","value":0,"description":"Brightness","unit":"percentage","maxValue":100,"minValue":0,"minStep":1}],"primary":false,"hidden":false}]},{"aid":88,"services":[{"iid":1,"type":"0000003E-0000-1000-8000-0026BB765291","characteristics":[{"iid":2,"type":"00000014-0000-1000-8000-0026BB765291","perms":["pw"],"format":"bool","description":"Identify"},{"iid":3,"type":"00000020-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Indigo","description":"Manufacturer"},{"iid":4,"type":"00000021-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"In-LineLinc Relay with Sense","description":"Model"},{"iid":5,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Cozinha 1","description":"Name"},{"iid":6,"type":"00000030-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"889646481","description":"Serial Number"},{"iid":7,"type":"00000052-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"56","description":"Firmware Revision"}],"primary":false,"hidden":false},{"iid":8,"type":"00000043-0000-1000-8000-0026BB765291","characteristics":[{"iid":9,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Cozinha 1","description":"Name"},{"iid":10,"type":"00000025-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"bool","value":false,"description":"On"}],"primary":false,"hidden":false}]},{"aid":89,"services":[{"iid":1,"type":"0000003E-0000-1000-8000-0026BB765291","characteristics":[{"iid":2,"type":"00000014-0000-1000-8000-0026BB765291","perms":["pw"],"format":"bool","description":"Identify"},{"iid":3,"type":"00000020-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Indigo","description":"Manufacturer"},{"iid":4,"type":"00000021-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"SwitchLinc Relay","description":"Model"},{"iid":5,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Cozinha 2","description":"Name"},{"iid":6,"type":"00000030-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"1040325536","description":"Serial Number"},{"iid":7,"type":"00000052-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"65","description":"Firmware Revision"}],"primary":false,"hidden":false},{"iid":8,"type":"00000043-0000-1000-8000-0026BB765291","characteristics":[{"iid":9,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Cozinha 2","description":"Name"},{"iid":10,"type":"00000025-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"bool","value":false,"description":"On"}],"primary":false,"hidden":false}]},{"aid":90,"services":[{"iid":1,"type":"0000003E-0000-1000-8000-0026BB765291","characteristics":[{"iid":2,"type":"00000014-0000-1000-8000-0026BB765291","perms":["pw"],"format":"bool","description":"Identify"},{"iid":3,"type":"00000020-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Indigo","description":"Manufacturer"},{"iid":4,"type":"00000021-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"KeypadLinc Dimmer","description":"Model"},{"iid":5,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Crianças 1","description":"Name"},{"iid":6,"type":"00000030-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"1258385856","description":"Serial Number"},{"iid":7,"type":"00000052-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"54","description":"Firmware Revision"}],"primary":false,"hidden":false},{"iid":8,"type":"00000043-0000-1000-8000-0026BB765291","characteristics":[{"iid":9,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Crianças 1","description":"Name"},{"iid":10,"type":"00000025-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"bool","value":false,"description":"On"},{"iid":11,"type":"00000008-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"int","value":0,"description":"Brightness","unit":"percentage","maxValue":100,"minValue":0,"minStep":1}],"primary":false,"hidden":false}]},{"aid":75,"services":[{"iid":1,"type":"0000003E-0000-1000-8000-0026BB765291","characteristics":[{"iid":2,"type":"00000014-0000-1000-8000-0026BB765291","perms":["pw"],"format":"bool","description":"Identify"},{"iid":3,"type":"00000020-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Indigo","description":"Manufacturer"},{"iid":4,"type":"00000021-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"In-LineLinc Dimmer","description":"Model"},{"iid":5,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Escritório 1","description":"Name"},{"iid":6,"type":"00000030-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"1513923450","description":"Serial Number"},{"iid":7,"type":"00000052-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"56","description":"Firmware Revision"}],"primary":false,"hidden":false},{"iid":8,"type":"00000043-0000-1000-8000-0026BB765291","characteristics":[{"iid":9,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Escritório 1","description":"Name"},{"iid":10,"type":"00000025-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"bool","value":false,"description":"On"},{"iid":11,"type":"00000008-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"int","value":0,"description":"Brightness","unit":"percentage","maxValue":100,"minValue":0,"minStep":1}],"primary":false,"hidden":false}]},{"aid":76,"services":[{"iid":1,"type":"0000003E-0000-1000-8000-0026BB765291","characteristics":[{"iid":2,"type":"00000014-0000-1000-8000-0026BB765291","perms":["pw"],"format":"bool","description":"Identify"},{"iid":3,"type":"00000020-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Indigo","description":"Manufacturer"},{"iid":4,"type":"00000021-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"In-LineLinc Dimmer","description":"Model"},{"iid":5,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Escritório 2","description":"Name"},{"iid":6,"type":"00000030-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"1766142507","description":"Serial Number"},{"iid":7,"type":"00000052-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"56","description":"Firmware Revision"}],"primary":false,"hidden":false},{"iid":8,"type":"00000043-0000-1000-8000-0026BB765291","characteristics":[{"iid":9,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Escritório 2","description":"Name"},{"iid":10,"type":"00000025-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"bool","value":false,"description":"On"},{"iid":11,"type":"00000008-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"int","value":0,"description":"Brightness","unit":"percentage","maxValue":100,"minValue":0,"minStep":1}],"primary":false,"hidden":false}]},{"aid":77,"services":[{"iid":1,"type":"0000003E-0000-1000-8000-0026BB765291","characteristics":[{"iid":2,"type":"00000014-0000-1000-8000-0026BB765291","perms":["pw"],"format":"bool","description":"Identify"},{"iid":3,"type":"00000020-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Indigo","description":"Manufacturer"},{"iid":4,"type":"00000021-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"In-LineLinc Dimmer","description":"Model"},{"iid":5,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Escritório 3","description":"Name"},{"iid":6,"type":"00000030-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"1729302575","description":"Serial Number"},{"iid":7,"type":"00000052-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"56","description":"Firmware Revision"}],"primary":false,"hidden":false},{"iid":8,"type":"00000043-0000-1000-8000-0026BB765291","characteristics":[{"iid":9,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Escritório 3","description":"Name"},{"iid":10,"type":"00000025-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"bool","value":false,"description":"On"},{"iid":11,"type":"00000008-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"int","value":0,"description":"Brightness","unit":"percentage","maxValue":100,"minValue":0,"minStep":1}],"primary":false,"hidden":false}]},{"aid":78,"services":[{"iid":1,"type":"0000003E-0000-1000-8000-0026BB765291","characteristics":[{"iid":2,"type":"00000014-0000-1000-8000-0026BB765291","perms":["pw"],"format":"bool","description":"Identify"},{"iid":3,"type":"00000020-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Indigo","description":"Manufacturer"},{"iid":4,"type":"00000021-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"In-LineLinc Dimmer","description":"Model"},{"iid":5,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Escritório 4","description":"Name"},{"iid":6,"type":"00000030-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"1219427944","description":"Serial Number"},{"iid":7,"type":"00000052-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"56","description":"Firmware Revision"}],"primary":false,"hidden":false},{"iid":8,"type":"00000043-0000-1000-8000-0026BB765291","characteristics":[{"iid":9,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Escritório 4","description":"Name"},{"iid":10,"type":"00000025-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"bool","value":false,"description":"On"},{"iid":11,"type":"00000008-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"int","value":0,"description":"Brightness","unit":"percentage","maxValue":100,"minValue":0,"minStep":1}],"primary":false,"hidden":false}]},{"aid":91,"services":[{"iid":1,"type":"0000003E-0000-1000-8000-0026BB765291","characteristics":[{"iid":2,"type":"00000014-0000-1000-8000-0026BB765291","perms":["pw"],"format":"bool","description":"Identify"},{"iid":3,"type":"00000020-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Indigo","description":"Manufacturer"},{"iid":4,"type":"00000021-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"KeypadLinc Dimmer","description":"Model"},{"iid":5,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Quarto 1","description":"Name"},{"iid":6,"type":"00000030-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"997257091","description":"Serial Number"},{"iid":7,"type":"00000052-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"54","description":"Firmware Revision"}],"primary":false,"hidden":false},{"iid":8,"type":"00000043-0000-1000-8000-0026BB765291","characteristics":[{"iid":9,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Quarto 1","description":"Name"},{"iid":10,"type":"00000025-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"bool","value":false,"description":"On"},{"iid":11,"type":"00000008-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"int","value":0,"description":"Brightness","unit":"percentage","maxValue":100,"minValue":0,"minStep":1}],"primary":false,"hidden":false}]},{"aid":92,"services":[{"iid":1,"type":"0000003E-0000-1000-8000-0026BB765291","characteristics":[{"iid":2,"type":"00000014-0000-1000-8000-0026BB765291","perms":["pw"],"format":"bool","description":"Identify"},{"iid":3,"type":"00000020-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Indigo","description":"Manufacturer"},{"iid":4,"type":"00000021-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"LampLinc","description":"Model"},{"iid":5,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Quarto 2","description":"Name"},{"iid":6,"type":"00000030-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"398093587","description":"Serial Number"},{"iid":7,"type":"00000052-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"58","description":"Firmware Revision"}],"primary":false,"hidden":false},{"iid":8,"type":"00000043-0000-1000-8000-0026BB765291","characteristics":[{"iid":9,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Quarto 2","description":"Name"},{"iid":10,"type":"00000025-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"bool","value":false,"description":"On"},{"iid":11,"type":"00000008-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"int","value":0,"description":"Brightness","unit":"percentage","maxValue":100,"minValue":0,"minStep":1}],"primary":false,"hidden":false}]},{"aid":94,"services":[{"iid":1,"type":"0000003E-0000-1000-8000-0026BB765291","characteristics":[{"iid":2,"type":"00000014-0000-1000-8000-0026BB765291","perms":["pw"],"format":"bool","description":"Identify"},{"iid":3,"type":"00000020-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Indigo","description":"Manufacturer"},{"iid":4,"type":"00000021-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"KeypadLinc Dimmer (2334-232)","description":"Model"},{"iid":5,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Quarto 3","description":"Name"},{"iid":6,"type":"00000030-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"440765069","description":"Serial Number"},{"iid":7,"type":"00000052-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"69","description":"Firmware Revision"}],"primary":false,"hidden":false},{"iid":8,"type":"00000043-0000-1000-8000-0026BB765291","characteristics":[{"iid":9,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Quarto 3","description":"Name"},{"iid":10,"type":"00000025-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"bool","value":false,"description":"On"},{"iid":11,"type":"00000008-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"int","value":0,"description":"Brightness","unit":"percentage","maxValue":100,"minValue":0,"minStep":1}],"primary":false,"hidden":false}]},{"aid":79,"services":[{"iid":1,"type":"0000003E-0000-1000-8000-0026BB765291","characteristics":[{"iid":2,"type":"00000014-0000-1000-8000-0026BB765291","perms":["pw"],"format":"bool","description":"Identify"},{"iid":3,"type":"00000020-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Indigo","description":"Manufacturer"},{"iid":4,"type":"00000021-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"In-LineLinc Dimmer","description":"Model"},{"iid":5,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Sala 1","description":"Name"},{"iid":6,"type":"00000030-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"367714656","description":"Serial Number"},{"iid":7,"type":"00000052-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"56","description":"Firmware Revision"}],"primary":false,"hidden":false},{"iid":8,"type":"00000043-0000-1000-8000-0026BB765291","characteristics":[{"iid":9,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Sala 1","description":"Name"},{"iid":10,"type":"00000025-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"bool","value":false,"description":"On"},{"iid":11,"type":"00000008-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"int","value":0,"description":"Brightness","unit":"percentage","maxValue":100,"minValue":0,"minStep":1}],"primary":false,"hidden":false}]},{"aid":80,"services":[{"iid":1,"type":"0000003E-0000-1000-8000-0026BB765291","characteristics":[{"iid":2,"type":"00000014-0000-1000-8000-0026BB765291","perms":["pw"],"format":"bool","description":"Identify"},{"iid":3,"type":"00000020-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Indigo","description":"Manufacturer"},{"iid":4,"type":"00000021-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"In-LineLinc Dimmer","description":"Model"},{"iid":5,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Sala 2","description":"Name"},{"iid":6,"type":"00000030-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"1410634096","description":"Serial Number"},{"iid":7,"type":"00000052-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"56","description":"Firmware Revision"}],"primary":false,"hidden":false},{"iid":8,"type":"00000043-0000-1000-8000-0026BB765291","characteristics":[{"iid":9,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Sala 2","description":"Name"},{"iid":10,"type":"00000025-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"bool","value":true,"description":"On"},{"iid":11,"type":"00000008-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"int","value":0,"description":"Brightness","unit":"percentage","maxValue":100,"minValue":0,"minStep":1}],"primary":false,"hidden":false}]},{"aid":81,"services":[{"iid":1,"type":"0000003E-0000-1000-8000-0026BB765291","characteristics":[{"iid":2,"type":"00000014-0000-1000-8000-0026BB765291","perms":["pw"],"format":"bool","description":"Identify"},{"iid":3,"type":"00000020-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Indigo","description":"Manufacturer"},{"iid":4,"type":"00000021-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"In-LineLinc Dimmer","description":"Model"},{"iid":5,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Sala 3","description":"Name"},{"iid":6,"type":"00000030-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"1695221242","description":"Serial Number"},{"iid":7,"type":"00000052-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"56","description":"Firmware Revision"}],"primary":false,"hidden":false},{"iid":8,"type":"00000043-0000-1000-8000-0026BB765291","characteristics":[{"iid":9,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Sala 3","description":"Name"},{"iid":10,"type":"00000025-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"bool","value":false,"description":"On"},{"iid":11,"type":"00000008-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"int","value":0,"description":"Brightness","unit":"percentage","maxValue":100,"minValue":0,"minStep":1}],"primary":false,"hidden":false}]},{"aid":82,"services":[{"iid":1,"type":"0000003E-0000-1000-8000-0026BB765291","characteristics":[{"iid":2,"type":"00000014-0000-1000-8000-0026BB765291","perms":["pw"],"format":"bool","description":"Identify"},{"iid":3,"type":"00000020-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Indigo","description":"Manufacturer"},{"iid":4,"type":"00000021-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"In-LineLinc Relay with Sense","description":"Model"},{"iid":5,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Sala 4","description":"Name"},{"iid":6,"type":"00000030-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"1435197068","description":"Serial Number"},{"iid":7,"type":"00000052-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"56","description":"Firmware Revision"}],"primary":false,"hidden":false},{"iid":8,"type":"00000043-0000-1000-8000-0026BB765291","characteristics":[{"iid":9,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Sala 4","description":"Name"},{"iid":10,"type":"00000025-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"bool","value":false,"description":"On"}],"primary":false,"hidden":false}]},{"aid":83,"services":[{"iid":1,"type":"0000003E-0000-1000-8000-0026BB765291","characteristics":[{"iid":2,"type":"00000014-0000-1000-8000-0026BB765291","perms":["pw"],"format":"bool","description":"Identify"},{"iid":3,"type":"00000020-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Indigo","description":"Manufacturer"},{"iid":4,"type":"00000021-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"In-LineLinc Dimmer","description":"Model"},{"iid":5,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Sala 5","description":"Name"},{"iid":6,"type":"00000030-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"1171706780","description":"Serial Number"},{"iid":7,"type":"00000052-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"56","description":"Firmware Revision"}],"primary":false,"hidden":false},{"iid":8,"type":"00000043-0000-1000-8000-0026BB765291","characteristics":[{"iid":9,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Sala 5","description":"Name"},{"iid":10,"type":"00000025-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"bool","value":true,"description":"On"},{"iid":11,"type":"00000008-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"int","value":0,"description":"Brightness","unit":"percentage","maxValue":100,"minValue":0,"minStep":1}],"primary":false,"hidden":false}]},{"aid":84,"services":[{"iid":1,"type":"0000003E-0000-1000-8000-0026BB765291","characteristics":[{"iid":2,"type":"00000014-0000-1000-8000-0026BB765291","perms":["pw"],"format":"bool","description":"Identify"},{"iid":3,"type":"00000020-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Indigo","description":"Manufacturer"},{"iid":4,"type":"00000021-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"In-LineLinc Dimmer","description":"Model"},{"iid":5,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Sala 6","description":"Name"},{"iid":6,"type":"00000030-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"509140042","description":"Serial Number"},{"iid":7,"type":"00000052-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"56","description":"Firmware Revision"}],"primary":false,"hidden":false},{"iid":8,"type":"00000043-0000-1000-8000-0026BB765291","characteristics":[{"iid":9,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Sala 6","description":"Name"},{"iid":10,"type":"00000025-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"bool","value":false,"description":"On"},{"iid":11,"type":"00000008-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"int","value":0,"description":"Brightness","unit":"percentage","maxValue":100,"minValue":0,"minStep":1}],"primary":false,"hidden":false}]},{"aid":85,"services":[{"iid":1,"type":"0000003E-0000-1000-8000-0026BB765291","characteristics":[{"iid":2,"type":"00000014-0000-1000-8000-0026BB765291","perms":["pw"],"format":"bool","description":"Identify"},{"iid":3,"type":"00000020-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Indigo","description":"Manufacturer"},{"iid":4,"type":"00000021-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"SwitchLinc Dimmer (dual-band)","description":"Model"},{"iid":5,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Sala 7","description":"Name"},{"iid":6,"type":"00000030-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"639244835","description":"Serial Number"},{"iid":7,"type":"00000052-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"64","description":"Firmware Revision"}],"primary":false,"hidden":false},{"iid":8,"type":"00000043-0000-1000-8000-0026BB765291","characteristics":[{"iid":9,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Sala 7","description":"Name"},{"iid":10,"type":"00000025-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"bool","value":false,"description":"On"},{"iid":11,"type":"00000008-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"int","value":0,"description":"Brightness","unit":"percentage","maxValue":100,"minValue":0,"minStep":1}],"primary":false,"hidden":false}]},{"aid":93,"services":[{"iid":1,"type":"0000003E-0000-1000-8000-0026BB765291","characteristics":[{"iid":2,"type":"00000014-0000-1000-8000-0026BB765291","perms":["pw"],"format":"bool","description":"Identify"},{"iid":3,"type":"00000020-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Indigo","description":"Manufacturer"},{"iid":4,"type":"00000021-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"In-LineLinc Dimmer","description":"Model"},{"iid":5,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Terraço 1","description":"Name"},{"iid":6,"type":"00000030-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"540701415","description":"Serial Number"},{"iid":7,"type":"00000052-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"56","description":"Firmware Revision"}],"primary":false,"hidden":false},{"iid":8,"type":"00000043-0000-1000-8000-0026BB765291","characteristics":[{"iid":9,"type":"00000023-0000-1000-8000-0026BB765291","perms":["pr"],"format":"string","value":"Terraço 1","description":"Name"},{"iid":10,"type":"00000025-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"bool","value":false,"description":"On"},{"iid":11,"type":"00000008-0000-1000-8000-0026BB765291","perms":["pr","pw","ev"],"format":"int","value":0,"description":"Brightness","unit":"percentage","maxValue":100,"minValue":0,"minStep":1}],"primary":false,"hidden":false}]}]}`
NorthernMan54 commented 4 years ago

Give me about a day to look at this and get back to you

vcrosato commented 4 years ago

Sure, thanks in advance! 👍🏻😃

NorthernMan54 commented 4 years ago

I took a look and I need to do more development to support your devices. Give me a week or 2

vcrosato commented 4 years ago

Oh that’s really nice! Thank you! Really mean it!

NorthernMan54 commented 4 years ago

I'm ready for you to try again, can you update to the latest beta?

npm install -g NorthernMan54/inputController

One thing to keep in mind is that Alexa has issues with Netflix and won't allow you to select it. So in the code I have mapped any Netflix inputs to HDMI 9

Attached is the Alexa.discovery response for your setup, if you look down the list you can see your's TV's towards the end of the file.

issue#328.json.txt

vcrosato commented 4 years ago

Will update and test in the morning, and get back the results to you. Thank you.

vcrosato commented 4 years ago

Hi NorthenMan54, tried updating but it says I don't have permissions:

200-148-46-199:~ nexx$ sudo npm install -g NorthernMan54/inputController
npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t ssh://git@github.com/NorthernMan54/inputController.git
npm ERR! 
npm ERR! Permission denied (publickey).
npm ERR! fatal: Could not read from remote repository.
npm ERR! 
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR! 
npm ERR! exited with error code: 128

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/nexx/.npm/_logs/2020-05-16T15_55_13_911Z-debug.log

Here's complete log:

200-148-46-199:~ nexx$ cat  /Users/nexx/.npm/_logs/2020-05-16T15_55_13_911Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli   '/usr/local/Cellar/node/12.12.0/bin/node',
1 verbose cli   '/usr/local/bin/npm',
1 verbose cli   'install',
1 verbose cli   '-g',
1 verbose cli   'NorthernMan54/inputController'
1 verbose cli ]
2 info using npm@6.14.4
3 info using node@v12.12.0
4 verbose npm-session ff9b2ab0426dc0b0
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 silly fetchPackageMetaData error for github:NorthernMan54/inputController Error while executing:
7 silly fetchPackageMetaData /usr/bin/git ls-remote -h -t ssh://git@github.com/NorthernMan54/inputController.git
7 silly fetchPackageMetaData
7 silly fetchPackageMetaData Permission denied (publickey).
7 silly fetchPackageMetaData fatal: Could not read from remote repository.
7 silly fetchPackageMetaData
7 silly fetchPackageMetaData Please make sure you have the correct access rights
7 silly fetchPackageMetaData and the repository exists.
7 silly fetchPackageMetaData
7 silly fetchPackageMetaData exited with error code: 128
8 timing stage:rollbackFailedOptional Completed in 1ms
9 timing stage:runTopLevelLifecycles Completed in 2145ms
10 verbose stack Error: exited with error code: 128
10 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/pacote/lib/util/finished.js:12:19)
10 verbose stack     at ChildProcess.emit (events.js:210:5)
10 verbose stack     at maybeClose (internal/child_process.js:1021:16)
10 verbose stack     at Socket.<anonymous> (internal/child_process.js:430:11)
10 verbose stack     at Socket.emit (events.js:210:5)
10 verbose stack     at Pipe.<anonymous> (net.js:658:12)
11 verbose cwd /Users/nexx
12 verbose Darwin 16.7.0
13 verbose argv "/usr/local/Cellar/node/12.12.0/bin/node" "/usr/local/bin/npm" "install" "-g" "NorthernMan54/inputController"
14 verbose node v12.12.0
15 verbose npm  v6.14.4
16 error Error while executing:
16 error /usr/bin/git ls-remote -h -t ssh://git@github.com/NorthernMan54/inputController.git
16 error
16 error Permission denied (publickey).
16 error fatal: Could not read from remote repository.
16 error
16 error Please make sure you have the correct access rights
16 error and the repository exists.
16 error
16 error exited with error code: 128
17 verbose exit [ 1, true ]
NorthernMan54 commented 4 years ago

I'm an idiot, posted the wrong instructions

npm install -g github:NorthernMan54/homebridge-alexa#inputController

vcrosato commented 4 years ago

Hi, just did as per your instructions. Now nothing is working, including lights which were working through the cmd4. It keeps complaining with "HB Instance not found"

Here's the output of homebridge.log when I ask to turn a light on:

  mqttjs:client _checkPing :: checking ping... +1m
  mqttjs:client _checkPing :: ping response received. Clearing flag and sending `pingreq` +0ms
  mqttjs:client _sendPacket :: (mqttjs_8777fb2a) ::  start +0ms
  mqttjs:client sendPacket :: packet: { cmd: 'pingreq' } +1ms
  mqttjs:client sendPacket :: emitting `packetsend` +0ms
  mqttjs:client sendPacket :: writing to stream +0ms
  mqtt-packet:writeToStream generate called +1m
  mqtt-packet:writeToStream generate: packet.cmd: pingreq +0ms
  mqttjs:client sendPacket :: writeToStream result true +1ms
  mqttjs:client writable stream :: parsing buffer +170ms
  mqtt-packet:parser parse: current state: _parseHeader +1m
  mqtt-packet:parser _parseHeader: packet: Packet { cmd: 'pingresp', retain: false, qos: 0, dup: false, length: -1, topic: null, payload: null } +0ms
  mqtt-packet:parser parse: state complete. _stateCounter is now: 1 +1ms
  mqtt-packet:parser parse: packet.length: -1, buffer list length: 1 +0ms
  mqtt-packet:parser _parseVarByteNum +0ms
  mqtt-packet:parser _parseVarByteNum: result: { bytes: 1, value: 0 } +0ms
  mqtt-packet:parser _parseLength 0 +0ms
  mqtt-packet:parser parse: state complete. _stateCounter is now: 2 +1ms
  mqtt-packet:parser parse: packet.length: 0, buffer list length: 0 +0ms
  mqtt-packet:parser _parsePayload: payload BufferList {
  mqtt-packet:parser   _bufs: [],
  mqtt-packet:parser   length: 0,
  mqtt-packet:parser   _readableState: ReadableState {
  mqtt-packet:parser     objectMode: false,
  mqtt-packet:parser     highWaterMark: 16384,
  mqtt-packet:parser     buffer: BufferList { length: 0 },
  mqtt-packet:parser     length: 0,
  mqtt-packet:parser     pipes: null,
  mqtt-packet:parser     pipesCount: 0,
  mqtt-packet:parser     flowing: null,
  mqtt-packet:parser     ended: false,
  mqtt-packet:parser     endEmitted: false,
  mqtt-packet:parser     reading: false,
  mqtt-packet:parser     sync: true,
  mqtt-packet:parser     needReadable: false,
  mqtt-packet:parser     emittedReadable: false,
  mqtt-packet:parser     readableListening: false,
  mqtt-packet:parser     resumeScheduled: false,
  mqtt-packet:parser     destroyed: false,
  mqtt-packet:parser     defaultEncoding: 'utf8',
  mqtt-packet:parser     awaitDrain: 0,
  mqtt-packet:parser     readingMore: false,
  mqtt-packet:parser     decoder: null,
  mqtt-packet:parser     encoding: null
  mqtt-packet:parser   },
  mqtt-packet:parser   readable: true,
  mqtt-packet:parser   _events: [Object: null prototype] {
  mqtt-packet:parser     end: [Function: bound onceWrapper] { listener: [Function: onend] }
  mqtt-packet:parser   },
  mqtt-packet:parser   _eventsCount: 1,
  mqtt-packet:parser   _maxListeners: undefined,
  mqtt-packet:parser   _writableState: WritableState {
  mqtt-packet:parser     objectMode: false,
  mqtt-packet:parser     highWaterMark: 16384,
  mqtt-packet:parser     finalCalled: false,
  mqtt-packet:parser     needDrain: false,
  mqtt-packet:parser     ending: false,
  mqtt-packet:parser     ended: false,
  mqtt-packet:parser     finished: false,
  mqtt-packet:parser     destroyed: false,
  mqtt-packet:parser     decodeStrings: true,
  mqtt-packet:parser     defaultEncoding: 'utf8',
  mqtt-packet:parser     length: 0,
  mqtt-packet:parser     writing: false,
  mqtt-packet:parser     corked: 0,
  mqtt-packet:parser     sync: true,
  mqtt-packet:parser     bufferProcessing: false,
  mqtt-packet:parser     onwrite: [Function],
  mqtt-packet:parser     writecb: null,
  mqtt-packet:parser     writelen: 0,
  mqtt-packet:parser     bufferedRequest: null,
  mqtt-packet:parser     lastBufferedRequest: null,
  mqtt-packet:parser     pendingcb: 0,
  mqtt-packet:parser     prefinished: false,
  mqtt-packet:parser     errorEmitted: false,
  mqtt-packet:parser     bufferedRequestCount: 0,
  mqtt-packet:parser     corkedRequestsFree: CorkedRequest { next: null, entry: null, finish: [Function] }
  mqtt-packet:parser   },
  mqtt-packet:parser   writable: true,
  mqtt-packet:parser   allowHalfOpen: true
  mqtt-packet:parser } +0ms
  mqtt-packet:parser _parsePayload complete result: true +1ms
  mqtt-packet:parser parse: state complete. _stateCounter is now: 3 +0ms
  mqtt-packet:parser parse: packet.length: 0, buffer list length: 0 +0ms
  mqtt-packet:parser _newPacket +1ms
  mqtt-packet:parser _newPacket: parser emit packet: packet.cmd: pingresp, packet.payload: null, packet.length: 0 +0ms
  mqttjs:client parser :: on packet push to packets array. +4ms
  mqtt-packet:parser _newPacket: new packet +0ms
  mqtt-packet:parser parse: state complete. _stateCounter is now: 4 +0ms
  mqtt-packet:parser parse: packet.length: -1, buffer list length: 0 +0ms
  mqtt-packet:parser parse: exited while loop. packet: -1, buffer list length: 0 +0ms
  mqttjs:client work :: getting next packet in queue +0ms
  mqttjs:client work :: packet pulled from queue +0ms
  mqttjs:client _handlePacket :: emitting packetreceive +0ms
  mqttjs:client writable stream :: parsing buffer +7s
  mqtt-packet:parser parse: current state: _parseHeader +7s
  mqtt-packet:parser _parseHeader: packet: Packet { cmd: 'publish', retain: false, qos: 0, dup: false, length: -1, topic: null, payload: null } +0ms
  mqtt-packet:parser parse: state complete. _stateCounter is now: 1 +1ms
  mqtt-packet:parser parse: packet.length: -1, buffer list length: 1690 +0ms
  mqtt-packet:parser _parseVarByteNum +0ms
  mqtt-packet:parser _parseVarByteNum: result: { bytes: 2, value: 1688 } +0ms
  mqtt-packet:parser _parseLength 1688 +0ms
  mqtt-packet:parser parse: state complete. _stateCounter is now: 2 +1ms
  mqtt-packet:parser parse: packet.length: 1688, buffer list length: 1688 +0ms
  mqtt-packet:parser _parsePayload: payload BufferList {
  mqtt-packet:parser   _bufs: [
  mqtt-packet:parser     <Buffer 00 0e 63 6f 6d 6d 61 6e 64 2f 6e 65 78 78 2f 31 7b 22 64 69 72 65 63 74 69 76 65 22 3a 7b 22 68 65 61 64 65 72 22 3a 7b 22 6e 61 6d 65 73 70 61 63 65 ... 1638 more bytes>
  mqtt-packet:parser   ],
  mqtt-packet:parser   length: 1688,
  mqtt-packet:parser   _readableState: ReadableState {
  mqtt-packet:parser     objectMode: false,
  mqtt-packet:parser     highWaterMark: 16384,
  mqtt-packet:parser     buffer: BufferList { length: 0 },
  mqtt-packet:parser     length: 0,
  mqtt-packet:parser     pipes: null,
  mqtt-packet:parser     pipesCount: 0,
  mqtt-packet:parser     flowing: null,
  mqtt-packet:parser     ended: false,
  mqtt-packet:parser     endEmitted: false,
  mqtt-packet:parser     reading: false,
  mqtt-packet:parser     sync: true,
  mqtt-packet:parser     needReadable: false,
  mqtt-packet:parser     emittedReadable: false,
  mqtt-packet:parser     readableListening: false,
  mqtt-packet:parser     resumeScheduled: false,
  mqtt-packet:parser     destroyed: false,
  mqtt-packet:parser     defaultEncoding: 'utf8',
  mqtt-packet:parser     awaitDrain: 0,
  mqtt-packet:parser     readingMore: false,
  mqtt-packet:parser     decoder: null,
  mqtt-packet:parser     encoding: null
  mqtt-packet:parser   },
  mqtt-packet:parser   readable: true,
  mqtt-packet:parser   _events: [Object: null prototype] {
  mqtt-packet:parser     end: [Function: bound onceWrapper] { listener: [Function: onend] }
  mqtt-packet:parser   },
  mqtt-packet:parser   _eventsCount: 1,
  mqtt-packet:parser   _maxListeners: undefined,
  mqtt-packet:parser   _writableState: WritableState {
  mqtt-packet:parser     objectMode: false,
  mqtt-packet:parser     highWaterMark: 16384,
  mqtt-packet:parser     finalCalled: false,
  mqtt-packet:parser     needDrain: false,
  mqtt-packet:parser     ending: false,
  mqtt-packet:parser     ended: false,
  mqtt-packet:parser     finished: false,
  mqtt-packet:parser     destroyed: false,
  mqtt-packet:parser     decodeStrings: true,
  mqtt-packet:parser     defaultEncoding: 'utf8',
  mqtt-packet:parser     length: 0,
  mqtt-packet:parser     writing: false,
  mqtt-packet:parser     corked: 0,
  mqtt-packet:parser     sync: true,
  mqtt-packet:parser     bufferProcessing: false,
  mqtt-packet:parser     onwrite: [Function],
  mqtt-packet:parser     writecb: null,
  mqtt-packet:parser     writelen: 0,
  mqtt-packet:parser     bufferedRequest: null,
  mqtt-packet:parser     lastBufferedRequest: null,
  mqtt-packet:parser     pendingcb: 0,
  mqtt-packet:parser     prefinished: false,
  mqtt-packet:parser     errorEmitted: false,
  mqtt-packet:parser     bufferedRequestCount: 0,
  mqtt-packet:parser     corkedRequestsFree: CorkedRequest { next: null, entry: null, finish: [Function] }
  mqtt-packet:parser   },
  mqtt-packet:parser   writable: true,
  mqtt-packet:parser   allowHalfOpen: true
  mqtt-packet:parser } +0ms
  mqtt-packet:parser _parsePublish +2ms
  mqtt-packet:parser _parseNum: result: 14 +0ms
  mqtt-packet:parser _parseString: result: command/nexx/1 +0ms
  mqtt-packet:parser _parsePublish: payload from buffer list: <Buffer 7b 22 64 69 72 65 63 74 69 76 65 22 3a 7b 22 68 65 61 64 65 72 22 3a 7b 22 6e 61 6d 65 73 70 61 63 65 22 3a 22 41 6c 65 78 61 2e 50 6f 77 65 72 43 6f ... 1622 more bytes> +0ms
  mqtt-packet:parser _parsePayload complete result: true +0ms
  mqtt-packet:parser parse: state complete. _stateCounter is now: 3 +0ms
  mqtt-packet:parser parse: packet.length: 1688, buffer list length: 1688 +0ms
  mqtt-packet:parser _newPacket +0ms
  mqtt-packet:parser _newPacket: parser emit packet: packet.cmd: publish, packet.payload: {"directive":{"header":{"namespace":"Alexa.PowerController","name":"TurnOn","payloadVersion":"3","messageId":"2718b373-459e-498c-8e06-1b2fc1d1bc5e","correlationToken":"AAAAAAAAAABsSuxPy8sz4egddPO5AVY+/AEAAAAAAAABxCmEpkwoBQWTSzuXrp2sXG4/t5mCMbHg2l8CS7cAV/2PPPPMTwYywvD6EBzIj1EKeZvIRu0Wr/cV5RZRuACm2b/grCkLtt92VpPfV8v8sZt8eBPMaw7/Ck1uEuWo6eqBYcdyGORux78H3IXQiEm0wShrxDr75/Cl+9C4WKN9+OKJy/8f1eH/sHbuO6qgBlhlakO6ekVddrKhbvhO3KbhlG50QxGoizMeqtz7VeIn8zd5BxIVGFyjn4QHrj1S9QuaPxKlemIfj2bO3Osh9aRLe7GMZkMXAF2tg+07SidgffuM3xIsGwEEDvde0l08JsD/jL+PGyhkDTGyvb4AFCQgPLEygDtaZ8w0drd4scYAW1W/ojchshJvHctvSbURhUYxQC5PtgxlrvxyzcLSZzdk1g8z7ppbqMSLmhF5HztKy8kuL8m5LnE0hTrhGq4oQ5FdKCt+5AzIWy+t7lNUSYe7f2kdmjHibVHq8P5MuEa9WTTNqHuTxFfwjl+z62xkMUHXLlV8+z7lbJv2BdSymZ07l7LaYtWmQRFW+R8Ws7eC3w2IKqXAVBMOGI/MGWgCCM4lBSTrQk8Bv+zfs1PDhzt9YHXeIAOqP/2mxDxke3mOWx2OBgFBZRPJEwiKMJLnYZ0urXSFH5tS4PwOG0t94U9DC6eLiM2NNHGeWnvA"},"endpoint":{"endpointId":"Q0M6MjI6M0Q6RTM6Q0U6MzAtSG9tZWJyaWRnZS1JbmRpZ28tRXNjcml0w7NyaW8gMS0wMDAwMDA0My0wMDAwLTEwMDAtODAwMC0wMDI2QkI3NjUyOTE=","cookie":{"TurnOn":"{\"host\":\"192.168.0.100\",\"port\":51826,\"aid\":75,\"iid\":10,\"value\":1}","AdjustPowerLevel":"{\"host\":\"192.168.0.100\",\"port\":51826,\"aid\":75,\"iid\":11}","ReportState":"[{\"interface\":\"Alexa.PowerController\",\"host\":\"192.168.0.100\",\"port\":51826,\"aid\":75,\"iid\":10},{\"interface\":\"Alexa.PowerLevelController\",\"host\":\"192.168.0.100\",\"port\":51826,\"aid\":75,\"iid\":11}]","BrightnessTurnOn":"true","SetPowerLevel":"{\"host\":\"192.168.0.100\",\"port\":51826,\"aid\":75,\"iid\":11}","TurnOff":"{\"host\":\"192.168.0.100\",\"port\":51826,\"aid\":75,\"iid\":10,\"value\":0}"}},"payload":{}}}, packet.length: 1688 +0ms
  mqttjs:client parser :: on packet push to packets array. +5ms
  mqtt-packet:parser _newPacket: new packet +1ms
  mqtt-packet:parser parse: state complete. _stateCounter is now: 4 +0ms
  mqtt-packet:parser parse: packet.length: -1, buffer list length: 0 +0ms
  mqtt-packet:parser parse: exited while loop. packet: -1, buffer list length: 0 +0ms
  mqttjs:client work :: getting next packet in queue +0ms
  mqttjs:client work :: packet pulled from queue +0ms
  mqttjs:client _handlePacket :: emitting packetreceive +0ms
  mqttjs:client _handlePublish: packet Packet { cmd: 'publish', retain: false, qos: 0, dup: false, length: 1688, topic: 'command/nexx/1', payload: <Buffer 7b 22 64 69 72 65 63 74 69 76 65 22 3a 7b 22 68 65 61 64 65 72 22 3a 7b 22 6e 61 6d 65 73 70 61 63 65 22 3a 22 41 6c 65 78 61 2e 50 6f 77 65 72 43 6f ... 1622 more bytes> } +0ms
  mqttjs:client _handlePublish: qos 0 +1ms
  alexaLocal Emitting Alexa.PowerController +1m
  hapNodeJSClient HAP Device discovered Camera Name-FEAB +1m
  hapNodeJSClient HAP Device address Camera Name-FEAB ->  {
  host: '192.168.0.100',
  port: 49957,
  url: 'http://192.168.0.100:49957',
  deviceID: 'EA:C7:55:4B:9B:80',
  txt: {
    md: 'Camera Name',
    pv: '1.0',
    id: 'EA:C7:55:4B:9B:80',
    'c#': '2',
    's#': '1',
    ff: '0',
    ci: '17',
    sf: '1',
    sh: '8D7WDA=='
  }
} +0ms
  hapNodeJSClient HAP Device discovered Homebridge-CAD8 +536ms
  hapNodeJSClient HAP Device address Homebridge-CAD8 ->  {
  host: '192.168.0.100',
  port: 51826,
  url: 'http://192.168.0.100:51826',
  deviceID: 'CC:22:3D:E3:CE:30',
  txt: {
    md: 'Homebridge',
    pv: '1.0',
    id: 'CC:22:3D:E3:CE:30',
    'c#': '119',
    's#': '1',
    ff: '0',
    ci: '2',
    sf: '0',
    sh: '38MbiQ=='
  }
} +0ms
[5/17/2020, 12:35:51 PM] [Alexa] PowerController TurnOn undefined undefined Error: ERROR: HB Instance not found
    at /usr/local/lib/node_modules/homebridge-alexa/node_modules/hap-node-client/HAPNodeJSClient.js:127:18
    at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-alexa/node_modules/hap-node-client/HAPNodeJSClient.js:186:7)
    at listOnTimeout (internal/timers.js:531:17)
    at processTimers (internal/timers.js:475:7)
  mqttjs:client publish :: message `{"event":{"header":{"namespace":"Alexa","name":"ErrorResponse","messageId":"2718b373-459e-498c-8e06-1b2fc1d1bc5e","payloadVersion":"3"},"endpoint":{"endpointId":"Q0M6MjI6M0Q6RTM6Q0U6MzAtSG9tZWJyaWRnZS1JbmRpZ28tRXNjcml0w7NyaW8gMS0wMDAwMDA0My0wMDAwLTEwMDAtODAwMC0wMDI2QkI3NjUyOTE="},"payload":{"type":"ENDPOINT_UNREACHABLE","message":"ERROR: HB Instance not found"}}}` to topic `response/nexx/1` +4s
  mqttjs:client publish :: qos 0 +0ms
  mqttjs:client MqttClient:publish: packet cmd: publish +0ms
  mqttjs:client _sendPacket :: (mqttjs_8777fb2a) ::  start +0ms
  mqttjs:client sendPacket :: packet: {
  mqttjs:client   cmd: 'publish',
  mqttjs:client   topic: 'response/nexx/1',
  mqttjs:client   payload: '{"event":{"header":{"namespace":"Alexa","name":"ErrorResponse","messageId":"2718b373-459e-498c-8e06-1b2fc1d1bc5e","payloadVersion":"3"},"endpoint":{"endpointId":"Q0M6MjI6M0Q6RTM6Q0U6MzAtSG9tZWJyaWRnZS1JbmRpZ28tRXNjcml0w7NyaW8gMS0wMDAwMDA0My0wMDAwLTEwMDAtODAwMC0wMDI2QkI3NjUyOTE="},"payload":{"type":"ENDPOINT_UNREACHABLE","message":"ERROR: HB Instance not found"}}}',
  mqttjs:client   qos: 0,
  mqttjs:client   retain: false,
  mqttjs:client   messageId: 30785,
  mqttjs:client   dup: false
  mqttjs:client } +1ms
  mqttjs:client sendPacket :: emitting `packetsend` +0ms
  mqttjs:client sendPacket :: writing to stream +0ms
  mqtt-packet:writeToStream generate called +11s
  mqtt-packet:writeToStream generate: packet.cmd: publish +0ms
  mqtt-packet:writeToStream publish: packet: { cmd: 'publish', topic: 'response/nexx/1', payload: '{"event":{"header":{"namespace":"Alexa","name":"ErrorResponse","messageId":"2718b373-459e-498c-8e06-1b2fc1d1bc5e","payloadVersion":"3"},"endpoint":{"endpointId":"Q0M6MjI6M0Q6RTM6Q0U6MzAtSG9tZWJyaWRnZS1JbmRpZ28tRXNjcml0w7NyaW8gMS0wMDAwMDA0My0wMDAwLTEwMDAtODAwMC0wMDI2QkI3NjUyOTE="},"payload":{"type":"ENDPOINT_UNREACHABLE","message":"ERROR: HB Instance not found"}}}', qos: 0, retain: false, messageId: 30785, dup: false } +0ms
  mqtt-packet:writeToStream writeVarByteInt: writing to stream: <Buffer fe 02> +1ms
  mqtt-packet:writeToStream writeNumberCached: number: 15 +0ms
  mqtt-packet:writeToStream writeNumberCached: <Buffer 00 0f> +0ms
  mqtt-packet:writeToStream publish: payload: '{"event":{"header":{"namespace":"Alexa","name":"ErrorResponse","messageId":"2718b373-459e-498c-8e06-1b2fc1d1bc5e","payloadVersion":"3"},"endpoint":{"endpointId":"Q0M6MjI6M0Q6RTM6Q0U6MzAtSG9tZWJyaWRnZS1JbmRpZ28tRXNjcml0w7NyaW8gMS0wMDAwMDA0My0wMDAwLTEwMDAtODAwMC0wMDI2QkI3NjUyOTE="},"payload":{"type":"ENDPOINT_UNREACHABLE","message":"ERROR: HB Instance not found"}}}' +0ms
  mqttjs:client sendPacket :: writeToStream result true +1ms
  mqttjs:client _sendPacket :: (mqttjs_8777fb2a) ::  end +0ms

Let me know if you need another info.. I could change any config in order to help debugging.. Thanks

NorthernMan54 commented 4 years ago

Did you ask Alexa to discover devices again?

On May 17, 2020, at 11:40 AM, vcrosato notifications@github.com wrote:

 Hi, just did as per your instructions. Now nothing is working, including lights which were working through the cmd4. It keets complaining with HB "Instance not found"

Here's the output of homebridge.log when I ask to turn a light on:

mqttjs:client _checkPing :: checking ping... +1m mqttjs:client _checkPing :: ping response received. Clearing flag and sending pingreq +0ms mqttjs:client _sendPacket :: (mqttjs_8777fb2a) :: start +0ms mqttjs:client sendPacket :: packet: { cmd: 'pingreq' } +1ms mqttjs:client sendPacket :: emitting packetsend +0ms mqttjs:client sendPacket :: writing to stream +0ms mqtt-packet:writeToStream generate called +1m mqtt-packet:writeToStream generate: packet.cmd: pingreq +0ms mqttjs:client sendPacket :: writeToStream result true +1ms mqttjs:client writable stream :: parsing buffer +170ms mqtt-packet:parser parse: current state: _parseHeader +1m mqtt-packet:parser _parseHeader: packet: Packet { cmd: 'pingresp', retain: false, qos: 0, dup: false, length: -1, topic: null, payload: null } +0ms mqtt-packet:parser parse: state complete. _stateCounter is now: 1 +1ms mqtt-packet:parser parse: packet.length: -1, buffer list length: 1 +0ms mqtt-packet:parser _parseVarByteNum +0ms mqtt-packet:parser _parseVarByteNum: result: { bytes: 1, value: 0 } +0ms mqtt-packet:parser _parseLength 0 +0ms mqtt-packet:parser parse: state complete. _stateCounter is now: 2 +1ms mqtt-packet:parser parse: packet.length: 0, buffer list length: 0 +0ms mqtt-packet:parser _parsePayload: payload BufferList { mqtt-packet:parser _bufs: [], mqtt-packet:parser length: 0, mqtt-packet:parser _readableState: ReadableState { mqtt-packet:parser objectMode: false, mqtt-packet:parser highWaterMark: 16384, mqtt-packet:parser buffer: BufferList { length: 0 }, mqtt-packet:parser length: 0, mqtt-packet:parser pipes: null, mqtt-packet:parser pipesCount: 0, mqtt-packet:parser flowing: null, mqtt-packet:parser ended: false, mqtt-packet:parser endEmitted: false, mqtt-packet:parser reading: false, mqtt-packet:parser sync: true, mqtt-packet:parser needReadable: false, mqtt-packet:parser emittedReadable: false, mqtt-packet:parser readableListening: false, mqtt-packet:parser resumeScheduled: false, mqtt-packet:parser destroyed: false, mqtt-packet:parser defaultEncoding: 'utf8', mqtt-packet:parser awaitDrain: 0, mqtt-packet:parser readingMore: false, mqtt-packet:parser decoder: null, mqtt-packet:parser encoding: null mqtt-packet:parser }, mqtt-packet:parser readable: true, mqtt-packet:parser _events: [Object: null prototype] { mqtt-packet:parser end: [Function: bound onceWrapper] { listener: [Function: onend] } mqtt-packet:parser }, mqtt-packet:parser _eventsCount: 1, mqtt-packet:parser _maxListeners: undefined, mqtt-packet:parser _writableState: WritableState { mqtt-packet:parser objectMode: false, mqtt-packet:parser highWaterMark: 16384, mqtt-packet:parser finalCalled: false, mqtt-packet:parser needDrain: false, mqtt-packet:parser ending: false, mqtt-packet:parser ended: false, mqtt-packet:parser finished: false, mqtt-packet:parser destroyed: false, mqtt-packet:parser decodeStrings: true, mqtt-packet:parser defaultEncoding: 'utf8', mqtt-packet:parser length: 0, mqtt-packet:parser writing: false, mqtt-packet:parser corked: 0, mqtt-packet:parser sync: true, mqtt-packet:parser bufferProcessing: false, mqtt-packet:parser onwrite: [Function], mqtt-packet:parser writecb: null, mqtt-packet:parser writelen: 0, mqtt-packet:parser bufferedRequest: null, mqtt-packet:parser lastBufferedRequest: null, mqtt-packet:parser pendingcb: 0, mqtt-packet:parser prefinished: false, mqtt-packet:parser errorEmitted: false, mqtt-packet:parser bufferedRequestCount: 0, mqtt-packet:parser corkedRequestsFree: CorkedRequest { next: null, entry: null, finish: [Function] } mqtt-packet:parser }, mqtt-packet:parser writable: true, mqtt-packet:parser allowHalfOpen: true mqtt-packet:parser } +0ms mqtt-packet:parser _parsePayload complete result: true +1ms mqtt-packet:parser parse: state complete. _stateCounter is now: 3 +0ms mqtt-packet:parser parse: packet.length: 0, buffer list length: 0 +0ms mqtt-packet:parser _newPacket +1ms mqtt-packet:parser _newPacket: parser emit packet: packet.cmd: pingresp, packet.payload: null, packet.length: 0 +0ms mqttjs:client parser :: on packet push to packets array. +4ms mqtt-packet:parser _newPacket: new packet +0ms mqtt-packet:parser parse: state complete. _stateCounter is now: 4 +0ms mqtt-packet:parser parse: packet.length: -1, buffer list length: 0 +0ms mqtt-packet:parser parse: exited while loop. packet: -1, buffer list length: 0 +0ms mqttjs:client work :: getting next packet in queue +0ms mqttjs:client work :: packet pulled from queue +0ms mqttjs:client _handlePacket :: emitting packetreceive +0ms mqttjs:client writable stream :: parsing buffer +7s mqtt-packet:parser parse: current state: _parseHeader +7s mqtt-packet:parser _parseHeader: packet: Packet { cmd: 'publish', retain: false, qos: 0, dup: false, length: -1, topic: null, payload: null } +0ms mqtt-packet:parser parse: state complete. _stateCounter is now: 1 +1ms mqtt-packet:parser parse: packet.length: -1, buffer list length: 1690 +0ms mqtt-packet:parser _parseVarByteNum +0ms mqtt-packet:parser _parseVarByteNum: result: { bytes: 2, value: 1688 } +0ms mqtt-packet:parser _parseLength 1688 +0ms mqtt-packet:parser parse: state complete. _stateCounter is now: 2 +1ms mqtt-packet:parser parse: packet.length: 1688, buffer list length: 1688 +0ms mqtt-packet:parser _parsePayload: payload BufferList { mqtt-packet:parser _bufs: [ mqtt-packet:parser <Buffer 00 0e 63 6f 6d 6d 61 6e 64 2f 6e 65 78 78 2f 31 7b 22 64 69 72 65 63 74 69 76 65 22 3a 7b 22 68 65 61 64 65 72 22 3a 7b 22 6e 61 6d 65 73 70 61 63 65 ... 1638 more bytes> mqtt-packet:parser ], mqtt-packet:parser length: 1688, mqtt-packet:parser _readableState: ReadableState { mqtt-packet:parser objectMode: false, mqtt-packet:parser highWaterMark: 16384, mqtt-packet:parser buffer: BufferList { length: 0 }, mqtt-packet:parser length: 0, mqtt-packet:parser pipes: null, mqtt-packet:parser pipesCount: 0, mqtt-packet:parser flowing: null, mqtt-packet:parser ended: false, mqtt-packet:parser endEmitted: false, mqtt-packet:parser reading: false, mqtt-packet:parser sync: true, mqtt-packet:parser needReadable: false, mqtt-packet:parser emittedReadable: false, mqtt-packet:parser readableListening: false, mqtt-packet:parser resumeScheduled: false, mqtt-packet:parser destroyed: false, mqtt-packet:parser defaultEncoding: 'utf8', mqtt-packet:parser awaitDrain: 0, mqtt-packet:parser readingMore: false, mqtt-packet:parser decoder: null, mqtt-packet:parser encoding: null mqtt-packet:parser }, mqtt-packet:parser readable: true, mqtt-packet:parser _events: [Object: null prototype] { mqtt-packet:parser end: [Function: bound onceWrapper] { listener: [Function: onend] } mqtt-packet:parser }, mqtt-packet:parser _eventsCount: 1, mqtt-packet:parser _maxListeners: undefined, mqtt-packet:parser _writableState: WritableState { mqtt-packet:parser objectMode: false, mqtt-packet:parser highWaterMark: 16384, mqtt-packet:parser finalCalled: false, mqtt-packet:parser needDrain: false, mqtt-packet:parser ending: false, mqtt-packet:parser ended: false, mqtt-packet:parser finished: false, mqtt-packet:parser destroyed: false, mqtt-packet:parser decodeStrings: true, mqtt-packet:parser defaultEncoding: 'utf8', mqtt-packet:parser length: 0, mqtt-packet:parser writing: false, mqtt-packet:parser corked: 0, mqtt-packet:parser sync: true, mqtt-packet:parser bufferProcessing: false, mqtt-packet:parser onwrite: [Function], mqtt-packet:parser writecb: null, mqtt-packet:parser writelen: 0, mqtt-packet:parser bufferedRequest: null, mqtt-packet:parser lastBufferedRequest: null, mqtt-packet:parser pendingcb: 0, mqtt-packet:parser prefinished: false, mqtt-packet:parser errorEmitted: false, mqtt-packet:parser bufferedRequestCount: 0, mqtt-packet:parser corkedRequestsFree: CorkedRequest { next: null, entry: null, finish: [Function] } mqtt-packet:parser }, mqtt-packet:parser writable: true, mqtt-packet:parser allowHalfOpen: true mqtt-packet:parser } +0ms mqtt-packet:parser _parsePublish +2ms mqtt-packet:parser _parseNum: result: 14 +0ms mqtt-packet:parser _parseString: result: command/nexx/1 +0ms mqtt-packet:parser _parsePublish: payload from buffer list: <Buffer 7b 22 64 69 72 65 63 74 69 76 65 22 3a 7b 22 68 65 61 64 65 72 22 3a 7b 22 6e 61 6d 65 73 70 61 63 65 22 3a 22 41 6c 65 78 61 2e 50 6f 77 65 72 43 6f ... 1622 more bytes> +0ms mqtt-packet:parser _parsePayload complete result: true +0ms mqtt-packet:parser parse: state complete. _stateCounter is now: 3 +0ms mqtt-packet:parser parse: packet.length: 1688, buffer list length: 1688 +0ms mqtt-packet:parser _newPacket +0ms mqtt-packet:parser _newPacket: parser emit packet: packet.cmd: publish, packet.payload: {"directive":{"header":{"namespace":"Alexa.PowerController","name":"TurnOn","payloadVersion":"3","messageId":"2718b373-459e-498c-8e06-1b2fc1d1bc5e","correlationToken":"AAAAAAAAAABsSuxPy8sz4egddPO5AVY+/AEAAAAAAAABxCmEpkwoBQWTSzuXrp2sXG4/t5mCMbHg2l8CS7cAV/2PPPPMTwYywvD6EBzIj1EKeZvIRu0Wr/cV5RZRuACm2b/grCkLtt92VpPfV8v8sZt8eBPMaw7/Ck1uEuWo6eqBYcdyGORux78H3IXQiEm0wShrxDr75/Cl+9C4WKN9+OKJy/8f1eH/sHbuO6qgBlhlakO6ekVddrKhbvhO3KbhlG50QxGoizMeqtz7VeIn8zd5BxIVGFyjn4QHrj1S9QuaPxKlemIfj2bO3Osh9aRLe7GMZkMXAF2tg+07SidgffuM3xIsGwEEDvde0l08JsD/jL+PGyhkDTGyvb4AFCQgPLEygDtaZ8w0drd4scYAW1W/ojchshJvHctvSbURhUYxQC5PtgxlrvxyzcLSZzdk1g8z7ppbqMSLmhF5HztKy8kuL8m5LnE0hTrhGq4oQ5FdKCt+5AzIWy+t7lNUSYe7f2kdmjHibVHq8P5MuEa9WTTNqHuTxFfwjl+z62xkMUHXLlV8+z7lbJv2BdSymZ07l7LaYtWmQRFW+R8Ws7eC3w2IKqXAVBMOGI/MGWgCCM4lBSTrQk8Bv+zfs1PDhzt9YHXeIAOqP/2mxDxke3mOWx2OBgFBZRPJEwiKMJLnYZ0urXSFH5tS4PwOG0t94U9DC6eLiM2NNHGeWnvA"},"endpoint":{"endpointId":"Q0M6MjI6M0Q6RTM6Q0U6MzAtSG9tZWJyaWRnZS1JbmRpZ28tRXNjcml0w7NyaW8gMS0wMDAwMDA0My0wMDAwLTEwMDAtODAwMC0wMDI2QkI3NjUyOTE=","cookie":{"TurnOn":"{\"host\":\"192.168.0.100\",\"port\":51826,\"aid\":75,\"iid\":10,\"value\":1}","AdjustPowerLevel":"{\"host\":\"192.168.0.100\",\"port\":51826,\"aid\":75,\"iid\":11}","ReportState":"[{\"interface\":\"Alexa.PowerController\",\"host\":\"192.168.0.100\",\"port\":51826,\"aid\":75,\"iid\":10},{\"interface\":\"Alexa.PowerLevelController\",\"host\":\"192.168.0.100\",\"port\":51826,\"aid\":75,\"iid\":11}]","BrightnessTurnOn":"true","SetPowerLevel":"{\"host\":\"192.168.0.100\",\"port\":51826,\"aid\":75,\"iid\":11}","TurnOff":"{\"host\":\"192.168.0.100\",\"port\":51826,\"aid\":75,\"iid\":10,\"value\":0}"}},"payload":{}}}, packet.length: 1688 +0ms mqttjs:client parser :: on packet push to packets array. +5ms mqtt-packet:parser _newPacket: new packet +1ms mqtt-packet:parser parse: state complete. _stateCounter is now: 4 +0ms mqtt-packet:parser parse: packet.length: -1, buffer list length: 0 +0ms mqtt-packet:parser parse: exited while loop. packet: -1, buffer list length: 0 +0ms mqttjs:client work :: getting next packet in queue +0ms mqttjs:client work :: packet pulled from queue +0ms mqttjs:client _handlePacket :: emitting packetreceive +0ms mqttjs:client _handlePublish: packet Packet { cmd: 'publish', retain: false, qos: 0, dup: false, length: 1688, topic: 'command/nexx/1', payload: <Buffer 7b 22 64 69 72 65 63 74 69 76 65 22 3a 7b 22 68 65 61 64 65 72 22 3a 7b 22 6e 61 6d 65 73 70 61 63 65 22 3a 22 41 6c 65 78 61 2e 50 6f 77 65 72 43 6f ... 1622 more bytes> } +0ms mqttjs:client _handlePublish: qos 0 +1ms alexaLocal Emitting Alexa.PowerController +1m hapNodeJSClient HAP Device discovered Camera Name-FEAB +1m hapNodeJSClient HAP Device address Camera Name-FEAB -> { host: '192.168.0.100', port: 49957, url: 'http://192.168.0.100:49957', deviceID: 'EA:C7:55:4B:9B:80', txt: { md: 'Camera Name', pv: '1.0', id: 'EA:C7:55:4B:9B:80', 'c#': '2', 's#': '1', ff: '0', ci: '17', sf: '1', sh: '8D7WDA==' } } +0ms hapNodeJSClient HAP Device discovered Homebridge-CAD8 +536ms hapNodeJSClient HAP Device address Homebridge-CAD8 -> { host: '192.168.0.100', port: 51826, url: 'http://192.168.0.100:51826', deviceID: 'CC:22:3D:E3:CE:30', txt: { md: 'Homebridge', pv: '1.0', id: 'CC:22:3D:E3:CE:30', 'c#': '119', 's#': '1', ff: '0', ci: '2', sf: '0', sh: '38MbiQ==' } } +0ms [5/17/2020, 12:35:51 PM] [Alexa] PowerController TurnOn undefined undefined Error: ERROR: HB Instance not found at /usr/local/lib/node_modules/homebridge-alexa/node_modules/hap-node-client/HAPNodeJSClient.js:127:18 at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-alexa/node_modules/hap-node-client/HAPNodeJSClient.js:186:7) at listOnTimeout (internal/timers.js:531:17) at processTimers (internal/timers.js:475:7) mqttjs:client publish :: message {"event":{"header":{"namespace":"Alexa","name":"ErrorResponse","messageId":"2718b373-459e-498c-8e06-1b2fc1d1bc5e","payloadVersion":"3"},"endpoint":{"endpointId":"Q0M6MjI6M0Q6RTM6Q0U6MzAtSG9tZWJyaWRnZS1JbmRpZ28tRXNjcml0w7NyaW8gMS0wMDAwMDA0My0wMDAwLTEwMDAtODAwMC0wMDI2QkI3NjUyOTE="},"payload":{"type":"ENDPOINT_UNREACHABLE","message":"ERROR: HB Instance not found"}}} to topic response/nexx/1 +4s mqttjs:client publish :: qos 0 +0ms mqttjs:client MqttClient:publish: packet cmd: publish +0ms mqttjs:client _sendPacket :: (mqttjs_8777fb2a) :: start +0ms mqttjs:client sendPacket :: packet: { mqttjs:client cmd: 'publish', mqttjs:client topic: 'response/nexx/1', mqttjs:client payload: '{"event":{"header":{"namespace":"Alexa","name":"ErrorResponse","messageId":"2718b373-459e-498c-8e06-1b2fc1d1bc5e","payloadVersion":"3"},"endpoint":{"endpointId":"Q0M6MjI6M0Q6RTM6Q0U6MzAtSG9tZWJyaWRnZS1JbmRpZ28tRXNjcml0w7NyaW8gMS0wMDAwMDA0My0wMDAwLTEwMDAtODAwMC0wMDI2QkI3NjUyOTE="},"payload":{"type":"ENDPOINT_UNREACHABLE","message":"ERROR: HB Instance not found"}}}', mqttjs:client qos: 0, mqttjs:client retain: false, mqttjs:client messageId: 30785, mqttjs:client dup: false mqttjs:client } +1ms mqttjs:client sendPacket :: emitting packetsend +0ms mqttjs:client sendPacket :: writing to stream +0ms mqtt-packet:writeToStream generate called +11s mqtt-packet:writeToStream generate: packet.cmd: publish +0ms mqtt-packet:writeToStream publish: packet: { cmd: 'publish', topic: 'response/nexx/1', payload: '{"event":{"header":{"namespace":"Alexa","name":"ErrorResponse","messageId":"2718b373-459e-498c-8e06-1b2fc1d1bc5e","payloadVersion":"3"},"endpoint":{"endpointId":"Q0M6MjI6M0Q6RTM6Q0U6MzAtSG9tZWJyaWRnZS1JbmRpZ28tRXNjcml0w7NyaW8gMS0wMDAwMDA0My0wMDAwLTEwMDAtODAwMC0wMDI2QkI3NjUyOTE="},"payload":{"type":"ENDPOINT_UNREACHABLE","message":"ERROR: HB Instance not found"}}}', qos: 0, retain: false, messageId: 30785, dup: false } +0ms mqtt-packet:writeToStream writeVarByteInt: writing to stream: <Buffer fe 02> +1ms mqtt-packet:writeToStream writeNumberCached: number: 15 +0ms mqtt-packet:writeToStream writeNumberCached: <Buffer 00 0f> +0ms mqtt-packet:writeToStream publish: payload: '{"event":{"header":{"namespace":"Alexa","name":"ErrorResponse","messageId":"2718b373-459e-498c-8e06-1b2fc1d1bc5e","payloadVersion":"3"},"endpoint":{"endpointId":"Q0M6MjI6M0Q6RTM6Q0U6MzAtSG9tZWJyaWRnZS1JbmRpZ28tRXNjcml0w7NyaW8gMS0wMDAwMDA0My0wMDAwLTEwMDAtODAwMC0wMDI2QkI3NjUyOTE="},"payload":{"type":"ENDPOINT_UNREACHABLE","message":"ERROR: HB Instance not found"}}}' +0ms mqttjs:client sendPacket :: writeToStream result true +1ms mqttjs:client _sendPacket :: (mqttjs_8777fb2a) :: end +0ms — You are receiving this because you were assigned. Reply to this email directly, view it on GitHub, or unsubscribe.

vcrosato commented 4 years ago

No sorry, will do it

vcrosato commented 4 years ago

Did the discover. Here's current status:

I think we're quite close!! 👍

Here's the log files:

input

me: "Alexa, change input to hdmi 2 or: "Alexa, change to hdmi 2 alexa: "this command doesn't work on device tv 2"

  mqttjs:client writable stream :: parsing buffer +38s
  mqtt-packet:parser parse: current state: _parseHeader +38s
  mqtt-packet:parser _parseHeader: packet: Packet { cmd: 'publish', retain: false, qos: 0, dup: false, length: -1, topic: null, payload: null } +0ms
  mqtt-packet:parser parse: state complete. _stateCounter is now: 1 +0ms
  mqtt-packet:parser parse: packet.length: -1, buffer list length: 1447 +1ms
  mqtt-packet:parser _parseVarByteNum +0ms
  mqtt-packet:parser _parseVarByteNum: result: { bytes: 2, value: 3000 } +0ms
  mqtt-packet:parser _parseLength 3000 +0ms
  mqtt-packet:parser parse: state complete. _stateCounter is now: 2 +0ms
  mqtt-packet:parser parse: packet.length: 3000, buffer list length: 1445 +0ms
  mqtt-packet:parser _parsePayload: payload BufferList {
  mqtt-packet:parser   _bufs: [
  mqtt-packet:parser     <Buffer 00 0e 63 6f 6d 6d 61 6e 64 2f 6e 65 78 78 2f 31 7b 22 64 69 72 65 63 74 69 76 65 22 3a 7b 22 68 65 61 64 65 72 22 3a 7b 22 6e 61 6d 65 73 70 61 63 65 ... 1395 more bytes>
  mqtt-packet:parser   ],
  mqtt-packet:parser   length: 1445,
  mqtt-packet:parser   _readableState: ReadableState {
  mqtt-packet:parser     objectMode: false,
  mqtt-packet:parser     highWaterMark: 16384,
  mqtt-packet:parser     buffer: BufferList { length: 0 },
  mqtt-packet:parser     length: 0,
  mqtt-packet:parser     pipes: null,
  mqtt-packet:parser     pipesCount: 0,
  mqtt-packet:parser     flowing: null,
  mqtt-packet:parser     ended: false,
  mqtt-packet:parser     endEmitted: false,
  mqtt-packet:parser     reading: false,
  mqtt-packet:parser     sync: true,
  mqtt-packet:parser     needReadable: false,
  mqtt-packet:parser     emittedReadable: false,
  mqtt-packet:parser     readableListening: false,
  mqtt-packet:parser     resumeScheduled: false,
  mqtt-packet:parser     destroyed: false,
  mqtt-packet:parser     defaultEncoding: 'utf8',
  mqtt-packet:parser     awaitDrain: 0,
  mqtt-packet:parser     readingMore: false,
  mqtt-packet:parser     decoder: null,
  mqtt-packet:parser     encoding: null
  mqtt-packet:parser   },
  mqtt-packet:parser   readable: true,
  mqtt-packet:parser   _events: [Object: null prototype] {
  mqtt-packet:parser     end: [Function: bound onceWrapper] { listener: [Function: onend] }
  mqtt-packet:parser   },
  mqtt-packet:parser   _eventsCount: 1,
  mqtt-packet:parser   _maxListeners: undefined,
  mqtt-packet:parser   _writableState: WritableState {
  mqtt-packet:parser     objectMode: false,
  mqtt-packet:parser     highWaterMark: 16384,
  mqtt-packet:parser     finalCalled: false,
  mqtt-packet:parser     needDrain: false,
  mqtt-packet:parser     ending: false,
  mqtt-packet:parser     ended: false,
  mqtt-packet:parser     finished: false,
  mqtt-packet:parser     destroyed: false,
  mqtt-packet:parser     decodeStrings: true,
  mqtt-packet:parser     defaultEncoding: 'utf8',
  mqtt-packet:parser     length: 0,
  mqtt-packet:parser     writing: false,
  mqtt-packet:parser     corked: 0,
  mqtt-packet:parser     sync: true,
  mqtt-packet:parser     bufferProcessing: false,
  mqtt-packet:parser     onwrite: [Function],
  mqtt-packet:parser     writecb: null,
  mqtt-packet:parser     writelen: 0,
  mqtt-packet:parser     bufferedRequest: null,
  mqtt-packet:parser     lastBufferedRequest: null,
  mqtt-packet:parser     pendingcb: 0,
  mqtt-packet:parser     prefinished: false,
  mqtt-packet:parser     errorEmitted: false,
  mqtt-packet:parser     bufferedRequestCount: 0,
  mqtt-packet:parser     corkedRequestsFree: CorkedRequest { next: null, entry: null, finish: [Function] }
  mqtt-packet:parser   },
  mqtt-packet:parser   writable: true,
  mqtt-packet:parser   allowHalfOpen: true
  mqtt-packet:parser } +0ms
  mqtt-packet:parser _parsePayload complete result: false +2ms
  mqtt-packet:parser parse: exited while loop. packet: 3000, buffer list length: 1445 +0ms
  mqttjs:client work :: getting next packet in queue +3ms
  mqttjs:client work :: no packets in queue +0ms
  mqttjs:client work :: done flag is true +0ms
  mqttjs:client writable stream :: parsing buffer +0ms
  mqtt-packet:parser parse: current state: _parsePayload +0ms
  mqtt-packet:parser _parsePayload: payload BufferList {
  mqtt-packet:parser   _bufs: [
  mqtt-packet:parser     <Buffer 00 0e 63 6f 6d 6d 61 6e 64 2f 6e 65 78 78 2f 31 7b 22 64 69 72 65 63 74 69 76 65 22 3a 7b 22 68 65 61 64 65 72 22 3a 7b 22 6e 61 6d 65 73 70 61 63 65 ... 1395 more bytes>,
  mqtt-packet:parser     <Buffer 5c 22 3a 31 30 34 2c 5c 22 69 69 64 5c 22 3a 35 38 7d 22 2c 22 53 74 6f 70 22 3a 22 7b 5c 22 64 65 76 69 63 65 49 44 5c 22 3a 5c 22 43 43 3a 32 32 3a ... 1505 more bytes>
  mqtt-packet:parser   ],
  mqtt-packet:parser   length: 3000,
  mqtt-packet:parser   _readableState: ReadableState {
  mqtt-packet:parser     objectMode: false,
  mqtt-packet:parser     highWaterMark: 16384,
  mqtt-packet:parser     buffer: BufferList { length: 0 },
  mqtt-packet:parser     length: 0,
  mqtt-packet:parser     pipes: null,
  mqtt-packet:parser     pipesCount: 0,
  mqtt-packet:parser     flowing: null,
  mqtt-packet:parser     ended: false,
  mqtt-packet:parser     endEmitted: false,
  mqtt-packet:parser     reading: false,
  mqtt-packet:parser     sync: true,
  mqtt-packet:parser     needReadable: false,
  mqtt-packet:parser     emittedReadable: false,
  mqtt-packet:parser     readableListening: false,
  mqtt-packet:parser     resumeScheduled: false,
  mqtt-packet:parser     destroyed: false,
  mqtt-packet:parser     defaultEncoding: 'utf8',
  mqtt-packet:parser     awaitDrain: 0,
  mqtt-packet:parser     readingMore: false,
  mqtt-packet:parser     decoder: null,
  mqtt-packet:parser     encoding: null
  mqtt-packet:parser   },
  mqtt-packet:parser   readable: true,
  mqtt-packet:parser   _events: [Object: null prototype] {
  mqtt-packet:parser     end: [Function: bound onceWrapper] { listener: [Function: onend] }
  mqtt-packet:parser   },
  mqtt-packet:parser   _eventsCount: 1,
  mqtt-packet:parser   _maxListeners: undefined,
  mqtt-packet:parser   _writableState: WritableState {
  mqtt-packet:parser     objectMode: false,
  mqtt-packet:parser     highWaterMark: 16384,
  mqtt-packet:parser     finalCalled: false,
  mqtt-packet:parser     needDrain: false,
  mqtt-packet:parser     ending: false,
  mqtt-packet:parser     ended: false,
  mqtt-packet:parser     finished: false,
  mqtt-packet:parser     destroyed: false,
  mqtt-packet:parser     decodeStrings: true,
  mqtt-packet:parser     defaultEncoding: 'utf8',
  mqtt-packet:parser     length: 0,
  mqtt-packet:parser     writing: false,
  mqtt-packet:parser     corked: 0,
  mqtt-packet:parser     sync: true,
  mqtt-packet:parser     bufferProcessing: false,
  mqtt-packet:parser     onwrite: [Function],
  mqtt-packet:parser     writecb: null,
  mqtt-packet:parser     writelen: 0,
  mqtt-packet:parser     bufferedRequest: null,
  mqtt-packet:parser     lastBufferedRequest: null,
  mqtt-packet:parser     pendingcb: 0,
  mqtt-packet:parser     prefinished: false,
  mqtt-packet:parser     errorEmitted: false,
  mqtt-packet:parser     bufferedRequestCount: 0,
  mqtt-packet:parser     corkedRequestsFree: CorkedRequest { next: null, entry: null, finish: [Function] }
  mqtt-packet:parser   },
  mqtt-packet:parser   writable: true,
  mqtt-packet:parser   allowHalfOpen: true
  mqtt-packet:parser } +0ms
  mqtt-packet:parser _parsePublish +2ms
  mqtt-packet:parser _parseNum: result: 14 +0ms
  mqtt-packet:parser _parseString: result: command/nexx/1 +0ms
  mqtt-packet:parser _parsePublish: payload from buffer list: <Buffer 7b 22 64 69 72 65 63 74 69 76 65 22 3a 7b 22 68 65 61 64 65 72 22 3a 7b 22 6e 61 6d 65 73 70 61 63 65 22 3a 22 41 6c 65 78 61 2e 49 6e 70 75 74 43 6f ... 2934 more bytes> +0ms
  mqtt-packet:parser _parsePayload complete result: true +0ms
  mqtt-packet:parser parse: state complete. _stateCounter is now: 3 +0ms
  mqtt-packet:parser parse: packet.length: 3000, buffer list length: 3000 +0ms
  mqtt-packet:parser _newPacket +0ms
  mqtt-packet:parser _newPacket: parser emit packet: packet.cmd: publish, packet.payload: {"directive":{"header":{"namespace":"Alexa.InputController","name":"SelectInput","payloadVersion":"3","messageId":"62821d30-1e35-4821-a0a3-d1449bf4d582","correlationToken":"AAAAAAAAAABsSuxPy8sz4egddPO5AVY+/AEAAAAAAABu3RRdibPJGtCBMgaCLGwvjTnoQpbnxDjkTrwNkk1IYkA0cH7kQkhe/ww8DC752KkwmWzDGAIq8lQQ7rNkM1Op3WjzgmOojKtQyX8oQN0g3sKAPCKg01cyD0ya+8TsO6EZR5Mqbbeq8FiD0VpOTrVCudYouH/DcxEuU4fxknWvKOhO+/5/nqKG+ox8lt4dWTzth42c7I5f9vYV3JGOhj1u36E7n1unAEvPEMZtuPx1dg7qzNP9mu9HgACqOun9UaFbkoFtMyWdErJ+WAyMAFOneVVNwLMmAZiKxerDoIqmc2waJbN7nvrEvL8j4LTFnTbX3z9pOIkT8O7F3lG1Ek+ZU6uhDFF9QiHxyrGU8KiXe6wMetw7exe2RY5QrExUiEZ8ULX6fh9ecx1WqxXJsjqmrmbcbCz8wvGLpRnQrNpiWxq8qZOQj3FVSLcomINyv8IgMEG1RGBemyJ7YYnxAU2OJVOmi214cJguwgZXxTWNScn41+Xz08NV/cnQj86PYTf28UtjlqJw0lwNZbi6Rt+bDcyoNMfrHmqmzViBAYcTHfGLrIaHjiZKBaYFwHKeA0YOAJLeVst0AUiJRwpNF+8fBqpD9pbcExiITwtafkOZt5WQRiQ+lyrtHjkbxZsVyexQbhDuGwDjPWTEIj4RSIcOkLjhUTYhsAl+Gbxs"},"endpoint":{"endpointId":"Q0M6MjI6M0Q6RTM6Q0U6MzAtSG9tZWJyaWRnZS1QYW5hc29uaWMtVFYgMi0wMDAwMDBEOC0wMDAwLTEwMDAtODAwMC0wMDI2QkI3NjUyOTE=","cookie":{"TurnOn":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"iid\":10,\"value\":1}","LiveTV":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"value\":5,\"iid\":11}","AdjustPowerLevel":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"iid\":14}","Pause":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"iid\":18,\"value\":11}","AdjustVolume":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"iid\":58}","Stop":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"iid\":18,\"value\":9}","BrightnessTurnOn":"true","Channel":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"iid\":12}","Play":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"iid\":18,\"value\":8}","ReportState":"[{\"interface\":\"Alexa.PowerController\",\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"iid\":10},{\"interface\":\"Alexa.PowerLevelController\",\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"iid\":14},{\"interface\":\"Alexa.PowerController\",\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"iid\":55},{\"interface\":\"Alexa.Speaker\",\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"iid\":56},{\"interface\":\"Alexa.StepSpeaker\",\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"iid\":58}]","CABO":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"value\":1,\"iid\":11}","HDMI 3":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"value\":3,\"iid\":11}","SetVolume":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"iid\":56}","HDMI 2":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"value\":2,\"iid\":11}","Next":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"iid\":18,\"value\":7}","Active Identifier":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"iid\":11}","Previous":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"iid\":18,\"value\":6}","SetPowerLevel":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"iid\":14}","TurnOff":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"iid\":10,\"value\":0}"}},"payload":{"input":"HDMI UM"}}}, packet.length: 3000 +0ms
  mqttjs:client parser :: on packet push to packets array. +3ms
  mqtt-packet:parser _newPacket: new packet +1ms
  mqtt-packet:parser parse: state complete. _stateCounter is now: 4 +0ms
  mqtt-packet:parser parse: packet.length: -1, buffer list length: 0 +0ms
  mqtt-packet:parser parse: exited while loop. packet: -1, buffer list length: 0 +0ms
  mqttjs:client work :: getting next packet in queue +0ms
  mqttjs:client work :: packet pulled from queue +0ms
  mqttjs:client _handlePacket :: emitting packetreceive +0ms
  mqttjs:client _handlePublish: packet Packet { cmd: 'publish', retain: false, qos: 0, dup: false, length: 3000, topic: 'command/nexx/1', payload: <Buffer 7b 22 64 69 72 65 63 74 69 76 65 22 3a 7b 22 68 65 61 64 65 72 22 3a 7b 22 6e 61 6d 65 73 70 61 63 65 22 3a 22 41 6c 65 78 61 2e 49 6e 70 75 74 43 6f ... 2934 more bytes> } +0ms
  mqttjs:client _handlePublish: qos 0 +1ms
  alexaLocal Emitting Alexa.InputController +5m
[5/17/2020, 2:01:51 PM] [Alexa] alexaInputController missing action HDMI UM Unexpected token u in JSON at position 0 {
  TurnOn: '{"deviceID":"CC:22:3D:E3:CE:30","aid":104,"iid":10,"value":1}',
  LiveTV: '{"deviceID":"CC:22:3D:E3:CE:30","aid":104,"value":5,"iid":11}',
  AdjustPowerLevel: '{"deviceID":"CC:22:3D:E3:CE:30","aid":104,"iid":14}',
  Pause: '{"deviceID":"CC:22:3D:E3:CE:30","aid":104,"iid":18,"value":11}',
  AdjustVolume: '{"deviceID":"CC:22:3D:E3:CE:30","aid":104,"iid":58}',
  Stop: '{"deviceID":"CC:22:3D:E3:CE:30","aid":104,"iid":18,"value":9}',
  BrightnessTurnOn: 'true',
  Channel: '{"deviceID":"CC:22:3D:E3:CE:30","aid":104,"iid":12}',
  Play: '{"deviceID":"CC:22:3D:E3:CE:30","aid":104,"iid":18,"value":8}',
  ReportState: '[{"interface":"Alexa.PowerController","deviceID":"CC:22:3D:E3:CE:30","aid":104,"iid":10},{"interface":"Alexa.PowerLevelController","deviceID":"CC:22:3D:E3:CE:30","aid":104,"iid":14},{"interface":"Alexa.PowerController","deviceID":"CC:22:3D:E3:CE:30","aid":104,"iid":55},{"interface":"Alexa.Speaker","deviceID":"CC:22:3D:E3:CE:30","aid":104,"iid":56},{"interface":"Alexa.StepSpeaker","deviceID":"CC:22:3D:E3:CE:30","aid":104,"iid":58}]',
  CABO: '{"deviceID":"CC:22:3D:E3:CE:30","aid":104,"value":1,"iid":11}',
  'HDMI 3': '{"deviceID":"CC:22:3D:E3:CE:30","aid":104,"value":3,"iid":11}',
  SetVolume: '{"deviceID":"CC:22:3D:E3:CE:30","aid":104,"iid":56}',
  'HDMI 2': '{"deviceID":"CC:22:3D:E3:CE:30","aid":104,"value":2,"iid":11}',
  Next: '{"deviceID":"CC:22:3D:E3:CE:30","aid":104,"iid":18,"value":7}',
  'Active Identifier': '{"deviceID":"CC:22:3D:E3:CE:30","aid":104,"iid":11}',
  Previous: '{"deviceID":"CC:22:3D:E3:CE:30","aid":104,"iid":18,"value":6}',
  SetPowerLevel: '{"deviceID":"CC:22:3D:E3:CE:30","aid":104,"iid":14}',
  TurnOff: '{"deviceID":"CC:22:3D:E3:CE:30","aid":104,"iid":10,"value":0}'
}
  mqttjs:client publish :: message `{"event":{"header":{"namespace":"Alexa","name":"ErrorResponse","messageId":"62821d30-1e35-4821-a0a3-d1449bf4d582","payloadVersion":"3"},"endpoint":{"endpointId":"Q0M6MjI6M0Q6RTM6Q0U6MzAtSG9tZWJyaWRnZS1QYW5hc29uaWMtVFYgMi0wMDAwMDBEOC0wMDAwLTEwMDAtODAwMC0wMDI2QkI3NjUyOTE="},"payload":{"type":"INVALID_VALUE","message":"Unexpected token u in JSON at position 0"}}}` to topic `response/nexx/1` +1ms
  mqttjs:client publish :: qos 0 +0ms
  mqttjs:client MqttClient:publish: packet cmd: publish +0ms
  mqttjs:client _sendPacket :: (mqttjs_9e14f143) ::  start +0ms
  mqttjs:client sendPacket :: packet: {
  mqttjs:client   cmd: 'publish',
  mqttjs:client   topic: 'response/nexx/1',
  mqttjs:client   payload: '{"event":{"header":{"namespace":"Alexa","name":"ErrorResponse","messageId":"62821d30-1e35-4821-a0a3-d1449bf4d582","payloadVersion":"3"},"endpoint":{"endpointId":"Q0M6MjI6M0Q6RTM6Q0U6MzAtSG9tZWJyaWRnZS1QYW5hc29uaWMtVFYgMi0wMDAwMDBEOC0wMDAwLTEwMDAtODAwMC0wMDI2QkI3NjUyOTE="},"payload":{"type":"INVALID_VALUE","message":"Unexpected token u in JSON at position 0"}}}',
  mqttjs:client   qos: 0,
  mqttjs:client   retain: false,
  mqttjs:client   messageId: 11393,
  mqttjs:client   dup: false
  mqttjs:client } +0ms
  mqttjs:client sendPacket :: emitting `packetsend` +0ms
  mqttjs:client sendPacket :: writing to stream +0ms
  mqtt-packet:writeToStream generate called +38s
  mqtt-packet:writeToStream generate: packet.cmd: publish +0ms
  mqtt-packet:writeToStream publish: packet: { cmd: 'publish', topic: 'response/nexx/1', payload: '{"event":{"header":{"namespace":"Alexa","name":"ErrorResponse","messageId":"62821d30-1e35-4821-a0a3-d1449bf4d582","payloadVersion":"3"},"endpoint":{"endpointId":"Q0M6MjI6M0Q6RTM6Q0U6MzAtSG9tZWJyaWRnZS1QYW5hc29uaWMtVFYgMi0wMDAwMDBEOC0wMDAwLTEwMDAtODAwMC0wMDI2QkI3NjUyOTE="},"payload":{"type":"INVALID_VALUE","message":"Unexpected token u in JSON at position 0"}}}', qos: 0, retain: false, messageId: 11393, dup: false } +1ms
  mqtt-packet:writeToStream writeVarByteInt: writing to stream: <Buffer fb 02> +0ms
  mqtt-packet:writeToStream writeNumberCached: number: 15 +0ms
  mqtt-packet:writeToStream writeNumberCached: <Buffer 00 0f> +0ms
  mqtt-packet:writeToStream publish: payload: '{"event":{"header":{"namespace":"Alexa","name":"ErrorResponse","messageId":"62821d30-1e35-4821-a0a3-d1449bf4d582","payloadVersion":"3"},"endpoint":{"endpointId":"Q0M6MjI6M0Q6RTM6Q0U6MzAtSG9tZWJyaWRnZS1QYW5hc29uaWMtVFYgMi0wMDAwMDBEOC0wMDAwLTEwMDAtODAwMC0wMDI2QkI3NjUyOTE="},"payload":{"type":"INVALID_VALUE","message":"Unexpected token u in JSON at position 0"}}}' +0ms
  mqttjs:client sendPacket :: writeToStream result true +1ms
  mqttjs:client _sendPacket :: (mqttjs_9e14f143) ::  end +0ms

here's part of config:

                   {"type": "InputSource",
                    "displayName":           "tv1_hdmi2",
                    "configuredName":        **"HDMI2"**,
                    "currentVisibilityState":"SHOWN",
                    "inputSourceType":       "HDMI",
                    "isConfigured":          "CONFIGURED",
                    "identifier":             2,
                    "targetVisibilityState":    "SHOWN",
                    "name":                  "HDMI2"
                   },

channels:

me: "Alexa channel 2 on tv 2" alexa: "Can't find a video skill for that. Access the alexa app to manage your video skills.."

me: "Alexa change channels on tv" alexa: "TV 2 is not compatible with that" (check below the " alexaChannelController missing action SkipChannels", I think we need some more configuration)

  mqttjs:client writable stream :: parsing buffer +33s
  mqtt-packet:parser parse: current state: _parseHeader +33s
  mqtt-packet:parser _parseHeader: packet: Packet { cmd: 'publish', retain: false, qos: 0, dup: false, length: -1, topic: null, payload: null } +0ms
  mqtt-packet:parser parse: state complete. _stateCounter is now: 1 +0ms
  mqtt-packet:parser parse: packet.length: -1, buffer list length: 1447 +0ms
  mqtt-packet:parser _parseVarByteNum +0ms
  mqtt-packet:parser _parseVarByteNum: result: { bytes: 2, value: 3002 } +0ms
  mqtt-packet:parser _parseLength 3002 +1ms
  mqtt-packet:parser parse: state complete. _stateCounter is now: 2 +0ms
  mqtt-packet:parser parse: packet.length: 3002, buffer list length: 1445 +0ms
  mqtt-packet:parser _parsePayload: payload BufferList {
  mqtt-packet:parser   _bufs: [
  mqtt-packet:parser     <Buffer 00 0e 63 6f 6d 6d 61 6e 64 2f 6e 65 78 78 2f 31 7b 22 64 69 72 65 63 74 69 76 65 22 3a 7b 22 68 65 61 64 65 72 22 3a 7b 22 6e 61 6d 65 73 70 61 63 65 ... 1395 more bytes>
  mqtt-packet:parser   ],
  mqtt-packet:parser   length: 1445,
  mqtt-packet:parser   _readableState: ReadableState {
  mqtt-packet:parser     objectMode: false,
  mqtt-packet:parser     highWaterMark: 16384,
  mqtt-packet:parser     buffer: BufferList { length: 0 },
  mqtt-packet:parser     length: 0,
  mqtt-packet:parser     pipes: null,
  mqtt-packet:parser     pipesCount: 0,
  mqtt-packet:parser     flowing: null,
  mqtt-packet:parser     ended: false,
  mqtt-packet:parser     endEmitted: false,
  mqtt-packet:parser     reading: false,
  mqtt-packet:parser     sync: true,
  mqtt-packet:parser     needReadable: false,
  mqtt-packet:parser     emittedReadable: false,
  mqtt-packet:parser     readableListening: false,
  mqtt-packet:parser     resumeScheduled: false,
  mqtt-packet:parser     destroyed: false,
  mqtt-packet:parser     defaultEncoding: 'utf8',
  mqtt-packet:parser     awaitDrain: 0,
  mqtt-packet:parser     readingMore: false,
  mqtt-packet:parser     decoder: null,
  mqtt-packet:parser     encoding: null
  mqtt-packet:parser   },
  mqtt-packet:parser   readable: true,
  mqtt-packet:parser   _events: [Object: null prototype] {
  mqtt-packet:parser     end: [Function: bound onceWrapper] { listener: [Function: onend] }
  mqtt-packet:parser   },
  mqtt-packet:parser   _eventsCount: 1,
  mqtt-packet:parser   _maxListeners: undefined,
  mqtt-packet:parser   _writableState: WritableState {
  mqtt-packet:parser     objectMode: false,
  mqtt-packet:parser     highWaterMark: 16384,
  mqtt-packet:parser     finalCalled: false,
  mqtt-packet:parser     needDrain: false,
  mqtt-packet:parser     ending: false,
  mqtt-packet:parser     ended: false,
  mqtt-packet:parser     finished: false,
  mqtt-packet:parser     destroyed: false,
  mqtt-packet:parser     decodeStrings: true,
  mqtt-packet:parser     defaultEncoding: 'utf8',
  mqtt-packet:parser     length: 0,
  mqtt-packet:parser     writing: false,
  mqtt-packet:parser     corked: 0,
  mqtt-packet:parser     sync: true,
  mqtt-packet:parser     bufferProcessing: false,
  mqtt-packet:parser     onwrite: [Function],
  mqtt-packet:parser     writecb: null,
  mqtt-packet:parser     writelen: 0,
  mqtt-packet:parser     bufferedRequest: null,
  mqtt-packet:parser     lastBufferedRequest: null,
  mqtt-packet:parser     pendingcb: 0,
  mqtt-packet:parser     prefinished: false,
  mqtt-packet:parser     errorEmitted: false,
  mqtt-packet:parser     bufferedRequestCount: 0,
  mqtt-packet:parser     corkedRequestsFree: CorkedRequest { next: null, entry: null, finish: [Function] }
  mqtt-packet:parser   },
  mqtt-packet:parser   writable: true,
  mqtt-packet:parser   allowHalfOpen: true
  mqtt-packet:parser } +0ms
  mqtt-packet:parser _parsePayload complete result: false +0ms
  mqtt-packet:parser parse: exited while loop. packet: 3002, buffer list length: 1445 +0ms
  mqttjs:client work :: getting next packet in queue +1ms
  mqttjs:client work :: no packets in queue +0ms
  mqttjs:client work :: done flag is true +0ms
  mqttjs:client writable stream :: parsing buffer +1ms
  mqtt-packet:parser parse: current state: _parsePayload +1ms
  mqtt-packet:parser _parsePayload: payload BufferList {
  mqtt-packet:parser   _bufs: [
  mqtt-packet:parser     <Buffer 00 0e 63 6f 6d 6d 61 6e 64 2f 6e 65 78 78 2f 31 7b 22 64 69 72 65 63 74 69 76 65 22 3a 7b 22 68 65 61 64 65 72 22 3a 7b 22 6e 61 6d 65 73 70 61 63 65 ... 1395 more bytes>,
  mqtt-packet:parser     <Buffer 61 69 64 5c 22 3a 31 30 34 2c 5c 22 69 69 64 5c 22 3a 35 38 7d 22 2c 22 53 74 6f 70 22 3a 22 7b 5c 22 64 65 76 69 63 65 49 44 5c 22 3a 5c 22 43 43 3a ... 1507 more bytes>
  mqtt-packet:parser   ],
  mqtt-packet:parser   length: 3002,
  mqtt-packet:parser   _readableState: ReadableState {
  mqtt-packet:parser     objectMode: false,
  mqtt-packet:parser     highWaterMark: 16384,
  mqtt-packet:parser     buffer: BufferList { length: 0 },
  mqtt-packet:parser     length: 0,
  mqtt-packet:parser     pipes: null,
  mqtt-packet:parser     pipesCount: 0,
  mqtt-packet:parser     flowing: null,
  mqtt-packet:parser     ended: false,
  mqtt-packet:parser     endEmitted: false,
  mqtt-packet:parser     reading: false,
  mqtt-packet:parser     sync: true,
  mqtt-packet:parser     needReadable: false,
  mqtt-packet:parser     emittedReadable: false,
  mqtt-packet:parser     readableListening: false,
  mqtt-packet:parser     resumeScheduled: false,
  mqtt-packet:parser     destroyed: false,
  mqtt-packet:parser     defaultEncoding: 'utf8',
  mqtt-packet:parser     awaitDrain: 0,
  mqtt-packet:parser     readingMore: false,
  mqtt-packet:parser     decoder: null,
  mqtt-packet:parser     encoding: null
  mqtt-packet:parser   },
  mqtt-packet:parser   readable: true,
  mqtt-packet:parser   _events: [Object: null prototype] {
  mqtt-packet:parser     end: [Function: bound onceWrapper] { listener: [Function: onend] }
  mqtt-packet:parser   },
  mqtt-packet:parser   _eventsCount: 1,
  mqtt-packet:parser   _maxListeners: undefined,
  mqtt-packet:parser   _writableState: WritableState {
  mqtt-packet:parser     objectMode: false,
  mqtt-packet:parser     highWaterMark: 16384,
  mqtt-packet:parser     finalCalled: false,
  mqtt-packet:parser     needDrain: false,
  mqtt-packet:parser     ending: false,
  mqtt-packet:parser     ended: false,
  mqtt-packet:parser     finished: false,
  mqtt-packet:parser     destroyed: false,
  mqtt-packet:parser     decodeStrings: true,
  mqtt-packet:parser     defaultEncoding: 'utf8',
  mqtt-packet:parser     length: 0,
  mqtt-packet:parser     writing: false,
  mqtt-packet:parser     corked: 0,
  mqtt-packet:parser     sync: true,
  mqtt-packet:parser     bufferProcessing: false,
  mqtt-packet:parser     onwrite: [Function],
  mqtt-packet:parser     writecb: null,
  mqtt-packet:parser     writelen: 0,
  mqtt-packet:parser     bufferedRequest: null,
  mqtt-packet:parser     lastBufferedRequest: null,
  mqtt-packet:parser     pendingcb: 0,
  mqtt-packet:parser     prefinished: false,
  mqtt-packet:parser     errorEmitted: false,
  mqtt-packet:parser     bufferedRequestCount: 0,
  mqtt-packet:parser     corkedRequestsFree: CorkedRequest { next: null, entry: null, finish: [Function] }
  mqtt-packet:parser   },
  mqtt-packet:parser   writable: true,
  mqtt-packet:parser   allowHalfOpen: true
  mqtt-packet:parser } +0ms
  mqtt-packet:parser _parsePublish +0ms
  mqtt-packet:parser _parseNum: result: 14 +0ms
  mqtt-packet:parser _parseString: result: command/nexx/1 +0ms
  mqtt-packet:parser _parsePublish: payload from buffer list: <Buffer 7b 22 64 69 72 65 63 74 69 76 65 22 3a 7b 22 68 65 61 64 65 72 22 3a 7b 22 6e 61 6d 65 73 70 61 63 65 22 3a 22 41 6c 65 78 61 2e 43 68 61 6e 6e 65 6c ... 2936 more bytes> +0ms
  mqtt-packet:parser _parsePayload complete result: true +1ms
  mqtt-packet:parser parse: state complete. _stateCounter is now: 3 +0ms
  mqtt-packet:parser parse: packet.length: 3002, buffer list length: 3002 +0ms
  mqtt-packet:parser _newPacket +0ms
  mqtt-packet:parser _newPacket: parser emit packet: packet.cmd: publish, packet.payload: {"directive":{"header":{"namespace":"Alexa.ChannelController","name":"SkipChannels","payloadVersion":"3","messageId":"873c77c5-42fa-4ce6-8a49-6f441bd18518","correlationToken":"AAAAAAAAAABsSuxPy8sz4egddPO5AVY+/AEAAAAAAACAs3GZ4r63TGiX8KQ4PLw+Vl0gf8OQ6uh3jbX1oqzF5+qa6Ag7rV+c2mGLFWXWahfpVD1GuXvISYNUXsUh4J0ud8zWSrLK+2HUOO78sAqkO0XNI20cIf2y+s3hV+29StliTrCu8PTWPBrlgtIBmuDBVFNuuk4DNAMQknUXFVUB2B6wWCLUNmbp0T3+AcgVgeJpLAucOhsl6s4Oln31f6i37t7BTeAVGgPCWbUcnMDwFa0MNVBfVfm+6e/n1tQ9zoGd4v2HI1o49yqXX8LBKA8r+yRPu+kZHJb2bd3VO1yUbsjkSZ8AT6XkWMldTa9oqNNq4uPwEDjmIxw44GNG264WhRxtNgGbBZvUlrGsI23X8dBO+jlxF9d/4uFcfDSx9l5OQ+Y1mu6kTm9CFL+dW7w6oRaY7WlGV1VB0qzxhmdpxWYq3YAdPmryE7IZDxvogsdkmXxeZrwFieL1IXS3PRkDkadExIPtI1fzZlLGpusGBt7COpLu6JoDAA70vYNPq01QxBevIYVF4FEwTnWKSk9pICZu3fgC7Z5JiMtnKCHovOQNv7IcEQI5Yk75TikkyXs1lIACpZ7XhdNYZs9o8vQU8VCBz7KFcN2zw/rkoq6FhYR5RQNWQTxgsuV+p91Nvk0KGbbO7GuHAB9oGEumsBabh4Ira0aMmlCcgEw2"},"endpoint":{"endpointId":"Q0M6MjI6M0Q6RTM6Q0U6MzAtSG9tZWJyaWRnZS1QYW5hc29uaWMtVFYgMi0wMDAwMDBEOC0wMDAwLTEwMDAtODAwMC0wMDI2QkI3NjUyOTE=","cookie":{"TurnOn":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"iid\":10,\"value\":1}","LiveTV":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"value\":5,\"iid\":11}","AdjustPowerLevel":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"iid\":14}","Pause":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"iid\":18,\"value\":11}","AdjustVolume":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"iid\":58}","Stop":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"iid\":18,\"value\":9}","BrightnessTurnOn":"true","Channel":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"iid\":12}","Play":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"iid\":18,\"value\":8}","ReportState":"[{\"interface\":\"Alexa.PowerController\",\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"iid\":10},{\"interface\":\"Alexa.PowerLevelController\",\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"iid\":14},{\"interface\":\"Alexa.PowerController\",\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"iid\":55},{\"interface\":\"Alexa.Speaker\",\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"iid\":56},{\"interface\":\"Alexa.StepSpeaker\",\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"iid\":58}]","CABO":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"value\":1,\"iid\":11}","HDMI 3":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"value\":3,\"iid\":11}","SetVolume":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"iid\":56}","HDMI 2":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"value\":2,\"iid\":11}","Next":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"iid\":18,\"value\":7}","Active Identifier":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"iid\":11}","Previous":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"iid\":18,\"value\":6}","SetPowerLevel":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"iid\":14}","TurnOff":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"iid\":10,\"value\":0}"}},"payload":{"channelCount":1}}}, packet.length: 3002 +0ms
  mqttjs:client parser :: on packet push to packets array. +1ms
  mqtt-packet:parser _newPacket: new packet +0ms
  mqtt-packet:parser parse: state complete. _stateCounter is now: 4 +0ms
  mqtt-packet:parser parse: packet.length: -1, buffer list length: 0 +0ms
  mqtt-packet:parser parse: exited while loop. packet: -1, buffer list length: 0 +0ms
  mqttjs:client work :: getting next packet in queue +0ms
  mqttjs:client work :: packet pulled from queue +0ms
  mqttjs:client _handlePacket :: emitting packetreceive +0ms
  mqttjs:client _handlePublish: packet Packet { cmd: 'publish', retain: false, qos: 0, dup: false, length: 3002, topic: 'command/nexx/1', payload: <Buffer 7b 22 64 69 72 65 63 74 69 76 65 22 3a 7b 22 68 65 61 64 65 72 22 3a 7b 22 6e 61 6d 65 73 70 61 63 65 22 3a 22 41 6c 65 78 61 2e 43 68 61 6e 6e 65 6c ... 2936 more bytes> } +0ms
  mqttjs:client _handlePublish: qos 0 +0ms
  alexaLocal Emitting Alexa.ChannelController +33s
[5/17/2020, 2:05:12 PM] [Alexa] alexaChannelController missing action SkipChannels
  mqttjs:client publish :: message `{"event":{"header":{"namespace":"Alexa","name":"ErrorResponse","messageId":"873c77c5-42fa-4ce6-8a49-6f441bd18518","payloadVersion":"3"},"endpoint":{"endpointId":"Q0M6MjI6M0Q6RTM6Q0U6MzAtSG9tZWJyaWRnZS1QYW5hc29uaWMtVFYgMi0wMDAwMDBEOC0wMDAwLTEwMDAtODAwMC0wMDI2QkI3NjUyOTE="},"payload":{"type":"INVALID_DIRECTIVE","message":"alexaChannelController missing action"}}}` to topic `response/nexx/1` +1ms
  mqttjs:client publish :: qos 0 +0ms
  mqttjs:client MqttClient:publish: packet cmd: publish +0ms
  mqttjs:client _sendPacket :: (mqttjs_9e14f143) ::  start +1ms
  mqttjs:client sendPacket :: packet: {
  mqttjs:client   cmd: 'publish',
  mqttjs:client   topic: 'response/nexx/1',
  mqttjs:client   payload: '{"event":{"header":{"namespace":"Alexa","name":"ErrorResponse","messageId":"873c77c5-42fa-4ce6-8a49-6f441bd18518","payloadVersion":"3"},"endpoint":{"endpointId":"Q0M6MjI6M0Q6RTM6Q0U6MzAtSG9tZWJyaWRnZS1QYW5hc29uaWMtVFYgMi0wMDAwMDBEOC0wMDAwLTEwMDAtODAwMC0wMDI2QkI3NjUyOTE="},"payload":{"type":"INVALID_DIRECTIVE","message":"alexaChannelController missing action"}}}',
  mqttjs:client   qos: 0,
  mqttjs:client   retain: false,
  mqttjs:client   messageId: 11403,
  mqttjs:client   dup: false
  mqttjs:client } +1ms
  mqttjs:client sendPacket :: emitting `packetsend` +0ms
  mqttjs:client sendPacket :: writing to stream +0ms
  mqtt-packet:writeToStream generate called +33s
  mqtt-packet:writeToStream generate: packet.cmd: publish +1ms
  mqtt-packet:writeToStream publish: packet: { cmd: 'publish', topic: 'response/nexx/1', payload: '{"event":{"header":{"namespace":"Alexa","name":"ErrorResponse","messageId":"873c77c5-42fa-4ce6-8a49-6f441bd18518","payloadVersion":"3"},"endpoint":{"endpointId":"Q0M6MjI6M0Q6RTM6Q0U6MzAtSG9tZWJyaWRnZS1QYW5hc29uaWMtVFYgMi0wMDAwMDBEOC0wMDAwLTEwMDAtODAwMC0wMDI2QkI3NjUyOTE="},"payload":{"type":"INVALID_DIRECTIVE","message":"alexaChannelController missing action"}}}', qos: 0, retain: false, messageId: 11403, dup: false } +0ms
  mqtt-packet:writeToStream writeVarByteInt: writing to stream: <Buffer fc 02> +0ms
  mqtt-packet:writeToStream writeNumberCached: number: 15 +0ms
  mqtt-packet:writeToStream writeNumberCached: <Buffer 00 0f> +0ms
  mqtt-packet:writeToStream publish: payload: '{"event":{"header":{"namespace":"Alexa","name":"ErrorResponse","messageId":"873c77c5-42fa-4ce6-8a49-6f441bd18518","payloadVersion":"3"},"endpoint":{"endpointId":"Q0M6MjI6M0Q6RTM6Q0U6MzAtSG9tZWJyaWRnZS1QYW5hc29uaWMtVFYgMi0wMDAwMDBEOC0wMDAwLTEwMDAtODAwMC0wMDI2QkI3NjUyOTE="},"payload":{"type":"INVALID_DIRECTIVE","message":"alexaChannelController missing action"}}}' +0ms
  mqttjs:client sendPacket :: writeToStream result true +2ms
  mqttjs:client _sendPacket :: (mqttjs_9e14f143) ::  end +0ms

  mqttjs:client writable stream :: parsing buffer +269ms
  mqtt-packet:parser parse: current state: _parseHeader +274ms
  mqtt-packet:parser _parseHeader: packet: Packet { cmd: 'publish', retain: false, qos: 0, dup: false, length: -1, topic: null, payload: null } +0ms
  mqtt-packet:parser parse: state complete. _stateCounter is now: 1 +0ms
  mqtt-packet:parser parse: packet.length: -1, buffer list length: 1447 +0ms
  mqtt-packet:parser _parseVarByteNum +0ms
  mqtt-packet:parser _parseVarByteNum: result: { bytes: 2, value: 3004 } +0ms
  mqtt-packet:parser _parseLength 3004 +1ms
  mqtt-packet:parser parse: state complete. _stateCounter is now: 2 +0ms
  mqtt-packet:parser parse: packet.length: 3004, buffer list length: 1445 +0ms
  mqtt-packet:parser _parsePayload: payload BufferList {
  mqtt-packet:parser   _bufs: [
  mqtt-packet:parser     <Buffer 00 0e 63 6f 6d 6d 61 6e 64 2f 6e 65 78 78 2f 31 7b 22 64 69 72 65 63 74 69 76 65 22 3a 7b 22 68 65 61 64 65 72 22 3a 7b 22 6e 61 6d 65 73 70 61 63 65 ... 1395 more bytes>
  mqtt-packet:parser   ],
  mqtt-packet:parser   length: 1445,
  mqtt-packet:parser   _readableState: ReadableState {
  mqtt-packet:parser     objectMode: false,
  mqtt-packet:parser     highWaterMark: 16384,
  mqtt-packet:parser     buffer: BufferList { length: 0 },
  mqtt-packet:parser     length: 0,
  mqtt-packet:parser     pipes: null,
  mqtt-packet:parser     pipesCount: 0,
  mqtt-packet:parser     flowing: null,
  mqtt-packet:parser     ended: false,
  mqtt-packet:parser     endEmitted: false,
  mqtt-packet:parser     reading: false,
  mqtt-packet:parser     sync: true,
  mqtt-packet:parser     needReadable: false,
  mqtt-packet:parser     emittedReadable: false,
  mqtt-packet:parser     readableListening: false,
  mqtt-packet:parser     resumeScheduled: false,
  mqtt-packet:parser     destroyed: false,
  mqtt-packet:parser     defaultEncoding: 'utf8',
  mqtt-packet:parser     awaitDrain: 0,
  mqtt-packet:parser     readingMore: false,
  mqtt-packet:parser     decoder: null,
  mqtt-packet:parser     encoding: null
  mqtt-packet:parser   },
  mqtt-packet:parser   readable: true,
  mqtt-packet:parser   _events: [Object: null prototype] {
  mqtt-packet:parser     end: [Function: bound onceWrapper] { listener: [Function: onend] }
  mqtt-packet:parser   },
  mqtt-packet:parser   _eventsCount: 1,
  mqtt-packet:parser   _maxListeners: undefined,
  mqtt-packet:parser   _writableState: WritableState {
  mqtt-packet:parser     objectMode: false,
  mqtt-packet:parser     highWaterMark: 16384,
  mqtt-packet:parser     finalCalled: false,
  mqtt-packet:parser     needDrain: false,
  mqtt-packet:parser     ending: false,
  mqtt-packet:parser     ended: false,
  mqtt-packet:parser     finished: false,
  mqtt-packet:parser     destroyed: false,
  mqtt-packet:parser     decodeStrings: true,
  mqtt-packet:parser     defaultEncoding: 'utf8',
  mqtt-packet:parser     length: 0,
  mqtt-packet:parser     writing: false,
  mqtt-packet:parser     corked: 0,
  mqtt-packet:parser     sync: true,
  mqtt-packet:parser     bufferProcessing: false,
  mqtt-packet:parser     onwrite: [Function],
  mqtt-packet:parser     writecb: null,
  mqtt-packet:parser     writelen: 0,
  mqtt-packet:parser     bufferedRequest: null,
  mqtt-packet:parser     lastBufferedRequest: null,
  mqtt-packet:parser     pendingcb: 0,
  mqtt-packet:parser     prefinished: false,
  mqtt-packet:parser     errorEmitted: false,
  mqtt-packet:parser     bufferedRequestCount: 0,
  mqtt-packet:parser     corkedRequestsFree: CorkedRequest { next: null, entry: null, finish: [Function] }
  mqtt-packet:parser   },
  mqtt-packet:parser   writable: true,
  mqtt-packet:parser   allowHalfOpen: true
  mqtt-packet:parser } +0ms
  mqtt-packet:parser _parsePayload complete result: false +1ms
  mqtt-packet:parser parse: exited while loop. packet: 3004, buffer list length: 1445 +0ms
  mqttjs:client work :: getting next packet in queue +2ms
  mqttjs:client work :: no packets in queue +0ms
  mqttjs:client work :: done flag is true +0ms
  mqttjs:client writable stream :: parsing buffer +0ms
  mqtt-packet:parser parse: current state: _parsePayload +0ms
  mqtt-packet:parser _parsePayload: payload BufferList {
  mqtt-packet:parser   _bufs: [
  mqtt-packet:parser     <Buffer 00 0e 63 6f 6d 6d 61 6e 64 2f 6e 65 78 78 2f 31 7b 22 64 69 72 65 63 74 69 76 65 22 3a 7b 22 68 65 61 64 65 72 22 3a 7b 22 6e 61 6d 65 73 70 61 63 65 ... 1395 more bytes>,
  mqtt-packet:parser     <Buffer 61 69 64 5c 22 3a 31 30 31 2c 5c 22 69 69 64 5c 22 3a 36 36 7d 22 2c 22 53 74 6f 70 22 3a 22 7b 5c 22 64 65 76 69 63 65 49 44 5c 22 3a 5c 22 43 43 3a ... 1509 more bytes>
  mqtt-packet:parser   ],
  mqtt-packet:parser   length: 3004,
  mqtt-packet:parser   _readableState: ReadableState {
  mqtt-packet:parser     objectMode: false,
  mqtt-packet:parser     highWaterMark: 16384,
  mqtt-packet:parser     buffer: BufferList { length: 0 },
  mqtt-packet:parser     length: 0,
  mqtt-packet:parser     pipes: null,
  mqtt-packet:parser     pipesCount: 0,
  mqtt-packet:parser     flowing: null,
  mqtt-packet:parser     ended: false,
  mqtt-packet:parser     endEmitted: false,
  mqtt-packet:parser     reading: false,
  mqtt-packet:parser     sync: true,
  mqtt-packet:parser     needReadable: false,
  mqtt-packet:parser     emittedReadable: false,
  mqtt-packet:parser     readableListening: false,
  mqtt-packet:parser     resumeScheduled: false,
  mqtt-packet:parser     destroyed: false,
  mqtt-packet:parser     defaultEncoding: 'utf8',
  mqtt-packet:parser     awaitDrain: 0,
  mqtt-packet:parser     readingMore: false,
  mqtt-packet:parser     decoder: null,
  mqtt-packet:parser     encoding: null
  mqtt-packet:parser   },
  mqtt-packet:parser   readable: true,
  mqtt-packet:parser   _events: [Object: null prototype] {
  mqtt-packet:parser     end: [Function: bound onceWrapper] { listener: [Function: onend] }
  mqtt-packet:parser   },
  mqtt-packet:parser   _eventsCount: 1,
  mqtt-packet:parser   _maxListeners: undefined,
  mqtt-packet:parser   _writableState: WritableState {
  mqtt-packet:parser     objectMode: false,
  mqtt-packet:parser     highWaterMark: 16384,
  mqtt-packet:parser     finalCalled: false,
  mqtt-packet:parser     needDrain: false,
  mqtt-packet:parser     ending: false,
  mqtt-packet:parser     ended: false,
  mqtt-packet:parser     finished: false,
  mqtt-packet:parser     destroyed: false,
  mqtt-packet:parser     decodeStrings: true,
  mqtt-packet:parser     defaultEncoding: 'utf8',
  mqtt-packet:parser     length: 0,
  mqtt-packet:parser     writing: false,
  mqtt-packet:parser     corked: 0,
  mqtt-packet:parser     sync: true,
  mqtt-packet:parser     bufferProcessing: false,
  mqtt-packet:parser     onwrite: [Function],
  mqtt-packet:parser     writecb: null,
  mqtt-packet:parser     writelen: 0,
  mqtt-packet:parser     bufferedRequest: null,
  mqtt-packet:parser     lastBufferedRequest: null,
  mqtt-packet:parser     pendingcb: 0,
  mqtt-packet:parser     prefinished: false,
  mqtt-packet:parser     errorEmitted: false,
  mqtt-packet:parser     bufferedRequestCount: 0,
  mqtt-packet:parser     corkedRequestsFree: CorkedRequest { next: null, entry: null, finish: [Function] }
  mqtt-packet:parser   },
  mqtt-packet:parser   writable: true,
  mqtt-packet:parser   allowHalfOpen: true
  mqtt-packet:parser } +0ms
  mqtt-packet:parser _parsePublish +1ms
  mqtt-packet:parser _parseNum: result: 14 +0ms
  mqtt-packet:parser _parseString: result: command/nexx/1 +0ms
  mqtt-packet:parser _parsePublish: payload from buffer list: <Buffer 7b 22 64 69 72 65 63 74 69 76 65 22 3a 7b 22 68 65 61 64 65 72 22 3a 7b 22 6e 61 6d 65 73 70 61 63 65 22 3a 22 41 6c 65 78 61 2e 43 68 61 6e 6e 65 6c ... 2938 more bytes> +1ms
  mqtt-packet:parser _parsePayload complete result: true +0ms
  mqtt-packet:parser parse: state complete. _stateCounter is now: 3 +0ms
  mqtt-packet:parser parse: packet.length: 3004, buffer list length: 3004 +0ms
  mqtt-packet:parser _newPacket +0ms
  mqtt-packet:parser _newPacket: parser emit packet: packet.cmd: publish, packet.payload: {"directive":{"header":{"namespace":"Alexa.ChannelController","name":"SkipChannels","payloadVersion":"3","messageId":"eba7b523-e768-48b0-939c-50df897b7fc1","correlationToken":"AAAAAAAAAABsSuxPy8sz4egddPO5AVY+/AEAAAAAAADdnTWA3qd5opHTN3RkFRtP34uwD4Oy/LJ6OvO0+RyUrc+cENdfzXXK+shXzrwFAsA+GdIqFfEGamoSzEdBzRmOVqilUYCmCM6D1F9jjtietPhc7AHZed55Os3d7LQBYqoS3lt3rGhEgfv4hreoeNBJCnvA7Lo0iqdcqyf2h73ysIxcDLgh5gW/9uWCqtSuQpCc/ls7pUHciWZ1ADOtKZd9tY5RVyqa9GfbPx9LawTZlGPDSAt09pI5Rchyvl2rzFs2yrlZgY35mBAq8vaHKbnFE6KAjwFGBSUzZ3b2oAELzPm/f+qlBAxaqzD9gSDq+HuT1oxlfSNrh18CKpnPFPhz6fD9NaJor5pSvPrcJDLn6NEEUFgj9K6UYTa/HSrpM19CQmyHmf9quf/kPwdgBnQYq3ME2LlxMyDZn6Dt3DYi7xNSB3HYvAQ/1+1u5L1jtc2Y1Oj9XDPiiPoUmgmOzeSgfM/36dgLrdBgBTKwN0pM4noIU/HhIAGg8HRQRSv1MjKjCtZbltq1vZ+O/qiWn7OtFyJWTcqPPfNrJ8KG0Vypwe24RyN8ft/w7UbI3V8MZY5rWxr4H8waV5VmqXOeMQtDwyYnOiZgPuYyq+lVOL7O32cmqYerK0EpRFk+MUr0w3Zr5w3UaT5o7+LSwVWyFWy2dDT4hgewZX/XW7Nh"},"endpoint":{"endpointId":"Q0M6MjI6M0Q6RTM6Q0U6MzAtSG9tZWJyaWRnZS1QYW5hc29uaWMtVFYgMS0wMDAwMDBEOC0wMDAwLTEwMDAtODAwMC0wMDI2QkI3NjUyOTE=","cookie":{"TurnOn":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":101,\"iid\":10,\"value\":1}","LiveTV":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":101,\"value\":5,\"iid\":11}","AdjustPowerLevel":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":101,\"iid\":14}","Pause":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":101,\"iid\":18,\"value\":11}","AdjustVolume":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":101,\"iid\":66}","Stop":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":101,\"iid\":18,\"value\":9}","BrightnessTurnOn":"true","Channel":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":101,\"iid\":12}","Play":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":101,\"iid\":18,\"value\":8}","ReportState":"[{\"interface\":\"Alexa.PowerController\",\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":101,\"iid\":10},{\"interface\":\"Alexa.PowerLevelController\",\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":101,\"iid\":14},{\"interface\":\"Alexa.PowerController\",\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":101,\"iid\":63},{\"interface\":\"Alexa.Speaker\",\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":101,\"iid\":64},{\"interface\":\"Alexa.StepSpeaker\",\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":101,\"iid\":66}]","HDMI 4":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":101,\"value\":4,\"iid\":11}","HDMI 3":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":101,\"value\":3,\"iid\":11}","SetVolume":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":101,\"iid\":64}","HDMI 2":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":101,\"value\":2,\"iid\":11}","Next":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":101,\"iid\":18,\"value\":7}","Active Identifier":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":101,\"iid\":11}","Previous":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":101,\"iid\":18,\"value\":6}","SetPowerLevel":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":101,\"iid\":14}","TurnOff":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":101,\"iid\":10,\"value\":0}"}},"payload":{"channelCount":1}}}, packet.length: 3004 +0ms
  mqttjs:client parser :: on packet push to packets array. +2ms
  mqtt-packet:parser _newPacket: new packet +0ms
  mqtt-packet:parser parse: state complete. _stateCounter is now: 4 +1ms
  mqtt-packet:parser parse: packet.length: -1, buffer list length: 0 +0ms
  mqtt-packet:parser parse: exited while loop. packet: -1, buffer list length: 0 +0ms
  mqttjs:client work :: getting next packet in queue +1ms
  mqttjs:client work :: packet pulled from queue +0ms
  mqttjs:client _handlePacket :: emitting packetreceive +0ms
  mqttjs:client _handlePublish: packet Packet { cmd: 'publish', retain: false, qos: 0, dup: false, length: 3004, topic: 'command/nexx/1', payload: <Buffer 7b 22 64 69 72 65 63 74 69 76 65 22 3a 7b 22 68 65 61 64 65 72 22 3a 7b 22 6e 61 6d 65 73 70 61 63 65 22 3a 22 41 6c 65 78 61 2e 43 68 61 6e 6e 65 6c ... 2938 more bytes> } +0ms
  mqttjs:client _handlePublish: qos 0 +0ms
  alexaLocal Emitting Alexa.ChannelController +280ms
[5/17/2020, 2:05:12 PM] [Alexa] alexaChannelController missing action SkipChannels
  mqttjs:client publish :: message `{"event":{"header":{"namespace":"Alexa","name":"ErrorResponse","messageId":"eba7b523-e768-48b0-939c-50df897b7fc1","payloadVersion":"3"},"endpoint":{"endpointId":"Q0M6MjI6M0Q6RTM6Q0U6MzAtSG9tZWJyaWRnZS1QYW5hc29uaWMtVFYgMS0wMDAwMDBEOC0wMDAwLTEwMDAtODAwMC0wMDI2QkI3NjUyOTE="},"payload":{"type":"INVALID_DIRECTIVE","message":"alexaChannelController missing action"}}}` to topic `response/nexx/1` +2ms
  mqttjs:client publish :: qos 0 +0ms
  mqttjs:client MqttClient:publish: packet cmd: publish +0ms
  mqttjs:client _sendPacket :: (mqttjs_9e14f143) ::  start +0ms
  mqttjs:client sendPacket :: packet: {
  mqttjs:client   cmd: 'publish',
  mqttjs:client   topic: 'response/nexx/1',
  mqttjs:client   payload: '{"event":{"header":{"namespace":"Alexa","name":"ErrorResponse","messageId":"eba7b523-e768-48b0-939c-50df897b7fc1","payloadVersion":"3"},"endpoint":{"endpointId":"Q0M6MjI6M0Q6RTM6Q0U6MzAtSG9tZWJyaWRnZS1QYW5hc29uaWMtVFYgMS0wMDAwMDBEOC0wMDAwLTEwMDAtODAwMC0wMDI2QkI3NjUyOTE="},"payload":{"type":"INVALID_DIRECTIVE","message":"alexaChannelController missing action"}}}',
  mqttjs:client   qos: 0,
  mqttjs:client   retain: false,
  mqttjs:client   messageId: 11404,
  mqttjs:client   dup: false
  mqttjs:client } +0ms
  mqttjs:client sendPacket :: emitting `packetsend` +0ms
  mqttjs:client sendPacket :: writing to stream +0ms
  mqtt-packet:writeToStream generate called +276ms
  mqtt-packet:writeToStream generate: packet.cmd: publish +0ms
  mqtt-packet:writeToStream publish: packet: { cmd: 'publish', topic: 'response/nexx/1', payload: '{"event":{"header":{"namespace":"Alexa","name":"ErrorResponse","messageId":"eba7b523-e768-48b0-939c-50df897b7fc1","payloadVersion":"3"},"endpoint":{"endpointId":"Q0M6MjI6M0Q6RTM6Q0U6MzAtSG9tZWJyaWRnZS1QYW5hc29uaWMtVFYgMS0wMDAwMDBEOC0wMDAwLTEwMDAtODAwMC0wMDI2QkI3NjUyOTE="},"payload":{"type":"INVALID_DIRECTIVE","message":"alexaChannelController missing action"}}}', qos: 0, retain: false, messageId: 11404, dup: false } +0ms
  mqtt-packet:writeToStream writeVarByteInt: writing to stream: <Buffer fc 02> +0ms
  mqtt-packet:writeToStream writeNumberCached: number: 15 +0ms
  mqtt-packet:writeToStream writeNumberCached: <Buffer 00 0f> +1ms
  mqtt-packet:writeToStream publish: payload: '{"event":{"header":{"namespace":"Alexa","name":"ErrorResponse","messageId":"eba7b523-e768-48b0-939c-50df897b7fc1","payloadVersion":"3"},"endpoint":{"endpointId":"Q0M6MjI6M0Q6RTM6Q0U6MzAtSG9tZWJyaWRnZS1QYW5hc29uaWMtVFYgMS0wMDAwMDBEOC0wMDAwLTEwMDAtODAwMC0wMDI2QkI3NjUyOTE="},"payload":{"type":"INVALID_DIRECTIVE","message":"alexaChannelController missing action"}}}' +0ms
  mqttjs:client sendPacket :: writeToStream result true +1ms
  mqttjs:client _sendPacket :: (mqttjs_9e14f143) ::  end +0ms

pause

"me: Alexa, pause tv 2" "alexa":

Did work!!!!

mqttjs:client writable stream :: parsing buffer +23s
  mqtt-packet:parser parse: current state: _parseHeader +26s
  mqtt-packet:parser _parseHeader: packet: Packet { cmd: 'publish', retain: false, qos: 0, dup: false, length: -1, topic: null, payload: null } +1ms
  mqtt-packet:parser parse: state complete. _stateCounter is now: 1 +0ms
  mqtt-packet:parser parse: packet.length: -1, buffer list length: 1447 +0ms
  mqtt-packet:parser _parseVarByteNum +0ms
  mqtt-packet:parser _parseVarByteNum: result: { bytes: 2, value: 2980 } +0ms
  mqtt-packet:parser _parseLength 2980 +1ms
  mqtt-packet:parser parse: state complete. _stateCounter is now: 2 +0ms
  mqtt-packet:parser parse: packet.length: 2980, buffer list length: 1445 +0ms
  mqtt-packet:parser _parsePayload: payload BufferList {
  mqtt-packet:parser   _bufs: [
  mqtt-packet:parser     <Buffer 00 0e 63 6f 6d 6d 61 6e 64 2f 6e 65 78 78 2f 31 7b 22 64 69 72 65 63 74 69 76 65 22 3a 7b 22 68 65 61 64 65 72 22 3a 7b 22 6e 61 6d 65 73 70 61 63 65 ... 1395 more bytes>
  mqtt-packet:parser   ],
  mqtt-packet:parser   length: 1445,
  mqtt-packet:parser   _readableState: ReadableState {
  mqtt-packet:parser     objectMode: false,
  mqtt-packet:parser     highWaterMark: 16384,
  mqtt-packet:parser     buffer: BufferList { length: 0 },
  mqtt-packet:parser     length: 0,
  mqtt-packet:parser     pipes: null,
  mqtt-packet:parser     pipesCount: 0,
  mqtt-packet:parser     flowing: null,
  mqtt-packet:parser     ended: false,
  mqtt-packet:parser     endEmitted: false,
  mqtt-packet:parser     reading: false,
  mqtt-packet:parser     sync: true,
  mqtt-packet:parser     needReadable: false,
  mqtt-packet:parser     emittedReadable: false,
  mqtt-packet:parser     readableListening: false,
  mqtt-packet:parser     resumeScheduled: false,
  mqtt-packet:parser     destroyed: false,
  mqtt-packet:parser     defaultEncoding: 'utf8',
  mqtt-packet:parser     awaitDrain: 0,
  mqtt-packet:parser     readingMore: false,
  mqtt-packet:parser     decoder: null,
  mqtt-packet:parser     encoding: null
  mqtt-packet:parser   },
  mqtt-packet:parser   readable: true,
  mqtt-packet:parser   _events: [Object: null prototype] {
  mqtt-packet:parser     end: [Function: bound onceWrapper] { listener: [Function: onend] }
  mqtt-packet:parser   },
  mqtt-packet:parser   _eventsCount: 1,
  mqtt-packet:parser   _maxListeners: undefined,
  mqtt-packet:parser   _writableState: WritableState {
  mqtt-packet:parser     objectMode: false,
  mqtt-packet:parser     highWaterMark: 16384,
  mqtt-packet:parser     finalCalled: false,
  mqtt-packet:parser     needDrain: false,
  mqtt-packet:parser     ending: false,
  mqtt-packet:parser     ended: false,
  mqtt-packet:parser     finished: false,
  mqtt-packet:parser     destroyed: false,
  mqtt-packet:parser     decodeStrings: true,
  mqtt-packet:parser     defaultEncoding: 'utf8',
  mqtt-packet:parser     length: 0,
  mqtt-packet:parser     writing: false,
  mqtt-packet:parser     corked: 0,
  mqtt-packet:parser     sync: true,
  mqtt-packet:parser     bufferProcessing: false,
  mqtt-packet:parser     onwrite: [Function],
  mqtt-packet:parser     writecb: null,
  mqtt-packet:parser     writelen: 0,
  mqtt-packet:parser     bufferedRequest: null,
  mqtt-packet:parser     lastBufferedRequest: null,
  mqtt-packet:parser     pendingcb: 0,
  mqtt-packet:parser     prefinished: false,
  mqtt-packet:parser     errorEmitted: false,
  mqtt-packet:parser     bufferedRequestCount: 0,
  mqtt-packet:parser     corkedRequestsFree: CorkedRequest { next: null, entry: null, finish: [Function] }
  mqtt-packet:parser   },
  mqtt-packet:parser   writable: true,
  mqtt-packet:parser   allowHalfOpen: true
  mqtt-packet:parser } +0ms
  mqtt-packet:parser _parsePayload complete result: false +1ms
  mqtt-packet:parser parse: exited while loop. packet: 2980, buffer list length: 1445 +0ms
  mqttjs:client work :: getting next packet in queue +3ms
  mqttjs:client work :: no packets in queue +0ms
  mqttjs:client work :: done flag is true +0ms
  mqttjs:client writable stream :: parsing buffer +1ms
  mqtt-packet:parser parse: current state: _parsePayload +1ms
  mqtt-packet:parser _parsePayload: payload BufferList {
  mqtt-packet:parser   _bufs: [
  mqtt-packet:parser     <Buffer 00 0e 63 6f 6d 6d 61 6e 64 2f 6e 65 78 78 2f 31 7b 22 64 69 72 65 63 74 69 76 65 22 3a 7b 22 68 65 61 64 65 72 22 3a 7b 22 6e 61 6d 65 73 70 61 63 65 ... 1395 more bytes>,
  mqtt-packet:parser     <Buffer 31 30 34 2c 5c 22 69 69 64 5c 22 3a 35 38 7d 22 2c 22 53 74 6f 70 22 3a 22 7b 5c 22 64 65 76 69 63 65 49 44 5c 22 3a 5c 22 43 43 3a 32 32 3a 33 44 3a ... 1485 more bytes>
  mqtt-packet:parser   ],
  mqtt-packet:parser   length: 2980,
  mqtt-packet:parser   _readableState: ReadableState {
  mqtt-packet:parser     objectMode: false,
  mqtt-packet:parser     highWaterMark: 16384,
  mqtt-packet:parser     buffer: BufferList { length: 0 },
  mqtt-packet:parser     length: 0,
  mqtt-packet:parser     pipes: null,
  mqtt-packet:parser     pipesCount: 0,
  mqtt-packet:parser     flowing: null,
  mqtt-packet:parser     ended: false,
  mqtt-packet:parser     endEmitted: false,
  mqtt-packet:parser     reading: false,
  mqtt-packet:parser     sync: true,
  mqtt-packet:parser     needReadable: false,
  mqtt-packet:parser     emittedReadable: false,
  mqtt-packet:parser     readableListening: false,
  mqtt-packet:parser     resumeScheduled: false,
  mqtt-packet:parser     destroyed: false,
  mqtt-packet:parser     defaultEncoding: 'utf8',
  mqtt-packet:parser     awaitDrain: 0,
  mqtt-packet:parser     readingMore: false,
  mqtt-packet:parser     decoder: null,
  mqtt-packet:parser     encoding: null
  mqtt-packet:parser   },
  mqtt-packet:parser   readable: true,
  mqtt-packet:parser   _events: [Object: null prototype] {
  mqtt-packet:parser     end: [Function: bound onceWrapper] { listener: [Function: onend] }
  mqtt-packet:parser   },
  mqtt-packet:parser   _eventsCount: 1,
  mqtt-packet:parser   _maxListeners: undefined,
  mqtt-packet:parser   _writableState: WritableState {
  mqtt-packet:parser     objectMode: false,
  mqtt-packet:parser     highWaterMark: 16384,
  mqtt-packet:parser     finalCalled: false,
  mqtt-packet:parser     needDrain: false,
  mqtt-packet:parser     ending: false,
  mqtt-packet:parser     ended: false,
  mqtt-packet:parser     finished: false,
  mqtt-packet:parser     destroyed: false,
  mqtt-packet:parser     decodeStrings: true,
  mqtt-packet:parser     defaultEncoding: 'utf8',
  mqtt-packet:parser     length: 0,
  mqtt-packet:parser     writing: false,
  mqtt-packet:parser     corked: 0,
  mqtt-packet:parser     sync: true,
  mqtt-packet:parser     bufferProcessing: false,
  mqtt-packet:parser     onwrite: [Function],
  mqtt-packet:parser     writecb: null,
  mqtt-packet:parser     writelen: 0,
  mqtt-packet:parser     bufferedRequest: null,
  mqtt-packet:parser     lastBufferedRequest: null,
  mqtt-packet:parser     pendingcb: 0,
  mqtt-packet:parser     prefinished: false,
  mqtt-packet:parser     errorEmitted: false,
  mqtt-packet:parser     bufferedRequestCount: 0,
  mqtt-packet:parser     corkedRequestsFree: CorkedRequest { next: null, entry: null, finish: [Function] }
  mqtt-packet:parser   },
  mqtt-packet:parser   writable: true,
  mqtt-packet:parser   allowHalfOpen: true
  mqtt-packet:parser } +0ms
  mqtt-packet:parser _parsePublish +2ms
  mqtt-packet:parser _parseNum: result: 14 +0ms
  mqtt-packet:parser _parseString: result: command/nexx/1 +0ms
  mqtt-packet:parser _parsePublish: payload from buffer list: <Buffer 7b 22 64 69 72 65 63 74 69 76 65 22 3a 7b 22 68 65 61 64 65 72 22 3a 7b 22 6e 61 6d 65 73 70 61 63 65 22 3a 22 41 6c 65 78 61 2e 50 6c 61 79 62 61 63 ... 2914 more bytes> +1ms
  mqtt-packet:parser _parsePayload complete result: true +0ms
  mqtt-packet:parser parse: state complete. _stateCounter is now: 3 +0ms
  mqtt-packet:parser parse: packet.length: 2980, buffer list length: 2980 +0ms
  mqtt-packet:parser _newPacket +0ms
  mqtt-packet:parser _newPacket: parser emit packet: packet.cmd: publish, packet.payload: {"directive":{"header":{"namespace":"Alexa.PlaybackController","name":"Pause","payloadVersion":"3","messageId":"b77832ee-2586-43cf-b75d-bd2a101ce355","correlationToken":"AAAAAAAAAABsSuxPy8sz4egddPO5AVY+/AEAAAAAAAB9QC5QcQStDVgPCH/1qJ58QfcteMkZVbyGpK/l3FhNQMxeUK0ZY7tzGvQq/FcZjK5rU6dv5VAJLkcfHSXSHgiDSfAQzsL3Vf6+7QayUuVS4u1WAh9HLuadFB9YTE4HyEmhBBpLS+Tbm4RjlNEC7OSqSRr4zBVPlS3kNhKtWv6TtiiCgHP2LLUq3UfYe8uXcG/hKX1t5CbobiREnOS04tDNcjKlZ/3qKdcrpbfH729iehLw66MURUVTr935/waE51RyBecu4FnJHhM4059VQSbv40LXBi3vomcq234y2Qz2iCjUWkPI6bwnpCx5iDQ8gxH5g/Vg8Pfwti0ywf2/Fyub+frHqMfqqo4ObcDZsGeBNflTFEp0yCwyS8xni8nn5sXs8F6LrkxM+PWsLXpR/PN+zYTejZCt/pIRszh39KWWtuKcWbBrGx9ABSjDARM0KMk+egkBJKaDqeJLYlbLxYYvnlNbvsa7b5kQ3SbhL/ihSa3M47LC/Umk2RsGUt+X12Fua7dYWFiIWIZi3FsbKIV2Hjn7mJnThwaazJlX4u/E3KLPDzvGPU7ivwt9n4prcrUDyUWSkTnPNFUARrmxc7JOWw5dMYuDE94HIgpLpLS5gIh71D0+FNvRWRilI16EKuT9FpUytPXMq5tGcybS8RmJca4oUGsEh0V4FHBW"},"endpoint":{"endpointId":"Q0M6MjI6M0Q6RTM6Q0U6MzAtSG9tZWJyaWRnZS1QYW5hc29uaWMtVFYgMi0wMDAwMDBEOC0wMDAwLTEwMDAtODAwMC0wMDI2QkI3NjUyOTE=","cookie":{"TurnOn":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"iid\":10,\"value\":1}","LiveTV":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"value\":5,\"iid\":11}","AdjustPowerLevel":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"iid\":14}","Pause":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"iid\":18,\"value\":11}","AdjustVolume":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"iid\":58}","Stop":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"iid\":18,\"value\":9}","BrightnessTurnOn":"true","Channel":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"iid\":12}","Play":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"iid\":18,\"value\":8}","ReportState":"[{\"interface\":\"Alexa.PowerController\",\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"iid\":10},{\"interface\":\"Alexa.PowerLevelController\",\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"iid\":14},{\"interface\":\"Alexa.PowerController\",\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"iid\":55},{\"interface\":\"Alexa.Speaker\",\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"iid\":56},{\"interface\":\"Alexa.StepSpeaker\",\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"iid\":58}]","CABO":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"value\":1,\"iid\":11}","HDMI 3":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"value\":3,\"iid\":11}","SetVolume":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"iid\":56}","HDMI 2":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"value\":2,\"iid\":11}","Next":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"iid\":18,\"value\":7}","Active Identifier":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"iid\":11}","Previous":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"iid\":18,\"value\":6}","SetPowerLevel":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"iid\":14}","TurnOff":"{\"deviceID\":\"CC:22:3D:E3:CE:30\",\"aid\":104,\"iid\":10,\"value\":0}"}},"payload":{}}}, packet.length: 2980 +0ms
  mqttjs:client parser :: on packet push to packets array. +3ms
  mqtt-packet:parser _newPacket: new packet +0ms
  mqtt-packet:parser parse: state complete. _stateCounter is now: 4 +0ms
  mqtt-packet:parser parse: packet.length: -1, buffer list length: 0 +0ms
  mqtt-packet:parser parse: exited while loop. packet: -1, buffer list length: 0 +0ms
  mqttjs:client work :: getting next packet in queue +0ms
  mqttjs:client work :: packet pulled from queue +0ms
  mqttjs:client _handlePacket :: emitting packetreceive +1ms
  mqttjs:client _handlePublish: packet Packet { cmd: 'publish', retain: false, qos: 0, dup: false, length: 2980, topic: 'command/nexx/1', payload: <Buffer 7b 22 64 69 72 65 63 74 69 76 65 22 3a 7b 22 68 65 61 64 65 72 22 3a 7b 22 6e 61 6d 65 73 70 61 63 65 22 3a 22 41 6c 65 78 61 2e 50 6c 61 79 62 61 63 ... 2914 more bytes> } +0ms
  mqttjs:client _handlePublish: qos 0 +0ms
  alexaLocal Emitting Alexa.PlaybackController +26s
  EventedHTTPServer [::ffff:192.168.0.100] New connection from client +23s
  EventedHTTPServer [::ffff:192.168.0.100] HTTP server listening on port 52853 +1ms
  EventedHTTPServer [::ffff:192.168.0.100] HTTP request: /characteristics +2ms
  HAPServer [CC:22:3D:E3:CE:30] HAP Request: PUT /characteristics +0ms
  Accessory [Homebridge] Processing characteristic set: [{"aid":104,"iid":18,"value":11}] +0ms
  Accessory [Homebridge] Setting Characteristic "Remote Key" to value 11 +0ms
[5/17/2020, 1:57:10 PM] [Cmd4] setValue RemoteKey function for:TV 2 cmd:/usr/bin/php /Library/WebServer/Documents/test/scripts/monitor.php Set 'TV 2' 'RemoteKey' '11'
  EventedHTTPServer [::ffff:192.168.0.100] HTTP Response is finished +3s
[5/17/2020, 1:57:13 PM] [Alexa] PlaybackController Pause CC:22:3D:E3:CE:30 { characteristics: [ { aid: 104, iid: 18, status: 0 } ] } null
  mqttjs:client publish :: message `{"context":{"properties":[]},"event":{"header":{"messageId":"b77832ee-2586-43cf-b75d-bd2a101ce355","namespace":"Alexa","name":"Response","payloadVersion":"3"},"endpoint":{"endpointId":"Q0M6MjI6M0Q6RTM6Q0U6MzAtSG9tZWJyaWRnZS1QYW5hc29uaWMtVFYgMi0wMDAwMDBEOC0wMDAwLTEwMDAtODAwMC0wMDI2QkI3NjUyOTE="},"payload":{}}}` to topic `response/nexx/1` +3s
  mqttjs:client publish :: qos 0 +0ms
  mqttjs:client MqttClient:publish: packet cmd: publish +0ms
  mqttjs:client _sendPacket :: (mqttjs_9e14f143) ::  start +0ms
  mqttjs:client sendPacket :: packet: {
  mqttjs:client   cmd: 'publish',
  mqttjs:client   topic: 'response/nexx/1',
  mqttjs:client   payload: '{"context":{"properties":[]},"event":{"header":{"messageId":"b77832ee-2586-43cf-b75d-bd2a101ce355","namespace":"Alexa","name":"Response","payloadVersion":"3"},"endpoint":{"endpointId":"Q0M6MjI6M0Q6RTM6Q0U6MzAtSG9tZWJyaWRnZS1QYW5hc29uaWMtVFYgMi0wMDAwMDBEOC0wMDAwLTEwMDAtODAwMC0wMDI2QkI3NjUyOTE="},"payload":{}}}',
  mqttjs:client   qos: 0,
  mqttjs:client   retain: false,
  mqttjs:client   messageId: 11392,
  mqttjs:client   dup: false
  mqttjs:client } +0ms
  mqttjs:client sendPacket :: emitting `packetsend` +1ms
  mqttjs:client sendPacket :: writing to stream +0ms
  mqtt-packet:writeToStream generate called +26s
  mqtt-packet:writeToStream generate: packet.cmd: publish +0ms
  mqtt-packet:writeToStream publish: packet: { cmd: 'publish', topic: 'response/nexx/1', payload: '{"context":{"properties":[]},"event":{"header":{"messageId":"b77832ee-2586-43cf-b75d-bd2a101ce355","namespace":"Alexa","name":"Response","payloadVersion":"3"},"endpoint":{"endpointId":"Q0M6MjI6M0Q6RTM6Q0U6MzAtSG9tZWJyaWRnZS1QYW5hc29uaWMtVFYgMi0wMDAwMDBEOC0wMDAwLTEwMDAtODAwMC0wMDI2QkI3NjUyOTE="},"payload":{}}}', qos: 0, retain: false, messageId: 11392, dup: false } +0ms
  mqtt-packet:writeToStream writeVarByteInt: writing to stream: <Buffer c7 02> +0ms
  mqtt-packet:writeToStream writeNumberCached: number: 15 +0ms
  mqtt-packet:writeToStream writeNumberCached: <Buffer 00 0f> +0ms
  mqtt-packet:writeToStream publish: payload: '{"context":{"properties":[]},"event":{"header":{"messageId":"b77832ee-2586-43cf-b75d-bd2a101ce355","namespace":"Alexa","name":"Response","payloadVersion":"3"},"endpoint":{"endpointId":"Q0M6MjI6M0Q6RTM6Q0U6MzAtSG9tZWJyaWRnZS1QYW5hc29uaWMtVFYgMi0wMDAwMDBEOC0wMDAwLTEwMDAtODAwMC0wMDI2QkI3NjUyOTE="},"payload":{}}}' +1ms
  mqttjs:client sendPacket :: writeToStream result true +1ms
  mqttjs:client _sendPacket :: (mqttjs_9e14f143) ::  end +0ms
  EventedHTTPServer [::ffff:192.168.0.100] Client connection closed +5ms
  EventedHTTPServer [::ffff:192.168.0.100] HTTP connection was closed +1ms
  EventedHTTPServer [::ffff:192.168.0.100] HTTP server was closed +0ms
NorthernMan54 commented 4 years ago

Tks for the logs, they really help determine what is going on

me: "Alexa, change input to hdmi 2

Alexa heard "HDMI UM", try working on your pronunciation it took me a couple of try's to get it right.

The important line from the log file was this alexaInputController missing action HDMI UM Unexpected token u in JSON at position 0 {

With changing channels, this is a bit complex as HomeKit TV doesn't support changing channels. In my setup I have configured each Station as an input as part of the TV Setup, how do you change channels in your setup?

IMG_4917

PS I need to update the DEBUG documentation to include not include MQTT debugging, try this next time

DEBUG=-mqtt-packet:,-mqttjs:,* homebridge

vcrosato commented 4 years ago

Yeah, thats because its in brazilian portuguese. “Um” is the number one (1) in portuguese. So the speaking part is right, however somehow it is not mapping or interpreting HDMI1 to “hdmi one” (in portuguese). Will try speaking that word in english, or changing the input name in the configuration.. eg: try adding a space “HDMI1” -> “HDMI 1”.

I just figured out I dont have channels configured in homebridge.. Just the hdmi inputs. Duh, that may be the cause I can't switch channels. Will have to figure out how to configure it in CMD4, since I want to run a script each time I change channel.

Your channel setup is really nice, I probably want something similar.

Im curious, how do you ask alexa to change to a specific channel on your setup? (Eg “Station - ABC”).

Could you share your config (the part related to changing channels/stations)?

Thanks


De: Northern Man notifications@github.com Enviado: Sunday, May 17, 2020 8:15:28 PM Para: NorthernMan54/homebridge-alexa homebridge-alexa@noreply.github.com Cc: vcrosato valentinojr@hotmail.com; Author author@noreply.github.com Assunto: Re: [NorthernMan54/homebridge-alexa] Can't change inputs or channels in TV (#328)

Tks for the logs, they really help determine what is going on

me: "Alexa, change input to hdmi 2

Alexa heard "HDMI UM", try working on your pronunciation it took me a couple of try's to get it right.

The important line from the log file was this alexaInputController missing action HDMI UM Unexpected token u in JSON at position 0 {

With changing channels, this is a bit complex as HomeKit TV doesn't support changing channels. In my setup I have configured each Station as an input as part of the TV Setup, how do you change channels in your setup?

[IMG_4917]https://user-images.githubusercontent.com/19808920/82162444-8f887580-9872-11ea-9d21-ded5e47432e5.PNG

PS I need to update the DEBUG documentation to include not include MQTT debugging, try this next time

DEBUG=-mqtt-packet:,-mqttjs:,* homebridge

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/NorthernMan54/homebridge-alexa/issues/328#issuecomment-629876199, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACDQBJSJQDBEUQ6WLNR3GDDRSBVZBANCNFSM4MX4KJTQ.

NorthernMan54 commented 4 years ago

Using CMD4, can you create an input called “Station - ABC” that changes the channel to ABC? If they are named starting with “Station -“ it will enable them as channels. I’m not familiar with CMD4 so I’m not sure what is possible.

In regards to inputs, homebridge-alexa will log what she thinks she heard, so you could change the name in CMD4 to match what Alexa thinks you are saying. This would fix inputs.

On May 17, 2020, at 7:55 PM, vcrosato notifications@github.com wrote:

Yeah, thats because its in brazilian portuguese. “Um” is the number one (1) in portuguese. So the speaking part is right, however somehow it is not mapping or interpreting HDMI1 to “hdmi one” (in portuguese). Will try speaking that word in english, or changing the input name in the configuration.. eg: try adding a space “HDMI1” -> “HDMI 1”.

I dont have channels configured in homebridge. Just the hdmi inputs: [Image.jpeg]

Your channel setup is really nice, now I want something similar.

Im curious, how do you ask alexa to change to a specific channel on your setup? (Eg “Station ABC”).

Could you share your config (the part related to changing channels/stations)?

Thanks


De: Northern Man notifications@github.com Enviado: Sunday, May 17, 2020 8:15:28 PM Para: NorthernMan54/homebridge-alexa homebridge-alexa@noreply.github.com Cc: vcrosato valentinojr@hotmail.com; Author author@noreply.github.com Assunto: Re: [NorthernMan54/homebridge-alexa] Can't change inputs or channels in TV (#328)

Tks for the logs, they really help determine what is going on

me: "Alexa, change input to hdmi 2

Alexa heard "HDMI UM", try working on your pronunciation it took me a couple of try's to get it right.

The important line from the log file was this alexaInputController missing action HDMI UM Unexpected token u in JSON at position 0 {

With changing channels, this is a bit complex as HomeKit TV doesn't support changing channels. In my setup I have configured each Station as an input as part of the TV Setup, how do you change channels in your setup?

[IMG_4917]https://user-images.githubusercontent.com/19808920/82162444-8f887580-9872-11ea-9d21-ded5e47432e5.PNG

PS I need to update the DEBUG documentation to include not include MQTT debugging, try this next time

DEBUG=-mqtt-packet:,-mqttjs:,* homebridge

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/NorthernMan54/homebridge-alexa/issues/328#issuecomment-629876199, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACDQBJSJQDBEUQ6WLNR3GDDRSBVZBANCNFSM4MX4KJTQ. — You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/NorthernMan54/homebridge-alexa/issues/328#issuecomment-629881450, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEXEFGHSQCKBDBTCCIUPB4TRSB2PHANCNFSM4MX4KJTQ.

vcrosato commented 4 years ago

Hey @NorthernMan54,

By playing with the input names I adjusted the config and the inputs are working now.

I just want to say Thank you very much!!!!!

NorthernMan54 commented 4 years ago

Did you get channels as well?

Sent from my iPad

On May 18, 2020, at 10:23 PM, vcrosato notifications@github.com wrote:

 Hey @NorthernMan54,

By playing with the input names I adjusted the config and the inputs are working now.

I just want to say Thank you very much!!!!!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

vcrosato commented 4 years ago

Did you get channels as well?

Unfortunately no :(

When I ask alexa "Alexa change channel to globo", following message appears on log ...

[5/24/2020, 2:56:32 PM] [Alexa] alexaChannelController invalid station globo Unexpected token u in JSON at position 0 {
  TurnOn: '{"deviceID":"CC:22:3D:E3:CE:30","aid":104,"iid":10,"value":1}',
  AdjustPowerLevel: '{"deviceID":"CC:22:3D:E3:CE:30","aid":104,"iid":14}',
  TV: '{"deviceID":"CC:22:3D:E3:CE:30","aid":104,"value":6,"iid":11}',
  Pause: '{"deviceID":"CC:22:3D:E3:CE:30","aid":104,"iid":18,"value":11}',
  AdjustVolume: '{"deviceID":"CC:22:3D:E3:CE:30","aid":104,"iid":58}',
  Stop: '{"deviceID":"CC:22:3D:E3:CE:30","aid":104,"iid":18,"value":9}',
  BrightnessTurnOn: 'true',
  Channel: '{"deviceID":"CC:22:3D:E3:CE:30","aid":104,"iid":12}',
  'HDMI UM': '{"deviceID":"CC:22:3D:E3:CE:30","aid":104,"value":1,"iid":11}',
  Play: '{"deviceID":"CC:22:3D:E3:CE:30","aid":104,"iid":18,"value":8}',
  ReportState: '[{"interface":"Alexa.PowerController","deviceID":"CC:22:3D:E3:CE:30","aid":104,"iid":10},{"interface":"Alexa.PowerLevelController","deviceID":"CC:22:3D:E3:CE:30","aid":104,"iid":14},{"interface":"Alexa.PowerController","deviceID":"CC:22:3D:E3:CE:30","aid":104,"iid":55},{"interface":"Alexa.Speaker","deviceID":"CC:22:3D:E3:CE:30","aid":104,"iid":56},{"interface":"Alexa.StepSpeaker","deviceID":"CC:22:3D:E3:CE:30","aid":104,"iid":58}]',
  SetVolume: '{"deviceID":"CC:22:3D:E3:CE:30","aid":104,"iid":56}',
  Next: '{"deviceID":"CC:22:3D:E3:CE:30","aid":104,"iid":18,"value":7}',
  'Active Identifier': '{"deviceID":"CC:22:3D:E3:CE:30","aid":104,"iid":11}',
  Previous: '{"deviceID":"CC:22:3D:E3:CE:30","aid":104,"iid":18,"value":6}',
  'APPLE TV': '{"deviceID":"CC:22:3D:E3:CE:30","aid":104,"value":2,"iid":11}',
  SetPowerLevel: '{"deviceID":"CC:22:3D:E3:CE:30","aid":104,"iid":14}',
  'HDMI TRS': '{"deviceID":"CC:22:3D:E3:CE:30","aid":104,"value":3,"iid":11}',
  TurnOff: '{"deviceID":"CC:22:3D:E3:CE:30","aid":104,"iid":10,"value":0}',
  'HDMI DOIS': '{"deviceID":"CC:22:3D:E3:CE:30","aid":104,"value":2,"iid":11}'
}

... even tough I have following configuration on homebridge-cmd4:

                   {"type": "InputSource", 
                    "displayName":"station globo", 
                    "configuredName":"station globo", 
                    "currentVisibilityState":"SHOWN", 
                    "inputSourceType":"TUNER", 
                    "isConfigured":"CONFIGURED", 
                    "identifier":105, 
                    "targetVisibilityState":"SHOWN", 
                    "name":"station_globo" },

CMD4 upon booting homebridge, configure the station as a inputsource:

[5/24/2020, 3:00:45 PM] [Cmd4] **Processing Linked accessory station globo of TV 1**
[5/24/2020, 3:00:45 PM] [Cmd4] Found value:0 for:SHOWN
[5/24/2020, 3:00:45 PM] [Cmd4] Found value:2 for:TUNER
[5/24/2020, 3:00:45 PM] [Cmd4] Found value:1 for:CONFIGURED
[5/24/2020, 3:00:45 PM] [Cmd4] Found value:0 for:SHOWN
[5/24/2020, 3:00:45 PM] [Cmd4] Checking for polling of unset characteristics.
[5/24/2020, 3:00:45 PM] [Cmd4] Polling config is old style. Nothing to check for unset polling characteristics
[5/24/2020, 3:00:45 PM] [Cmd4] Setting up services
[5/24/2020, 3:00:45 PM] [Cmd4] Found characteristic:ConfiguredName value:station globo for:station globo
[5/24/2020, 3:00:45 PM] [Cmd4] Found characteristic:CurrentVisibilityState value:0 for:station globo
[5/24/2020, 3:00:45 PM] [Cmd4] Found characteristic:Identifier value:105 for:station globo
[5/24/2020, 3:00:45 PM] [Cmd4] **Found characteristic:InputSourceType value:2 for:station globo**
[5/24/2020, 3:00:45 PM] [Cmd4] Found characteristic:IsConfigured value:1 for:station globo
[5/24/2020, 3:00:45 PM] [Cmd4] **Found characteristic:Name value:station_globo for:station globo**
[5/24/2020, 3:00:45 PM] [Cmd4] Found characteristic:TargetVisibilityState value:0 for:station globo
[5/24/2020, 3:00:45 PM] [Cmd4] Pushing service for accessory:station globo to:TV 1

I think "globo" should be an "station" not an "inputsource". But it looks like currently there's no way to configure a station through cmd4 plugin. Don't know if homebridge-cmd4 should be updated to accept channels/stations (for homekit) or if the concept of channels is just alexa related, then configuration should be on homebridge-alexa side.

I know homebridge-alexa has the channel config, but I'm not sure I understand how it works. Maybe the current functionality is not sufficient for my scenario. In my case I need it to call a script when channel changing is requested, like cmd4 does in every other kind of action.

Also, I've tried asking alexa to "change channels" without asking for a specific channel. She saids "TV 1 is not compatible with that".

Mute

Also, mute command is not working on the tv's. If I request "Alexa, silence the TV" she says "This command doesn't work on TV 1 device"

5/18/2020, 11:01:10 PM] [Alexa] alexaSpeaker missing action SetMute Unexpected token u in JSON at position 0 {

However the TV speaker, except for the Mute seems to be fine. The volume's up and down works as expected through alexa. Here's the appropriate config in cmd4:

                   {"type": "TelevisionSpeaker",
                    "displayName": "tv1_speaker",
                    "mute":                     "TRUE",
                    "active":                   "ACTIVE",
                    "volume":                    10,
                    "volumeControlType":         "ABSOLUTE",
                    "volumeSelector":            "INCREMENT",
                    "name":                      "tv1_speaker"
                   }

Status

I've tried asking alexa if TV 1 is on. She says "TV 1 is not compatible with that". Would it be great if she could answer those questions too.

Best regards and sorry for the delay