Giter Club home page Giter Club logo

Comments (11)

NikDevx avatar NikDevx commented on July 19, 2024 1

Hm... Very strange.
Thank for you help.
I will try to change my api

from homebridge-web-thermostat.

NikDevx avatar NikDevx commented on July 19, 2024

No longer support?

from homebridge-web-thermostat.

phenotypic avatar phenotypic commented on July 19, 2024

Hi there, do you receive this error upon startup?

Please could you also include your config.json for this accessory.

Looking at the Homebridge API for Target Temperature you can see that the minimum value is 10. This plugin sets the minimum temperature to 15, so there should be no conflict.

Have you maybe changed minTemp in your config.json?

from homebridge-web-thermostat.

NikDevx avatar NikDevx commented on July 19, 2024

Please could you also include your config.json for this accessory.

    "accessories": [
        {
            "accessory": "Thermostat",
            "name": "AC",
            "apiroute": "http://raspberrypi.local:8085",
            "pollInterval": 60,
            "minTemp": 17,
            "maxTemp": 30,
            "minStep": 1,
            "timeout": 15000
        }
    ]

from homebridge-web-thermostat.

NikDevx avatar NikDevx commented on July 19, 2024

Hello
I receive this upon startup.

from homebridge-web-thermostat.

NikDevx avatar NikDevx commented on July 19, 2024

And also I getting error when api route has http instead https
I changed request method function from _httpRequest: to request.get
You can see it in my fork https://github.com/NikDevx/homebridge-web-thermostat/blob/master/index.js

from homebridge-web-thermostat.

phenotypic avatar phenotypic commented on July 19, 2024

I was not able to reproduce the error using the same configuration as you (with the exception of the apiroute field).

As such, I believe the error is either with the data your API is returning, or with modifications you have made to your fork of the plugin.

To be sure, please include a sample of what your API is responding. Also try the same configuration using this original version of the plugin, not your fork.

from homebridge-web-thermostat.

NikDevx avatar NikDevx commented on July 19, 2024

I getting status from json via get request http://raspberrypi.local:8085/status/
Here is no value under 17 in Target Temperature

{"targetHeatingCoolingState":0,"targetTemperature":28,"currentHeatingCoolingState":0,"currentTemperature":24}

from homebridge-web-thermostat.

NikDevx avatar NikDevx commented on July 19, 2024

My logs with debug

[26.04.2021, 13:13:18] [Кондиционер] Device response: {"targetHeatingCoolingState":0,"targetTemperature":28,"currentHeatingCoolingState":0,"currentTemperature":24}
[26.04.2021, 13:13:18] [Кондиционер] Updated TargetTemperature to: 28
[26.04.2021, 13:13:18] [Кондиционер] Updated CurrentTemperature to: 24
[26.04.2021, 13:13:18] [Кондиционер] Updated TargetHeatingCoolingState to: 0
[26.04.2021, 13:13:18] [Кондиционер] Updated CurrentHeatingCoolingState to: 0
[26.04.2021, 13:13:55] [Кондиционер] Getting status: http://raspberrypi.local:8085/status

Errors

[26.04.2021, 13:13:03] [homebridge-web-thermostat] This plugin generated a warning from the characteristic 'Target Temperature': characteristic was supplied illegal value: number 10 exceeded minimum of 17. See https://git.io/JtMGR for more info.
[26.04.2021, 13:13:03] [homebridge-web-thermostat] Error: 
    at TargetTemperature.Characteristic.characteristicWarning (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:2038:105)
    at TargetTemperature.Characteristic.validateUserInput (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:1946:16)
    at TargetTemperature.<anonymous> (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:1499:21)
    at step (/usr/lib/node_modules/homebridge/node_modules/tslib/tslib.js:143:27)
    at Object.next (/usr/lib/node_modules/homebridge/node_modules/tslib/tslib.js:124:57)
    at /usr/lib/node_modules/homebridge/node_modules/tslib/tslib.js:117:75
    at new Promise (<anonymous>)
    at Object.__awaiter (/usr/lib/node_modules/homebridge/node_modules/tslib/tslib.js:113:16)
    at TargetTemperature.Characteristic.handleGetRequest (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/dist/lib/Characteristic.js:656:24)
    at TargetTemperature.<anonymous> (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:2103:22)

from homebridge-web-thermostat.

NikDevx avatar NikDevx commented on July 19, 2024

I installed the new version and has the same error upon startup.

from homebridge-web-thermostat.

phenotypic avatar phenotypic commented on July 19, 2024

Unfortunately, I was once again unable to replicate your error. Here are the relevant versions:

  • node 16.0.0
  • homebridge 1.3.4
  • homebridge-web-thermostat 1.3.7

I simulated your API locally and used this configuration:

{
    "accessory": "Thermostat",
    "name": "AC",
    "apiroute": "http://[::]:8000",
    "pollInterval": 60,
    "minTemp": 17,
    "maxTemp": 30,
    "minStep": 1,
    "timeout": 15000
}

This was the API response (http://[::]:8000/status):

{
    "targetHeatingCoolingState": 0,
    "targetTemperature": 28,
    "currentHeatingCoolingState": 0,
    "currentTemperature": 24
}

No errors were generated on startup, and I was able to successfully change the target state and temperature:

[26/04/2021, 14:22:19] [AC] Set targetHeatingCoolingState to: 1
[26/04/2021, 14:22:24] [AC] Set targetTemperature to: 29.0
[26/04/2021, 14:22:30] [AC] Set targetTemperature to: 27.0
[26/04/2021, 14:22:31] [AC] Set targetHeatingCoolingState to: 0

I'm afraid there's not much more I can do on my end in terms of debugging, as everything seems to be working as expected.

You might want to look into communication problems with your API, and/or any modifications you have made to your fork of the plugin.

from homebridge-web-thermostat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.