arachnetech / homebridge-mqttthing

A plugin for Homebridge allowing the integration of many different accessory types using MQTT.
Apache License 2.0
462 stars 104 forks source link

`getLockTargetState` not in configured values #677

Open Chrismarsh opened 2 weeks ago

Chrismarsh commented 2 weeks ago

I'm trying to add a door lock that uses unlocked and locked values, according to zwave-js ui

{
    "type": "lockMechanism",
    "name": "Front door",
    "url": "mqtt://192.168.1.206:1883",
    "logMqtt": true,
    "topics": {
        "getLockCurrentState": {
            "topic": "zwave/smartcode/98/0/boltStatus"
        },
        "getLockTargetState ": {
            "topic": "zwave/smartcode/98/0/boltStatus"
        },
        "setLockTargetState": {
            "topic": "zwave/smartcode/98/0/boltStatus"
        }
    },
    "lockValues": [
        "unlocked",
        "locked",
        "J",
        "?"
    ],
    "accessory": "mqttthing"
}

However, I get this strange warning when doing so. This is not expected

[6/16/2024, 10:32:32 PM] [Front door] Warning: lockCurrentState received [{"time":1718595363115,"value":"unlocked"}] which is not in configured values {"unlocked":0,"locked":1,"J":2,"?":3}