Open nequam opened 6 months ago
Thanks @nequam , that's great!
I've seen your commit:
BaseAccessory.ts
, you can add 'battery_value' to BATTERY_PERCENT
directly.CurrentRelativeHumidity.ts
too :)Would you like to create a pr for this? Or I will do this later. Thanks again!
Sorry to take so long to get back to you. I’ll cycle back this over the weekend, resync with your code base, and then make sure the changes all work. I’ll fix the way that I fork/branch/build, I’ve been focused on understanding how it works in GitHub and setting up the build process. (Our office is moving to GitHub). I use a couple of RPI4s and setting up an RPI5 Saturday.
As stupid as this sounds, I had no clue what a PR was, I am new to doing things in open source/git hub land. Anyway, I’ll figure it all out and let you know when I’m done.
Note: The best way to get me to do something is nag.. I have about 3 times as many things I want to do as I have time for, and tend to gravitate towards whatever beeps the loudest.
Device Infomation JSON File
Detail Informations
I am not all that familiar with characteristics, ultimately mapped the humidity to accessory.Service.HumiditySensor / Characteristic.CurrentRelativeHumidity I mapped the battery level to Service.AccessoryInformation / accessory.Characteristic.BatteryLevel I used the existing CurrentTemperature.ts for the temperature.
I used: case 'zwjcy': handler = new SoilAccessory(platform, accessory); break;
I don't do much with TS normally, but it's pretty simple. It's the characteristic stuff, which ones to use, not sure of. This is funny, because the soil humidity needs to be WAY higher than air humidity, so looks funny in homekit.
I forked the repository, checked it in, forgot to branch it, but feel free to take anything. I just wanted to make the sensor work for a rule to remind people to water a plant and I needed it to talk to non-tuya stuff. I hope I gave you enough information.
https://github.com/nequamus/homebridge-tuya-platform-more