Skip to content

Hs.py not parsing wemo info from homebridge correctly #23

@kerbelangr

Description

@kerbelangr

Using homebridge-weno plugin… devices report fine in homebridge and homekit. Using hs.py and proper port the devices are found, but the on/off value is empty.

SDB: homescript_debug_2026.02.02.log
HSDB: HomeScript version: 5.2
HSDB: URL: http://192.168.7.221:54241/
HSDB: Headers: {"Content-Type": "Application/json", "authorization": "321-54-703"}
HSDB: Accessories: {"Casa_Front_Porch_Lights": {"aid": 4, "iid": 10, "type": "LightSwitch", "value": []}, "Casa_Pool_Motion_Light": {"aid": 5, "iid": 10, "type": "LightSwitch", "value": []}, "Casa_Side_Cam_and_Light": {"aid": 2, "iid": 10, "type": "LightSwitch", "value": []}, "Casa_Patio_Motion_Light": {"aid": 3, "iid": 10, "type": "LightSwitch", "value": []}}
HSDB: Selected accessories: []
HSDB: Selected accessory names: {}
HSDB: Arguments: ["/Users/kerrybelanger/lights_n_alarm/hs_wemo.py", "-d", "-l", "value"]
HSDB: Get accessories response:
{'accessories': [{'aid': 1, 'services': [{'type': '3E', 'iid': 1, 'characteristics': [{'type': '14', 'iid': 2, 'perms': ['pw'], 'description': 'Identify', 'format': 'bool'}, {'type': '20', 'iid': 3, 'value': 'homebridge.io', 'perms': ['pr'], 'description': 'Manufacturer', 'format': 'string', 'maxLen': 64}, {'type': '21', 'iid': 4, 'value': 'homebridge', 'perms': ['pr'], 'description': 'Model', 'format': 'string', 'maxLen': 64}, {'type': '23', 'iid': 5, 'value': 'Homebridge Wemo 3E81', 'perms': ['pr'], 'description': 'Name', 'format': 'string', 'maxLen': 64}, {'type': '30', 'iid': 6, 'value': '0E:86:F3:5B:59:D3', 'perms': ['pr'], 'description': 'Serial Number', 'format': 'string', 'maxLen': 64}, {'type': '52', 'iid': 7, 'value': '1.11.1', 'perms': ['pr'], 'description': 'Firmware Revision', 'format': 'string'}]}, {'type': 'A2', 'iid': 2000000008, 'characteristics': [{'type': '37', 'iid': 9, 'value': '1.1.0', 'perms': ['pr'], 'description': 'Version', 'format': 'string', 'maxLen': 64}]}]}, {'aid': 4, 'services': [{'type': '3E', 'iid': 1, 'characteristics': [{'type': '14', 'iid': 2, 'perms': ['pw'], 'description': 'Identify', 'format': 'bool'}, {'type': '20', 'iid': 3, 'value': 'Belkin Wemo', 'perms': ['pr'], 'description': 'Manufacturer', 'format': 'string', 'maxLen': 64}, {'type': '21', 'iid': 4, 'value': 'LightSwitch', 'perms': ['pr'], 'description': 'Model', 'format': 'string', 'maxLen': 64}, {'type': '23', 'iid': 5, 'value': 'Casa Front Porch Lights', 'perms': ['pr'], 'description': 'Name', 'format': 'string', 'maxLen': 64}, {'type': '30', 'iid': 6, 'value': '221842K1300D59', 'perms': ['pr'], 'description': 'Serial Number', 'format': 'string', 'maxLen': 64}, {'type': '52', 'iid': 7, 'value': '0', 'perms': ['pr'], 'description': 'Firmware Revision', 'format': 'string'}, {'type': 'E3', 'iid': 8, 'value': 'Casa Front Porch Lights', 'perms': ['ev', 'pr', 'pw'], 'description': 'Configured Name', 'format': 'string'}]}, {'type': '49', 'iid': 9, 'characteristics': [{'type': '25', 'iid': 10, 'value': 0, 'perms': ['ev', 'pr', 'pw'], 'description': 'On', 'format': 'bool'}]}, {'type': 'E863F007-079E-48FF-8F27-9C2605A29F52', 'iid': 11, 'characteristics': [{'type': 'E863F11C-079E-48FF-8F27-9C2605A29F52', 'iid': 15, 'perms': ['pw', 'hd'], 'description': 'S2W1', 'format': 'data'}, {'type': 'E863F121-079E-48FF-8F27-9C2605A29F52', 'iid': 16, 'perms': ['pw', 'hd'], 'description': 'S2W2', 'format': 'data'}, {'type': '23', 'iid': 12, 'value': 'Casa Front Porch Lights History', 'perms': ['pr'], 'description': 'Name', 'format': 'string', 'maxLen': 64}, {'type': 'E863F116-079E-48FF-8F27-9C2605A29F52', 'iid': 13, 'value': '0aYCAAAAAABIsC4vAQ4BNwHADwAAAAAAAAAAAQE=', 'perms': ['pr', 'ev', 'hd'], 'description': 'S2R1', 'format': 'data'}, {'type': 'E863F117-079E-48FF-8F27-9C2605A29F52', 'iid': 14, 'value': 'AA==', 'perms': ['pr', 'ev', 'hd'], 'description': 'S2R2', 'format': 'data'}]}]}, {'aid': 5, 'services': [{'type': '3E', 'iid': 1, 'characteristics': [{'type': '14', 'iid': 2, 'perms': ['pw'], 'description': 'Identify', 'format': 'bool'}, {'type': '20', 'iid': 3, 'value': 'Belkin Wemo', 'perms': ['pr'], 'description': 'Manufacturer', 'format': 'string', 'maxLen': 64}, {'type': '21', 'iid': 4, 'value': 'LightSwitch', 'perms': ['pr'], 'description': 'Model', 'format': 'string', 'maxLen': 64}, {'type': '23', 'iid': 5, 'value': 'Casa Pool Motion Light', 'perms': ['pr'], 'description': 'Name', 'format': 'string', 'maxLen': 64}, {'type': '30', 'iid': 6, 'value': '221533K1300BB7', 'perms': ['pr'], 'description': 'Serial Number', 'format': 'string', 'maxLen': 64}, {'type': '52', 'iid': 7, 'value': '0', 'perms': ['pr'], 'description': 'Firmware Revision', 'format': 'string'}, {'type': 'E3', 'iid': 8, 'value': 'Casa Pool Motion Light', 'perms': ['ev', 'pr', 'pw'], 'description': 'Configured Name', 'format': 'string'}]}, {'type': '49', 'iid': 9, 'characteristics': [{'type': '25', 'iid': 10, 'value': 0, 'perms': ['ev', 'pr', 'pw'], 'description': 'On', 'format': 'bool'}]}, {'type': 'E863F007-079E-48FF-8F27-9C2605A29F52', 'iid': 11, 'characteristics': [{'type': 'E863F11C-079E-48FF-8F27-9C2605A29F52', 'iid': 15, 'perms': ['pw', 'hd'], 'description': 'S2W1', 'format': 'data'}, {'type': 'E863F121-079E-48FF-8F27-9C2605A29F52', 'iid': 16, 'perms': ['pw', 'hd'], 'description': 'S2W2', 'format': 'data'}, {'type': '23', 'iid': 12, 'value': 'Casa Pool Motion Light History', 'perms': ['pr'], 'description': 'Name', 'format': 'string', 'maxLen': 64}, {'type': 'E863F116-079E-48FF-8F27-9C2605A29F52', 'iid': 13, 'value': '0aYCAAAAAABIsC4vAQ4BOwHADwAAAAAAAAAAAQE=', 'perms': ['pr', 'ev', 'hd'], 'description': 'S2R1', 'format': 'data'}, {'type': 'E863F117-079E-48FF-8F27-9C2605A29F52', 'iid': 14, 'value': 'AA==', 'perms': ['pr', 'ev', 'hd'], 'description': 'S2R2', 'format': 'data'}]}]}, {'aid': 2, 'services': [{'type': '3E', 'iid': 1, 'characteristics': [{'type': '14', 'iid': 2, 'perms': ['pw'], 'description': 'Identify', 'format': 'bool'}, {'type': '20', 'iid': 3, 'value': 'Belkin Wemo', 'perms': ['pr'], 'description': 'Manufacturer', 'format': 'string', 'maxLen': 64}, {'type': '21', 'iid': 4, 'value': 'LightSwitch', 'perms': ['pr'], 'description': 'Model', 'format': 'string', 'maxLen': 64}, {'type': '23', 'iid': 5, 'value': 'Casa Side Cam and Light', 'perms': ['pr'], 'description': 'Name', 'format': 'string', 'maxLen': 64}, {'type': '30', 'iid': 6, 'value': '221520K1300006', 'perms': ['pr'], 'description': 'Serial Number', 'format': 'string', 'maxLen': 64}, {'type': '52', 'iid': 7, 'value': '0', 'perms': ['pr'], 'description': 'Firmware Revision', 'format': 'string'}, {'type': 'E3', 'iid': 8, 'value': 'Casa Side Cam and Light', 'perms': ['ev', 'pr', 'pw'], 'description': 'Configured Name', 'format': 'string'}]}, {'type': '49', 'iid': 9, 'characteristics': [{'type': '25', 'iid': 10, 'value': 1, 'perms': ['ev', 'pr', 'pw'], 'description': 'On', 'format': 'bool'}]}, {'type': 'E863F007-079E-48FF-8F27-9C2605A29F52', 'iid': 11, 'characteristics': [{'type': 'E863F11C-079E-48FF-8F27-9C2605A29F52', 'iid': 15, 'perms': ['pw', 'hd'], 'description': 'S2W1', 'format': 'data'}, {'type': 'E863F121-079E-48FF-8F27-9C2605A29F52', 'iid': 16, 'perms': ['pw', 'hd'], 'description': 'S2W2', 'format': 'data'}, {'type': '23', 'iid': 12, 'value': 'Casa Side Cam and Light History', 'perms': ['pr'], 'description': 'Name', 'format': 'string', 'maxLen': 64}, {'type': 'E863F116-079E-48FF-8F27-9C2605A29F52', 'iid': 13, 'value': '0aYCAAAAAABIsC4vAQ4BMAHADwAAAAAAAAAAAQE=', 'perms': ['pr', 'ev', 'hd'], 'description': 'S2R1', 'format': 'data'}, {'type': 'E863F117-079E-48FF-8F27-9C2605A29F52', 'iid': 14, 'value': 'AA==', 'perms': ['pr', 'ev', 'hd'], 'description': 'S2R2', 'format': 'data'}]}]}, {'aid': 3, 'services': [{'type': '3E', 'iid': 1, 'characteristics': [{'type': '14', 'iid': 2, 'perms': ['pw'], 'description': 'Identify', 'format': 'bool'}, {'type': '20', 'iid': 3, 'value': 'Belkin Wemo', 'perms': ['pr'], 'description': 'Manufacturer', 'format': 'string', 'maxLen': 64}, {'type': '21', 'iid': 4, 'value': 'LightSwitch', 'perms': ['pr'], 'description': 'Model', 'format': 'string', 'maxLen': 64}, {'type': '23', 'iid': 5, 'value': 'Casa Patio Motion Light', 'perms': ['pr'], 'description': 'Name', 'format': 'string', 'maxLen': 64}, {'type': '30', 'iid': 6, 'value': '221744K1300B8E', 'perms': ['pr'], 'description': 'Serial Number', 'format': 'string', 'maxLen': 64}, {'type': '52', 'iid': 7, 'value': '0', 'perms': ['pr'], 'description': 'Firmware Revision', 'format': 'string'}, {'type': 'E3', 'iid': 8, 'value': 'Casa Patio Motion Light', 'perms': ['ev', 'pr', 'pw'], 'description': 'Configured Name', 'format': 'string'}]}, {'type': '49', 'iid': 9, 'characteristics': [{'type': '25', 'iid': 10, 'value': 0, 'perms': ['ev', 'pr', 'pw'], 'description': 'On', 'format': 'bool'}]}, {'type': 'E863F007-079E-48FF-8F27-9C2605A29F52', 'iid': 11, 'characteristics': [{'type': 'E863F11C-079E-48FF-8F27-9C2605A29F52', 'iid': 15, 'perms': ['pw', 'hd'], 'description': 'S2W1', 'format': 'data'}, {'type': 'E863F121-079E-48FF-8F27-9C2605A29F52', 'iid': 16, 'perms': ['pw', 'hd'], 'description': 'S2W2', 'format': 'data'}, {'type': '23', 'iid': 12, 'value': 'Casa Patio Motion Light History', 'perms': ['pr'], 'description': 'Name', 'format': 'string', 'maxLen': 64}, {'type': 'E863F116-079E-48FF-8F27-9C2605A29F52', 'iid': 13, 'value': '0aYCAAAAAABIsC4vAQ4BOAHADwAAAAAAAAAAAQE=', 'perms': ['pr', 'ev', 'hd'], 'description': 'S2R1', 'format': 'data'}, {'type': 'E863F117-079E-48FF-8F27-9C2605A29F52', 'iid': 14, 'value': 'AA==', 'perms': ['pr', 'ev', 'hd'], 'description': 'S2R2', 'format': 'data'}]}]}]}
HSDB: End get accessories response
HSDB: End homeScript debug file

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions