RaresAil / homebridge-gree-ac

Apache License 2.0
3 stars 2 forks source link

DHT Service #5

Closed Forrest1313 closed 2 years ago

Forrest1313 commented 2 years ago

Describe Your Problem:

DHT Service is not working for me, even with RPi 4. In HomeKit shows each conditioner with Humidity 0% ; Temp 45. Is it a method to make it work properly? Thanks in advance **Logs:** ``` Show the Homebridge logs here, remove any sensitive information. ``` **Plugin Config:** ```json Show your Homebridge config.json here, remove any sensitive information. ``` **Screenshots:**

Environment:

RaresAil commented 2 years ago

Hey, how did you setup it?

Forrest1313 commented 2 years ago

dedicated Ip for each conditioner, then in your plugin set each child bridge needs to be connected to a solid IP address. problem is with dht service, in homekit it can not read the status of current temp and humidity. do you know how to perform that? IMG_6731

RaresAil commented 2 years ago

To setup the DHT, in the home directory create a folder and add this file over here https://github.com/RaresAil/homebridge-gree-ac#dht-service with the name index.js

Then from the terminal in that folder run:

RaresAil commented 2 years ago

You will need to buy a DHT11 or DHT22 (more accurate) sensor and connect it to RPi using GPIO

Forrest1313 commented 2 years ago

I'm searching for a method to view each room temp that is provided from greeAC. In the main app Gree+ it is working fine InkedIMG_6732_LI e

Forrest1313 commented 2 years ago

also not all modes of AC are available such as DRY and just FAN but to be honest it's the best plugin for GreeAC. Good work man!!!

RaresAil commented 2 years ago

The model i used didn't exposed a temperature sensor so i can display it and i no longer have a gree ac because i moved in a diff apartament, so i won't be able to add new features for it, i will add a custom config to change the default temperature from 45 to something else

Forrest1313 commented 2 years ago

thanks a lot

RaresAil commented 2 years ago

I added version 1.2.0 which allows to change the default temp

https://github.com/RaresAil/homebridge-gree-ac/issues/4#issuecomment-1156236301

Let me know if it is working

GPL71 commented 2 years ago

Hello thank you for your work. It seems works fine I have a question: Is it possible read the DHT temperature using a sensor in the home? I havean esp8266 with DHT and simple web server. Would be possible use it? I could modify sketch to match with plugin Thank you again

GPL71 commented 2 years ago

The model i used didn't exposed a temperature sensor so i can display it and i no longer have a gree ac because i moved in a diff apartament, so i won't be able to add new features for it, i will add a custom config to change the default temperature from 45 to something else

Could the follow document help to implement temperature reading? Plugin would be great with temperature feature

https://github.com/tomikaa87/gree-remote

GPL71 commented 2 years ago

I added version 1.2.0 which allows to change the default temp

#4 (comment)

Let me know if it is working

just updated but Homebridge give an error Schermata 2022-06-15 alle 22 43 59 Schermata 2022-06-15 alle 22 45 15

RaresAil commented 2 years ago

@GPL71 please try 1.2.1

RaresAil commented 2 years ago

Hello thank you for your work. It seems works fine I have a question: Is it possible read the DHT temperature using a sensor in the home? I havean esp8266 with DHT and simple web server. Would be possible use it? I could modify sketch to match with plugin Thank you again

if the response from that http server is in the forma, in the config, just add the url of the ESP and the path for that endpoint

{
  "temperature": 10,
  "humidity": 40.5
}
RaresAil commented 2 years ago

The model i used didn't exposed a temperature sensor so i can display it and i no longer have a gree ac because i moved in a diff apartament, so i won't be able to add new features for it, i will add a custom config to change the default temperature from 45 to something else

Could the follow document help to implement temperature reading? Plugin would be great with temperature feature

https://github.com/tomikaa87/gree-remote

I don't have a Gree AC anymore so i can't implement it

Forrest1313 commented 2 years ago

