Skip to content

Failed to Identify Jablotron services and devices #130

Description

@sarzwest

Failed to Identify Jablotron services and devices

Describe The Problem:
When I install jablotron plugin and want to process chapter https://github.com/fdegier/homebridge-jablotron-alarm#Identify-Jablotron-services-and-devices i get unchecked error.

To Reproduce:
node config-helper.js <username> <password>

Logs:

Jablotron - json parsing error: TypeError: Cannot read properties of undefined (reading 'forEach')
    at /homebridge/node_modules/homebridge-jablotron/config-helper.js:154:26
    at /homebridge/node_modules/homebridge-jablotron/lib/jablotron-client.js:57:17
    at IncomingMessage.<anonymous> (/homebridge/node_modules/homebridge-jablotron/lib/jablotron-client.js:118:21)
    at IncomingMessage.emit (node:events:531:35)
    at endReadableNT (node:internal/streams/readable:1696:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Unable to parse JSON data: {"data":{"service-states":{"service-name":"Tun\u011bchody"},"states":[]},"http-code":200}
{"hostname":"api.jablonet.net","port":443,"path":"/api/2.2/JA100/thermoDevicesGet.json","method":"POST","timeout":20000,"headers":{"Cookie":"PHPSESSID=l6jn96ue39d8v5sllihb3ip9h3","x-vendor-id":"JABLOTRON:Jablotron","Content-Type":"application/json","x-client-version":"MYJ-PUB-ANDROID-12","accept-encoding":"*","Accept":"application/json","Accept-Language":"en"}}

Environment:

  • Homebridge Version: v3.1.4
  • Node Version: v20.15.0
  • Homebridge-jablotron plugin version: v3.1.4
  • Operating System and OS Version: Docker

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