homebridge / plugins

Information and resources for Homebridge plugins.
https://homebridge.io/w/Verified-Plugins
GNU General Public License v3.0
368 stars 17 forks source link

homebridge-ngbs-icon-thermostat #581

Closed peterrakolcza closed 1 year ago

peterrakolcza commented 1 year ago

Link To GitHub Repo

https://github.com/peterrakolcza/homebridge-ngbs-icon-thermostat

Link To NPM Package

https://www.npmjs.com/package/homebridge-ngbs-icon-thermostat

github-actions[bot] commented 1 year ago

The following pre-checks failed:

:x: Failed to test plugin. :x: Command failed: docker run --rm -e HOMEBRIDGE_PLUGIN_NAME=homebridge-ngbs-icon-thermostat -v /home/runner/work/verified/verified/precheck/results:/results check

Comment /check to run checks again.

peterrakolcza commented 1 year ago

/check

github-actions[bot] commented 1 year ago

The following pre-checks failed:

:x: Failed to test plugin. :x: Command failed: docker run --rm -e HOMEBRIDGE_PLUGIN_NAME=homebridge-ngbs-icon-thermostat -v /home/runner/work/verified/verified/precheck/results:/results check

Comment /check to run checks again.

bwp91 commented 1 year ago

/check

github-actions[bot] commented 1 year ago

The following pre-checks failed:

:x: Failed to test plugin. :x: Command failed: docker run --rm -e HOMEBRIDGE_PLUGIN_NAME=homebridge-ngbs-icon-thermostat -v /home/runner/work/verified/verified/precheck/results:/results check

Comment /check to run checks again.

bwp91 commented 1 year ago

/check

github-actions[bot] commented 1 year ago

:white_check_mark: Pre-checks completed successfully.

peterrakolcza commented 1 year ago

/check

github-actions[bot] commented 1 year ago

:white_check_mark: Pre-checks completed successfully.

github-actions[bot] commented 1 year ago

[NGBSiCONThermostat] Failed to login and connect to the client: 
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>www.enzoldhazam.hu - Bejelentkezés</title>
    <link rel="icon" type="image/png" href="favicon.png">
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap" rel="stylesheet">
    <link rel='stylesheet' href='Pages/css/style.css'><link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css'></head>

<body><div class='ngbs_logo_container'><img src='Pages/assets/ngbslogo_black.png'></div><div class='main_form_container'><form id="login_form" class="dyn_app_form" action="/" method="POST">
    <div class="form_field">
        <input placeholder="E-mail/Felhasználónév" name="username" type="email" value="donavan.becker@icloud.com">
    </div>
        <div class="form_field">
        <input placeholder="Jelszó" name="password" type="password" value="12345">

    </div>
        <input type="hidden" name="token" value="3733343130383039343133363031363436393332393637343334343430343638373130">
    <input type="hidden" name="x-email" value="">
    <button type="submit">Bejelentkezés</button>
            <small class="error">Hibás felhasználónév, vagy jelszó!</small>

</form>
<div class="dyn_app_form_links">
    <a href="/registration">Regisztráció</a>
    <a href="/reset">Jelszó emlékeztető</a>
</div></div><div class="dyn_app_form_links dyn_app_form_links--bottom">
    <a target="_blank" href="https://www.ngbsh.hu/hu/">ngbs.hu</a>
    <a href="/privacy">Adatvédelem</a>
    <a href="/helpdesk">Helpdesk</a>
    <a href="/docs">Dokumentumok</a>
    <div class="dyn_app_copyright_text">Copyright © 2021 NGBS Hungary Kft. Minden jog fenntartva. </div>
</div><script src='Pages/js/utils.js'></script></body>

</html>
[11/9/2023, 8:22:38 PM] [HB Supervisor] Homebridge Process Ended. Code: 1, Signal: null

Comment /check to run checks again.

peterrakolcza commented 1 year ago

An account is required with thermostats registered to use this plugint.

This error is thrown when invalid or no user credentials are configured. Thus, it returns the login page.

donavanbecker commented 1 year ago

@peterrakolcza, totally understand that. You have to catch the error though so it doesn't cause homebridge to restart.

peterrakolcza commented 1 year ago

After catching the error what should the plugin do? Just log the error and that's it?

donavanbecker commented 1 year ago

That is what most plugins do. Say something like, check your credentials or something like that.

peterrakolcza commented 1 year ago

/check

github-actions[bot] commented 1 year ago

:white_check_mark: Pre-checks completed successfully.

peterrakolcza commented 1 year ago

I have fixed the above mentioned issues.

donavanbecker commented 1 year ago

/check

github-actions[bot] commented 1 year ago

:white_check_mark: Pre-checks completed successfully.

github-actions[bot] commented 1 year ago

Congratulations! Your plugin has been verified.

You can now add one of the Verified by Homebridge badges to your plugin's README:

verified-by-homebridge

[![verified-by-homebridge](https://badgen.net/badge/homebridge/verified/purple)](https://github.com/homebridge/homebridge/wiki/Verified-Plugins)

verified-by-homebridge

[![verified-by-homebridge](https://img.shields.io/badge/homebridge-verified-blueviolet?color=%23491F59&style=for-the-badge&logoColor=%23FFFFFF&logo=homebridge)](https://github.com/homebridge/homebridge/wiki/Verified-Plugins)

Your plugin is now also eligible to display a :heart: Donate button on its tile in the Homebridge UI. See https://github.com/homebridge/homebridge/wiki/Donation-Links for instructions.

If for any reason in the future you can no longer maintain your plugin, please consider transferring it to our unmaintained plugins repo. We can take ownership until another willing developer comes along.

Don't forget to join the official Homebridge Discord server, where plugin developers can get tips and advice from other developers and the Homebridge project team in the #plugin-development channel!

Thank you for your contribution to the Homebridge Community. https://homebridge.io

bwp91 commented 1 year ago

Congrats