I added version 1.2.0 which allows to change the default temp #4 (comment) Let me know if it is working

just updated but Homebridge give an error Schermata 2022-06-15 alle 22 43 59 Schermata 2022-06-15 alle 22 45 15

same problem

GPL71 commented 2 years ago

@GPL71 please try 1.2.1

It seem working. Thank you

GPL71 commented 2 years ago

The model i used didn't exposed a temperature sensor so i can display it and i no longer have a gree ac because i moved in a diff apartament, so i won't be able to add new features for it, i will add a custom config to change the default temperature from 45 to something else

Could the follow document help to implement temperature reading? Plugin would be great with temperature feature https://github.com/tomikaa87/gree-remote

I don't have a Gree AC anymore so i can't implement it

ok ... I can offer as tester if that could help. I think @Forrest1313 could do it too

RaresAil commented 2 years ago

I added version 1.2.0 which allows to change the default temp #4 (comment) Let me know if it is working

just updated but Homebridge give an error Schermata 2022-06-15 alle 22 43 59 Schermata 2022-06-15 alle 22 45 15

same problem

What nodejs version do you have?

RaresAil commented 2 years ago

The model i used didn't exposed a temperature sensor so i can display it and i no longer have a gree ac because i moved in a diff apartament, so i won't be able to add new features for it, i will add a custom config to change the default temperature from 45 to something else

Could the follow document help to implement temperature reading? Plugin would be great with temperature feature https://github.com/tomikaa87/gree-remote

I don't have a Gree AC anymore so i can't implement it

ok ... I can offer as tester if that could help. I think @Forrest1313 could do it too

I checked that code and didn't found a temperature sensor on the AC to get the temperature

GPL71 commented 2 years ago

The model i used didn't exposed a temperature sensor so i can display it and i no longer have a gree ac because i moved in a diff apartament, so i won't be able to add new features for it, i will add a custom config to change the default temperature from 45 to something else

Could the follow document help to implement temperature reading? Plugin would be great with temperature feature https://github.com/tomikaa87/gree-remote

I don't have a Gree AC anymore so i can't implement it

ok ... I can offer as tester if that could help. I think @Forrest1313 could do it too

I checked that code and didn't found a temperature sensor on the AC to get the temperature

OK I'll try check how app could read the temperature or the api for wifi AC

RaresAil commented 2 years ago

@GPL71 Alright, let me know how is working, I enabled Discussions on this repo, just post there the feature request if you manage to find a way to get the temperature

GPL71 commented 2 years ago

I've found: https://github.com/alexmuntean/gree-airconditioner-rest

And following explain how to get temperature https://github.com/tomikaa87/gree-remote

https://github.com/tomikaa87/gree-remote#getting-the-current-temperature-reading-from-the-internal-sensor

seem following allow read temperature https://github.com/tomikaa87/gree-remote/tree/master/PythonCLI

mpuff commented 2 years ago

Can I disable the dht status?

RaresAil commented 2 years ago

@mpuff just remove dhtService from the config

mpuff commented 2 years ago

@RaresAil, I only have this in the Config:

{ "name": "Klimagerät", "broadcastAddress": "192.168.3.255", "threeSpeedUnit": true, "coolingMinTemp": 18, "coolingMaxTemp": 30, "heatingMinTemp": 20, "heatingMaxTemp": 30, "platform": "GreeACImplementationPlugin" }

but I have still the temperature of 45 in the apple home app.

RaresAil commented 2 years ago

@RaresAil, I only have this in the Config:

{

        "name": "Klimagerät",

        "broadcastAddress": "192.168.3.255",

        "threeSpeedUnit": true,

        "coolingMinTemp": 18,

        "coolingMaxTemp": 30,

        "heatingMinTemp": 20,

        "heatingMaxTemp": 30,

        "platform": "GreeACImplementationPlugin"

    }

but I have still the temperature of 45 in the apple home app.

Add "defaultCurrentTemp" and give it what value you want