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

Security System Target State sending invalid value #4

Open
chrisdaher opened this issue Jun 22, 2022 · 10 comments
Open

Security System Target State sending invalid value #4

chrisdaher opened this issue Jun 22, 2022 · 10 comments

Comments

@chrisdaher
Copy link

Hi,

I'm trying to connect my Konnected security panel to my homebridge, and it's throwing this warrning/error below.

The result is that I have a constantly spinning "Disarming" garage accessory in my apple home.

Homebridge version: v1.4.1
Homebridge-konnected version: v1.2.1

Every time I open the home app I see this error get printed in homebridge. So there must be some call there that's causing it to fail

[6/22/2022, 2:39:01 PM] [homebridge-konnected] This plugin generated a warning from the characteristic 'Security System Target State': characteristic value 0 is not contained in valid values array. See https://homebridge.io/w/JtMGR for more info.

[6/22/2022, 2:39:01 PM] [homebridge-konnected] Error:
at SecuritySystemTargetState.Characteristic.characteristicWarning (/var/lib/homebridge/node_modules/.pnpm/[email protected]/node_modules/hap-nodejs/src/lib/Characteristic.ts:2142:105)
at SecuritySystemTargetState.Characteristic.validateUserInput (/var/lib/homebridge/node_modules/.pnpm/[email protected]/node_modules/hap-nodejs/src/lib/Characteristic.ts:2054:14)
at SecuritySystemTargetState. (/var/lib/homebridge/node_modules/.pnpm/[email protected]/node_modules/hap-nodejs/src/lib/Characteristic.ts:1582:21)
at step (/var/lib/homebridge/node_modules/.pnpm/[email protected]/node_modules/tslib/tslib.js:144:27)
at Object.next (/var/lib/homebridge/node_modules/.pnpm/[email protected]/node_modules/tslib/tslib.js:125:57)
at /var/lib/homebridge/node_modules/.pnpm/[email protected]/node_modules/tslib/tslib.js:118:75
at new Promise ()
at __awaiter (/var/lib/homebridge/node_modules/.pnpm/[email protected]/node_modules/tslib/tslib.js:114:16)
at SecuritySystemTargetState.Characteristic.handleGetRequest (/var/lib/homebridge/node_modules/.pnpm/[email protected]/node_modules/hap-nodejs/dist/lib/Characteristic.js:689:38)
at SecuritySystemTargetState. (/var/lib/homebridge/node_modules/.pnpm/[email protected]/node_modules/hap-nodejs/src/lib/Characteristic.ts:2207:22)
at step (/var/lib/homebridge/node_modules/.pnpm/[email protected]/node_modules/tslib/tslib.js:144:27)
at Object.next (/var/lib/homebridge/node_modules/.pnpm/[email protected]/node_modules/tslib/tslib.js:125:57)
at /var/lib/homebridge/node_modules/.pnpm/[email protected]/node_modules/tslib/tslib.js:118:75
at new Promise ()
at __awaiter (/var/lib/homebridge/node_modules/.pnpm/[email protected]/node_modules/tslib/tslib.js:114:16)
at SecuritySystemTargetState.Characteristic.toHAP (/var/lib/homebridge/node_modules/.pnpm/[email protected]/node_modules/hap-nodejs/dist/lib/Characteristic.js:1328:38)`

@mkormendy
Copy link
Contributor

Can you clarify with a screenshot of what you're seeing in the Home.app by what you mean with "Disarming garage accessory"?

@mkormendy
Copy link
Contributor

mkormendy commented Jun 23, 2022

I think you meant disarming alarm accessory.

In that case, this error in the log is expected and just a warning (not a fatal error). What you need to do is set up some sensor zones and define what mode they trigger the alarm in. Then reboot, and change the state of the alarm system mode to initiate it. The warning will go away after.

I realize that this is not the best experience and I will endeavor to optimize it in a future version.

@chrisdaher
Copy link
Author

chrisdaher commented Jun 23, 2022 via email

@mkormendy
Copy link
Contributor

mkormendy commented Jun 25, 2022

Looking at your config, there are a couple problems:

  • you seem to have two alarm panels listed. If you only have one, that should be corrected
  • the audible beeper modes should have no "false" values

About your comment "Then reboot, and change the state of the alarm system
mode to initiate it", you're saying I should reboot the konnected panel or
homebridge? And how do I change the state of the alarm system mode?

I meant to say reboot Homebridge.

Have you set any of the Binary Sensor Settings with the Triggerable Modes?
In this case if you want just Away or Off, you have Away (value "1" per the documentation) for each of the Contact or Motion sensor assigned zones.

Try the following config block for Konnected (fixed number of panels, audible beeper modes, and added triggerable modes for each sensor):

{
    "name": "Konnected",
    "advanced": {
        "exitDelaySettings": {
            "audibleBeeperModes": [
                "1"
            ]
        }
    },
    "panels": [
        {
            "name": "Konnected V1-V2",
            "uuid": <UUID>,
            "ipAddress": <IP OF ALARM PANEL>,
            "port": 13678,
            "blink": true,
            "zones": [
                {
                    "enabled": true,
                    "zoneNumber": "1",
                    "zoneType": "contact",
                    "zoneLocation": "Entrance",
                    "binarySensorSettings": {
                        "triggerableModes": [
                            "1"
                        ]
                    }
                },
                {
                    "enabled": true,
                    "zoneNumber": "2",
                    "zoneType": "motion",
                    "zoneLocation": "Basement",
                    "binarySensorSettings": {
                        "triggerableModes": [
                            "1"
                        ]
                    }
                },
                {
                    "enabled": true,
                    "zoneNumber": "3",
                    "zoneType": "contact",
                    "zoneLocation": "Patio",
                    "binarySensorSettings": {
                        "triggerableModes": [
                            "1"
                        ]
                    }
                },
                {
                    "enabled": true,
                    "zoneNumber": "4",
                    "zoneType": "motion",
                    "zoneLocation": "Living Room",
                    "binarySensorSettings": {
                        "triggerableModes": [
                            "1"
                        ]
                    }
                }
            ]
        }
    ],
    "platform": "konnected"
}

@chrisdaher
Copy link
Author

chrisdaher commented Jun 27, 2022 via email

@roycepope
Copy link

The sensors should show up like regular sensors. They will all drop in your default room in the home app. I had to manually put all my sensors in the appropriate room after adding them in homebridge.

@mkormendy
Copy link
Contributor

mkormendy commented Jun 27, 2022

Can you clarify with a screenshot of what you're seeing in the Home.app by what you mean with "Disarming garage accessory"?

I'm still waiting for the screenshot, regardless of the "garage" mixup.

@chrisdaher
Copy link
Author

chrisdaher commented Jun 28, 2022 via email

@mkormendy
Copy link
Contributor

I see you already said that.

Can you provide a screen capture of the Home.app?

@helo-head
Copy link

Try the following config block for Konnected (fixed number of panels, audible beeper modes, and added triggerable modes for each sensor):

{
    "name": "Konnected",
    "advanced": {
        "exitDelaySettings": {
            "audibleBeeperModes": [
                "1"
            ]
        }
    },

I had the same or similar issue (invalid state) as initially reported on first configuration. I fixed it by changing the "audibleBeeperModes" from false,false,1 to just 1.

Not sure why this was causing the issue but rule 25 states never argue with success. Works fine now.

Here is part of the original error message.

[11/10/2022, 20:09:45] [homebridge-konnected] This plugin generated a warning from the characteristic 'Security System Target State': characteristic value 0 is not contained in valid values array. See https://homebridge.io/w/JtMGR for more info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants