AirCon icon indicating copy to clipboard operation
AirCon copied to clipboard

How to get properties

Open aportillagithub opened this issue 4 years ago • 3 comments

I was able to integrate hisense wifi module using your addon, but I'm not sure how to get other properties as entities (like f_humidity or f_voltage for example). Is it even possible?

Regards.

aportillagithub avatar Jul 10 '21 11:07 aportillagithub

For a sensor or a binary sensor, this should work.

- platform: mqtt
  name: "Sensor name"
  state_topic: "hisense_ac/[macaddress]/[property]/status"

(this bit only for binary_sensor)
  payload_on: "on"
  payload_off: "off"

Also you might want to make sure the properties you want to get are actually published by your specific AC. Mine for example publishes f_voltage but not f_humidity. Actually I just checked again and f_humidity is reported, but the value is 0, so not really usable for me.

dvdavide avatar Jul 13 '21 13:07 dvdavide

Thanks. I saw a typo I think (votage instead of voltage?):

I0714 09:13:49.127 query_handlers.py:136] Decrypted: {"seq_no":15854,"data":{"name":"f_votage","value":236}} E0714 09:13:49.128 query_handlers.py:89] Failed to handle {'seq_no': 15854, 'data': {'name': 'f_votage', 'value': 236}}. Exception = 'f_votage'

aportillagithub avatar Jul 14 '21 07:07 aportillagithub

It's been accounted for in the last change to the code. I changed it manually in my installation, don't know if it's included in the latest docker image

dvdavide avatar Jul 14 '21 07:07 dvdavide