Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Failed to Discover Devices, Error Message: "Cannot read properties of undefined (reading 'setCharacteristic')" #24

Open
simonetolomelli opened this issue Feb 19, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@simonetolomelli
Copy link

Describe the Bug

This is the error message I receive: "Cannot read properties of undefined (reading 'setCharacteristic')". Everything is fine up until the plugin looks for the device id setup I didn't provide since there's no indication of any "Device ID" as requested, anywhere. Especially in plugin's logs. There is one (the API readme indicates as "device id", and it's an alpha numeric string but the plugin settings wouldn't recognize it as valid.

To summarize: I can provide username & password, within that in place I'm able to provide the token, the plugin logs everything (even temperatures!) but fails to add the device. I guess that's because I didn't set the device ID. I would, but I can't because it is nowhere to find.

To Reproduce

To reproduce the bug I guess my u/p and coordinating with me to start a cook is mandatory.

Expected Behavior

Properly adding the device in homebridge

Relevant Log Output

[19/02/2025, 12:16:12] [Meater] Restarting child bridge...
[19/02/2025, 12:16:12] Got SIGTERM, shutting down child bridge process...
[19/02/2025, 12:16:17] [Meater] Child bridge process ended
[19/02/2025, 12:16:17] [Meater] Process Ended. Code: 143, Signal: null
[19/02/2025, 12:16:24] [Meater] Restarting Process...
[19/02/2025, 12:16:25] [Meater] Launched child bridge with PID 11474
[19/02/2025, 12:16:26] [Meater] Loaded @homebridge-plugins/homebridge-meater v2.0.1 child bridge successfully
[19/02/2025, 12:16:26] [Meater] Using debugMode Logging: debugMode
[19/02/2025, 12:16:26] [Meater] Platform Config refreshRate Not Set: undefined
[19/02/2025, 12:16:26] [Meater] Plugin Version: 2.0.1
[19/02/2025, 12:16:26] [Meater] Finished initializing platform: Meater
[19/02/2025, 12:16:26] [Meater] Executed didFinishLaunching callback
[19/02/2025, 12:16:26] [Meater] Config OK
[19/02/2025, 12:16:26] [Meater] Platform Config updateRate Not Set: undefined
[19/02/2025, 12:16:26] [Meater] Platform Config pushRate Not Set: undefined
[19/02/2025, 12:16:26] [Meater] Device statusCode: 200
[19/02/2025, 12:16:26] [Meater] Device: {"status":"OK","statusCode":200,"data":{"devices":[{"id":"xxxxx","temperature":{"internal":22,"ambient":22},"cook":{"id":"xxxxxx","name":"Custom Cook","state":"Configured","temperature":{"target":60,"peak":22},"time":{"elapsed":398,"remaining":-1}},"updated_at":xxxxxx}]},"meta":{}}
[19/02/2025, 12:16:26] [Meater] Device StatusCode: 200
[19/02/2025, 12:16:26] [Meater] Found 1 Devices
[19/02/2025, 12:16:26] [Meater] No Meater Device Config: undefined
[19/02/2025, 12:16:26] [Meater] Plugin Version: 2.0.1
[19/02/2025, 12:16:26] [Meater] Adding new accessory, Meater: Meater Thermometer (a1fa), id: xxxxx
[19/02/2025, 12:16:26] [Meater] Meater Thermometer (a1fa) Using Debug Mode Logging: debugMode
[19/02/2025, 12:16:26] [Meater] Meater Thermometer (a1fa) Using Default refreshRate: 1800
[19/02/2025, 12:16:26] [Meater] Meater Thermometer (a1fa) Firmware Version: 2.0.1
[19/02/2025, 12:16:26] [Meater] Meater Thermometer (a1fa) Meater Thermometer (a1fa) Internal Temperature Service
[19/02/2025, 12:16:26] [Meater] Meater Thermometer (a1fa) Meater Thermometer (a1fa) Ambient Temperature Service
[19/02/2025, 12:16:26] [Meater] [DEBUG] Meater Thermometer (a1fa) deviceFirmwareVersion: 2.0.1
[19/02/2025, 12:16:26] [Meater] Meater Thermometer (a1fa) Using Default updateRate: 5
[19/02/2025, 12:16:26] [Meater] Failed to Discover Devices, Error Message: "Cannot read properties of undefined (reading 'setCharacteristic')", Submit Bugs Here: https://bit.ly/homebridge-meater-bug-report
[19/02/2025, 12:16:26] [Meater] Failed to Discover Devices, Error: TypeError: Cannot read properties of undefined (reading 'setCharacteristic')
[19/02/2025, 12:16:26] [Meater] Meater Thermometer (a1fa) Using Default pushRate: 1

Config for homebridge-meater

{
            "name": "Meater",
            "credentials": {
                "email": "xxxxxxxxx",
                "password": "xxxxxxxxxx",
                "token": "xxxxxxxxxxxxxx",
                "notice": "Keep your tokens a secret!"
            },
            <!-- I know there should be the device settings here -->
            "_bridge": {
                "username": "0E:E6:68:19:1E:F1",
                "port": 44396
            },
            "platform": "Meater"
        }

Screenshots

No response

Device and Model

Meater SE

Node.js Version

v22.14.0

Homebridge Version

v1.9.0

Homebridge Meater Plugin Version

v2.0.1

Homebridge UI Version

v4.71.0

Operating System

Raspbian

@simonetolomelli simonetolomelli added the bug Something isn't working label Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants