This repository was archived by the owner on Feb 24, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 96
[bug] with custom device thermostat, "Cannot read property 'value_id' of undefined" #841
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Version
Build/Run method
- Docker
- PKG
- Manually built (git clone - npm install - npm run build )
Zwave2Mqtt version: 4.0.6
Openzwave Version: 1.6.0
Describe the bug
This worked alright in 4.0.5, but in 4.0.6 my custom device config for my thermostat is not correctly producing HA thermostat devices.
I see this in the logs:
2020-11-29T01:10:26.402Z z2m:Gateway Error while discovering device climate_thermostat of node 34: Cannot read property 'value_id' of undefined
Here's my customDevices.json:
{
"21076-33136-512": [
{
"type": "climate",
"object_id": "thermostat",
"values": [
"49-1-1",
"64-1-0",
"67-1-1",
"67-1-2"
],
"mode_map": {
"auto": "Auto",
"cool": "Cool",
"off": "Off",
"heat": "Heat"
},
"setpoint_topic": {
"Cool": "67-1-2",
"Heat": "67-1-1"
},
"discovery_payload": {
"min_temp": 50,
"max_temp": 99,
"modes": [
"auto",
"cool",
"off",
"heat"
],
"mode_state_topic": "64-1-0",
"mode_command_topic": true,
"current_temperature_topic": "49-1-1",
"current_temperature_template": "{{ value_json.value }}",
"temperature_state_template": "{{ value_json.value }}",
"temperature_command_topic": true
}
}
]
}Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working