ewelink-api-java icon indicating copy to clipboard operation
ewelink-api-java copied to clipboard

Temperature and humidity

Open kolbii opened this issue 5 years ago • 7 comments

I just noticed temperature and humidity values are missing from Params class so I'm not able to get none of them. Could you please add the following properties? Thanks

Example data: params: { subDevId: '......', parentid: '......', battery: 100, trigTime: '1610748707290', temperature: '-82', humidity: '7465' },

kolbii avatar Jan 16 '21 16:01 kolbii

Hi @kolbii

i have added those fields just as strings for now to the param object,

<dependency>
  <groupId>com.github.realzimboguy.ewelink.api</groupId>
  <artifactId>ewelink-api-java</artifactId>
  <version>2.1.1-RELEASE</version>
</dependency>

RealZimboGuy avatar Jan 17 '21 11:01 RealZimboGuy

Hi, this ("added to param object") is still true for last version?

My result of gson.toJson(thing) is:

{"itemType":1,"itemData":{"name":"Temperature 1","deviceid":"x","apikey":"x","extra":{"uiid":1770,"description":"ZCL_HA_DEVICEID_TEMPERATURE_SENSOR","brandId":"59e0dbc25c1af3a660cc1ac0","apmac":"00:00:00:00:00:00","mac":"x","ui":"ZigbeeSomeChineseCharsRemoved","modelInfo":"5be28aaf1a9a77c347a6047b","model":"NON-OTA-GL","manufacturer":"SomeChineseCharsRemoved"},"brandName":"coolkit","brandLogo":"","showBrand":false,"productModel":"ZCL_HA_DEVICEID_TEMPERATURE_SENSOR","tags":{},"devConfig":{},"family":{"familyid":"x","index":-1},"shareTo":[],"devicekey":"x","online":true,"params":{"bindInfos":{},"switch":"off","timeZone":1},"isSupportGroup":false,"isSupportedOnMP":true,"isSupportChannelSplit":false,"deviceFeature":{}},"index":-1} Thank you very much.

leosurban avatar Dec 05 '24 18:12 leosurban

Hi @leosurban i added them under that version, what fields are you missing ?

image

RealZimboGuy avatar Dec 06 '24 10:12 RealZimboGuy

ah i see, will try add them in

RealZimboGuy avatar Dec 06 '24 10:12 RealZimboGuy

Thank you very much.

leosurban avatar Dec 06 '24 10:12 leosurban

@leosurban i have pushed the below new version with those fields added back in, probably a few hours for the maven cache to update or you can pull directly from the repo. let me know if it works

    <dependency>
      <groupId>com.github.realzimboguy.ewelink.api</groupId>
      <artifactId>ewelink-api-java</artifactId>
      <version>3.3.3-RELEASE</version>
    </dependency>

RealZimboGuy avatar Dec 06 '24 12:12 RealZimboGuy

Excellent, it is working, thank you very much. Leos

leosurban avatar Dec 06 '24 13:12 leosurban