pesor / TTGO-T-HIGrow

The extremely good plant sensor named LILYGO TTGO-T-HIGrow, is here integrated into Home Assistant, via MQTT messages, that can be Autodiscovered, via the belonging Python program. The program supports both DHT sensors, the new BME280 sensor and the external soil temperature sensor.
https://github.com/pesor/TTGO-T-HIGrow
MIT License
70 stars 36 forks source link

Not using with Home Assistant #30

Open Ianszh opened 2 years ago

Ianszh commented 2 years ago

Hello, I'd like to use this outside of Home Assistant (MQTT - Node-Red), I have some of the older versions with a 18650 battery and DHT11's, I've set the necessary true and false in user-variables.h and I'm receiving the MQTT messages in node-red, but there are some missing and strange values. No data from the DHT11 and daysOnBattery: 19092.7 etc. could you give some advice please?

"{"plant":{"Tgrow_HIGrow":"246f28af39e8","sensorname":"Chilli-1","date":"10-04","time":"17:31","sleep5Count":0,"bootCount":34,"lux":-2,"temp":null,"humid":null,"soil":65535,"soilTemp":0,"salt":0,"saltadvice":"needed","bat":-220,"batcharge":"","batchargeDate":"","daysOnBattery":19092.7,"battvolt":69,"battvoltage":0.12233,"pressure":0,"plantValveNo":1,"wifissid":"xxxxx","rel":"4.3.2"}}"

pesor commented 2 years ago

In the uservariable file there are a lot of variables, have you looked into this.

One set concerns the DHT11.

// Per

Sendt fra min iPhone

Den 10. apr. 2022 kl. 17.35 skrev Ianszh @.***>:



Hello, I'd like to use this outside of Home Assistant (MQTT - Node-Red), I have some of the older versions with a 18650 battery and DHT11's, I've set the necessary true and false in user-variables.h and I'm receiving the MQTT messages in node-red, but there are some missing and strange values. No data from the DHT11 and daysOnBattery: 19092.7 etc. could you give some advice please?

"{"plant":{"Tgrow_HIGrow":"246f28af39e8","sensorname":"Chilli-1","date":"10-04","time":"17:31","sleep5Count":0,"bootCount":34,"lux":-2,"temp":null,"humid":null,"soil":65535,"soilTemp":0,"salt":0,"saltadvice":"needed","bat":-220,"batcharge":"","batchargeDate":"","daysOnBattery":19092.7,"battvolt":69,"battvoltage":0.12233,"pressure":0,"plantValveNo":1,"wifissid":"xxxxx","rel":"4.3.2"}}"

— Reply to this email directly, view it on GitHubhttps://github.com/pesor/TTGO-T-HIGrow/issues/30, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAXXLJGY322TGRET23E4RXLVELYNPANCNFSM5TA7QEXA. You are receiving this because you are subscribed to this thread.Message ID: @.***>

Ianszh commented 2 years ago

Yes, I did look into the variables when setting up. any Idea about the daysOnBattery?

Also is there a setting where I can adjust the wake time?

pesor commented 2 years ago

You can only assign the sleep time, see the WIKI to learn more.