Esp-homekit-devices: HAA - Thermostat with sensor Si7021

Created on 6 Nov 2019  ·  18Comments  ·  Source: RavenSystem/esp-homekit-devices

Hi Jose,
I have trouble with set other sensor types on your template.
If I set the sensor type "n":4 (Si7021) as the accessory type it doesn't work.
Could you help me pls.

{"c":{"l":13,"b":[{"g":0,"t":5}]},"a":[{"t":21,"n":4,"s":5,"g":14,"0":{"r":[{"g":12}]},"1":{"a":0},"3":{"r":[{"g":12,"v":1}]},"5":{"a":0}}]}

HAA

All 18 comments

Si7021 sensor have a I2C bus. It isn't a single-wire interface.

But we have four sensors to choose, so Si7021 should working.

I think it for Sonoff version of sensor. It has i2c to 1-wire converter.
https://www.itead.cc/wiki/Sonoff_Sensor_Si7021
So you can't use sensors from AliExpress with 4 pins (Vcc/SDA/SCL/GND).

Si7021 one-wire version is supported, but esp-open-rtos driver fails with many sensor like it. I recommend to use a DHT22 or DHT11 compatible sensor.

HI @RavenSystem , can we re-open this issue as I have confirmed there is a bug in the esp-open-rtos code where the raw values returned by the Si7021 sensor are not being interpreted correctly.
I have submitted a pull request to the esp-open-rtos maintainers #737 and hopefully my fix will be merged soon.

Great! As soon as this is merged, I will release an updated.

Thanks.
Question: I've built my own firmware and flashed it on a few devices to confirm the fix. I want to reassemble those device and put them back into operation in my home. If I go into setup mode and check the "Auto OTA Update" option once you have released a version that includes the fix. Will the device then update with the "official" firmware?
I'm trying to avoid having to retrieve the devices from the various places around the home and manually flash them to get them back on the "official" release.

Auto ota update is updating firmware when you enter setup mode but without connect to haa wifi.

@WizBangCrash are you able to see “auto ota update” when you enter in setup mode?

@RavenSystem Yes. I can see three options with my modified version of the 0.7.4 firmware. See screenshot.
Screenshot 2019-11-29 at 22 35 54

That is good, because you did first a normal installation using OTA, and then you did not erase flash before installing your modified firmware. This means that you can update your device using OTA.

Thanks for the feedback. I was hoping that would be the case .

Hi Jose

I also got the Sonoff Si7021 which is one wire data , 4 pins :
[


](url)
With TH16 only the switch is working,not the TH......

Try v0.7.9, please.

Tested 0.7.9 on TH16+Sonoff AM2301 this evening and working fine. Thanks.
I'll test the Si7021 and ASAIR AM2301 at the weekend.

Tested with 0.7.10 on TH16+Sonoff AM2301, TH10+ASAIR AM2301 & TH10+Sonoff Si7021.
All working fine, including using different temperature and humidity offsets.

Many thanks!

Please write correct JSON config for SONOF TH16 and Si7021 sensor.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

i3laze picture i3laze  ·  3Comments

macjl picture macjl  ·  5Comments

lizzus picture lizzus  ·  5Comments

noobydp picture noobydp  ·  5Comments

GPL71 picture GPL71  ·  5Comments