node-red-contrib-homekit-bridged: [Bug]: Security system with characteristics, bad behaviour

First of all, thank you again for this great set of node!!

Describe the bug The security system node behaves bad if you set the characteristics. If you set the characteristics (see “to reproduce”), the node gives an error in the node-red log:

[BridgeAccessi F1D3@Antifurto@Antifurto@Security System Current State] characteristic value 0 is not contained in valid values array
[BridgeAccessi F1D3@Antifurto@Antifurto@Security System Target State] characteristic value 0 is not contained in valid values array

The bad thing, is that the node outputs a SecuritySystemTargetState = 1 (ARM AWAY) to the flow, arming the security system,

To Reproduce Put a security system node ti the flow and set these characteristics in the config window.

{
    "SecuritySystemCurrentState": {
        "validValues": [
            1,
            2,
            3,
            4
        ]
    },
    "SecuritySystemTargetState": {
        "validValues": [
            1,
            2,
            3,
            4
        ]
    }
}

Expected behavior No error on noce-red log and no output SecuritySystemTargetState = 1

Thank you!!

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 15 (10 by maintainers)

Commits related to this issue

Most upvoted comments

No worries and no pressure @Shaquu - it’s open source ☺️

The latest update seems to have solved the issue.

“Error” could be a strong word, perhaps it’s just a “warning” or simply “information”?

Has anyone had any broken functionality from this?