Comments (11)
Hm... Very strange.
Thank for you help.
I will try to change my api
from homebridge-web-thermostat.
No longer support?
from homebridge-web-thermostat.
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.
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.
Hello
I receive this upon startup.
from homebridge-web-thermostat.
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.
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.
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.
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.
I installed the new version and has the same error upon startup.
from homebridge-web-thermostat.
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)
- SetUp HOT 1
- group thermostats in home app HOT 1
- setTargetHeatingCoolingState() sets current instead of target heating state HOT 1
- Feature Request: Call _getStatus after setting changes via API HOT 2
- pass temp setting ? HOT 1
- Cooling Only Mode HOT 3
- Error setting targetHeatingCoolingState: socket hang up HOT 1
- Modify Plugin HOT 1
- RegEx patterns HOT 2
- TargetHeatingCoolingState cannot be set to AUTO HOT 1
- ESOCKETTIMEDOUT and illegal Value HOT 6
- Min/Max Values Do not apply to current temperature HOT 3
- Need example please HOT 1
- checkupDelay does not update HOT 7
- Does this work with Baxi? HOT 1
- Status delay HOT 1
- Salus it500 HOT 1
- error timeout HOT 3
- new minStep option vs. displayed values HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebridge-web-thermostat.