Switches not working with 0.1.0 beta of Konnected plugin for homebridge

Answered

I am copying my original post: 


Thank you Mike for your work. I was very excited to try this out. I have an Alarm Pro and all of my contact sensors work. However I am having difficulty getting the piezo buzzer to work as a switch or my siren to sound. I can activate them using the 'accessories' in home bridge and change their states from 'false' to 'true' however I do not get any noise. Also the HomeKit switches for the alarm or buzzer do not seem to change the accessory state in Homebridge per the log. Any ideas?

  • Can you provide the following details to help troubleshoot?

    • Describe the Bug
    • Steps to Reproduce
    • Expected Behavior
    • Attach Files to Support Your Experience:
      • Screenshots
      • Log Snapshot (txt file)
    • Homebridge System:
      • Node.js Version
      • NPM Version
      • Homebridge/HOOBS Version:
      • Operating System: Raspbian / Ubuntu / Debian / Windows / macOS / Docker
      • Process Supervisor: Docker / Systemd / init.d / pm2 / launchctl / hb-service / other / none
    • Any Additional Relevant Information
  • Bug: Unable to activate piezo buzzer or alarm with konnected Pro

    Steps: Using either HomeKit or the homebrdige accessories function, the switch that correlates to the piezo buzzer, in my case zone 7, does not result in any sound despite displaying 'Pro generic switch true' in the log. Also the home app switch has different functionality than activating the accessory under home bridge.


    Of note, I have refreshed alarm panel pro, done a fresh install of plugin, reset homebridge connection, cleared cached accessories but all don't seem to result in same problem.


    I will attach a log with debug mode turned on


    Here is my system info:


    Node.js Version

    v14.15.4

    Npm Version

    v6.14.10

    Homebridge v 1.2.5

    OS: Raspbian GNU/Linux Buster (10)

    Linux version 5.4.79-v7+ (dom@buildbot) (gcc version 8.4.0 (Ubuntu/Linaro 8.4.0-3ubuntu1)) #1373 SMP Mon Nov 23 13:22:33 GMT 2020

    Home bridge Supervisor


    txt
  • @Fred, thanks for the details. I had an initial issue with the piezo buzzer not working immediately after setting it up in Homebridge. I would try the switch for the piezo buzzer, but nothing. Then I restarted Homebridge completely .. and then the button worked. I'm assuming you tried one more restart on Homebridge?

  • Hi. Yes I have restarted Homebridge. I have reflashed the.konnected unit as well. I have tried another piezo buzzer too, switched polarity on the buzzer, removed all other zones and just had piezo buzzer, unpaired from HomeKit. None of those work Shouldn’t the LED blink on the unit when I activate the switch? That also doesn’t happen
  • I have tried another piezo buzzer too, switched polarity on the buzzer, removed all other zones and just had piezo buzzer, unpaired from HomeKit. None of those work

    I wouldn't switch the polarity of a buzzer. Depending on the setup or specific piezo buzzer, you can burn it out. Can you check if the buzzer itself isn't burnt out? A way to test that would be to try restoring your setup before you tried using the Homebridge plugin.

    Shouldn’t the LED blink on the unit when I activate the switch? That also doesn’t happen

    There's a setting in the Homebridge plugin configuration to blink the LED on and off for each panel, the default should be 'selected', however can you verify what that is on the Homebridge configuration for your panels?


  • So I have no idea why, but the piezo buzzer started working. I haven’t touched anything since my last message. I wonder why this is so buggy??
  • I am working on a version that outputs a more semantic logging scheme to help better debug states and the overall state logic. However, I'm also integrating the ability to invert a sensor's input and register that correctly in that version as well. I have some further testing to complete before pushing out the update.

    Do the Homebridge and Home app have different results still after the piezo buzzer started working?



  • Gotcha


    So the logs have remained relatively the same. Here is the log when you switch through homebridge GUI:


    [24/01/2021, 10:55:14] [Konnected] Set [Alarm Box Generic Switch] 'Switch' Characteristic: true

    Pro Generic Switch true

    [24/01/2021, 10:55:15] [Konnected] Get [Alarm Box Generic Switch] 'Switch' Characteristic: 1

    Pro Generic Switch 0

    [24/01/2021, 10:55:16] [Konnected] Get [Alarm Box Generic Switch] 'Switch' Characteristic: 0

    Pro Contact Sensor 0

    [24/01/2021, 10:55:16] [Konnected] Get [Front Door Contact Sensor] 'ContactSensorState' Characteristic: 0

    Pro Contact Sensor 0

    [24/01/2021, 10:55:16] [Konnected] Get [Back Door Contact Sensor] 'ContactSensorState' Characteristic: 0

    Pro Contact Sensor 0

    [24/01/2021, 10:55:16] [Konnected] Get [Porch Door Contact Sensor] 'ContactSensorState' Characteristic: 0

    Pro Contact Sensor 0

    [24/01/2021, 10:55:16] [Konnected] Get [Master Bedroom Contact Sensor] 'ContactSensorState' Characteristic: 0

    Pro Contact Sensor 0

    [24/01/2021, 10:55:16] [Konnected] Get [Office and George's Room Contact Sensor] 'ContactSensorState' Characteristic: 0

    Pro Contact Sensor 0

    [24/01/2021, 10:55:16] [Konnected] Get [Amos's Room Contact Sensor] 'ContactSensorState' Characteristic: 0

    Pro Alarm Siren false

    [24/01/2021, 10:55:16] [Konnected] Get [Alarm Siren] 'Switch' Characteristic: 0



    Here is the log when I switch with Home app:


    [24/01/2021, 10:57:04] [Konnected] Set [Alarm Box Generic Switch] 'Switch' Characteristic: true

  • There is a new beta version out, it doesn't show up as an update in homebridge/hoobs .. you have to manually install it.
    The following command will install it globally on the system:

    npm install -g homebridge-konnected@0.1.2-beta.0

    If you prefer to install it in a specific directory that you've navigated to, just perform the above command, without the '-g'.
    Feel free to install it and see if that helps.

  • Will do! Thanks
  • SO I am having an issue with the piezo buzzers not responding again. They had worked for a time with the latest release of 0.1.2. I can hear them beeping at times when I do a homebridge restart, or I restart the Alarm Pro through the Konnected app on my phone. Should the piezo be configured as a high or low trigger in the plugin? 

  • Should be triggered high.

  • Ok I have them set to trigger high. I have noticed that after restarting the Homebridge server the Konnected panel will become unreachable even with the iOS app. There will be a solid blue light on it. The only remedy seems to be reflashing the board. At other times the buzzers will get caught in some kind of loop where they beep continuously. My settings haven’t changed. Do you think this is a software issue with the plug-in?
  • Hi Fred,

    What does your Homebridge config.json look like?

    Can you send another log output from a fresh start of Homebridge in debug mode with some examples that have the piezo buzzer issues?