RoeiOfri / homebridge-palgate-opener

PalGates homebridge plugin
MIT License
26 stars 8 forks source link

Error when try to configure #8

Closed gamlielalon1983 closed 3 years ago

gamlielalon1983 commented 3 years ago

Hi When trying to install the plug-in I get error message Failed to load plugins config schema

thanks

RoeiOfri commented 3 years ago

Hi,

Thanks for reaching out, please provide the following information:

  1. Log error (from console).
  2. OS version.
  3. HB version.
  4. Plugin version you’re using.

Thanks!

gamlielalon1983 commented 3 years ago

Hi Thanks for reply. 1. Starting to advertise 'Homebridge 4CAB 8459' using bonjour-hap backend! [19/03/2021, 21:26:22] Homebridge v1.3.4 (Homebridge 4CAB) is running on port 51513. [19/03/2021, 21:26:23] [homebridge-risco-alarm-fork] This plugin generated a warning from the characteristic 'Security System Current State': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [19/03/2021, 21:26:23] [homebridge-risco-alarm-fork] This plugin generated a warning from the characteristic 'Security System Target State': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [19/03/2021, 21:26:24] [RiscoAlarm] New state detected: (1) -> AWAY_ARM. Notify! [19/03/2021, 21:26:26] [Switcher Boiler] Found New Switcher "Switcher Boiler D851" | ID:b2741f | IP: 10.250.1.122 [19/03/2021, 21:26:26] [Switcher Boiler] Initializing Switch Accessory [19/03/2021, 21:26:26] [Switcher Boiler] Switcher "Switcher Boiler D851" (b2741f) is Connected! [19/03/2021, 21:26:32] [eWeLink] [מפסק חדר ילדים] initialised and LAN mode unavailable as unreachable. [19/03/2021, 21:26:32] [eWeLink] [מפסק תאורה חיצונית ] initialised and LAN mode unavailable as unreachable. [19/03/2021, 21:26:32] [eWeLink] [מפסק חדר הורים] initialised and LAN mode unavailable as unreachable. [19/03/2021, 21:26:33] [eWeLink] [מפסק שירותים] initialised and LAN mode unavailable as unreachable. [19/03/2021, 21:26:33] [eWeLink] ✓ Setup complete. This plugin has been made with ♥ by bwp91 from the UK! [19/03/2021, 21:26:33] [Switcher Boiler] Switcher Switcher Boiler D851 is OFF [19/03/2021, 21:27:34] [Switcher Boiler] Switcher Switcher Boiler D851 is OFF [19/03/2021, 21:28:08] [Switcher Boiler] Switcher Switcher Boiler D851 is OFF [19/03/2021, 21:30:57] [Switcher Boiler] Switcher Switcher Boiler D851 is OFF [19/03/2021, 21:31:38] [Homebridge UI] Running Command: sudo -E -n npm install -g homebridge-palgate-opener@1.0.3 [19/03/2021, 22:20:12] [Switcher Boiler] Switcher Switcher Boiler D851 is OFF [19/03/2021, 22:30:27] [Switcher Boiler] Switcher Switcher Boiler D851 is OFF [19/03/2021, 23:13:27] [Homebridge UI] Running Command: sudo -E -n npm install -g homebridge-palgate-opener@latest [19/03/2021, 23:13:53] [Homebridge UI] Starting terminal session [19/03/2021, 23:14:23] [Homebridge UI] Terminal session ended. [19/03/2021, 23:14:33] [Homebridge UI] Starting terminal session [19/03/2021, 23:16:07] [Homebridge UI] Terminal session ended. [19/03/2021, 23:18:00] [Switcher Boiler] Switcher Switcher Boiler D851 is OFF [19/03/2021, 23:18:00] [Switcher Boiler] Switcher Switcher Boiler D851 is OFF [19/03/2021, 23:18:03] [Switcher Boiler] Switcher Switcher Boiler D851 is OFF

2.PRETTY_NAME="Raspbian GNU/Linux 10 (buster)" NAME="Raspbian GNU/Linux" VERSION_ID="10" VERSION="10 (buster)" VERSION_CODENAME=buster ID=raspbian ID_LIKE=debian HOME_URL="http://www.raspbian.org/" SUPPORT_URL="http://www.raspbian.org/RaspbianForums" BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs" pi@homebridge:/var/lib/homebridge $

  1. 1.3.4

  2. tried few all with same issue

Thanks

RoeiOfri commented 3 years ago

I see you’re using v1.0.3, please use the latest version instead (v1.0.6). Did you work according to the instructions? The error you’re describing is an error from the config yaml, did you add the relevant configuration to the yaml file?

Did you extract the gate ID and the token using the tool?

gamlielalon1983 commented 3 years ago

Hi I installed in start the latest one and received this error. Someone told me he had the same issue and he installed older version and than upgrade and it solved the issue. so I tried the same and it wasn't help. I didn't had a chance to configure something the message appears in the time of install

RoeiOfri commented 3 years ago

Are you installing it via HB terminal or via the GUI?

gamlielalon1983 commented 3 years ago

GUI

On Sat, Mar 20, 2021 at 09:54 RoeiOfri @.***> wrote:

Are you installing it via HB terminal or via the GUI?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/RoeiOfri/homebridge-palgate-opener/issues/8#issuecomment-803268216, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMOTIOPJ54IN3BLPDSBTNJLTERIEPANCNFSM4ZPMGODQ .

RoeiOfri commented 3 years ago

From the log you attached I don’t see this error, can you paste the exact error you’re getting?

RoeiOfri commented 3 years ago

Try to open the terminal via HB and type “npm i homebridge-palgate-opener” (without the quotes) if error is shown paste it here.

gamlielalon1983 commented 3 years ago

pi@homebridge:/var/lib/homebridge $ npm i homebridge-palgate-opener

added 2 packages, and audited 3 packages in 3s

found 0 vulnerabilities pi@homebridge:/var/lib/homebridge $

RoeiOfri commented 3 years ago

OK, I don’t see any errors here, it was installed successfully. please read the readme on how to configure it in the yaml and how to extract the token.

gamlielalon1983 commented 3 years ago

how to configure cause from HB when I try to edit I get the error. edit from the linux?

gamlielalon1983 commented 3 years ago

{ "pluginAlias": "PalGateOpener", "pluginType": "accessory", "singular": false, "headerDisplay": "Homebridge plugin for PalGate app", "footerDisplay": "Created by Roei Ofri", "schema": { "type": "object", "properties": { "name": { "title": "PalGateOpener", "type": "string", "default": "PalGateOpener", "required": false }, "accessoryType": { "title": "Accessory Type", "description": "Accessory type", "type": "string", "default": "switch", "required": false, "oneOf": [ { "title": "Switch", "enum": ["switch"] }, { "title": "GaradgeDoor", "enum": ["garagedoor"] }, ] } } } }

gamlielalon1983 commented 3 years ago

thats how the json looks after install

RoeiOfri commented 3 years ago

Please read the documentation. Everything is written there. Follow the instructions.

gamlielalon1983 commented 3 years ago

Hi Thanks for trying to help. Just to let you know also my friend tried to install it and get same error so it's not only me.

gamlielalon1983 commented 3 years ago

Just to let you know also my friend tried to install and got the same message.

On Sat, Mar 20, 2021 at 15:51 RoeiOfri @.***> wrote:

Closed #8 https://github.com/RoeiOfri/homebridge-palgate-opener/issues/8 .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/RoeiOfri/homebridge-palgate-opener/issues/8#event-4485628631, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMOTIOLUNELWWWBRAJTLD73TESR47ANCNFSM4ZPMGODQ .