Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HAA - Thermostat with sensor Si7021 #586

Closed
OnKram opened this issue Nov 6, 2019 · 19 comments
Closed

HAA - Thermostat with sensor Si7021 #586

OnKram opened this issue Nov 6, 2019 · 19 comments
Labels
HAA ESP8266 Home Accessory Architect ESP8266

Comments

@OnKram
Copy link

OnKram commented Nov 6, 2019

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}}]}

@bj-tracer
Copy link

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

@OnKram
Copy link
Author

OnKram commented Nov 6, 2019

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

@bj-tracer
Copy link

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).

@RavenSystem RavenSystem added the HAA ESP8266 Home Accessory Architect ESP8266 label Nov 7, 2019
@RavenSystem
Copy link
Owner

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.

@WizBangCrash
Copy link

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.

@RavenSystem RavenSystem reopened this Nov 29, 2019
@RavenSystem
Copy link
Owner

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

@WizBangCrash
Copy link

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.

@mafyata
Copy link

mafyata commented Nov 29, 2019

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

@RavenSystem
Copy link
Owner

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

@WizBangCrash
Copy link

@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

@RavenSystem
Copy link
Owner

RavenSystem commented Nov 29, 2019

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.

@WizBangCrash
Copy link

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

@Codkit
Copy link

Codkit commented Dec 2, 2019

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......

@RavenSystem
Copy link
Owner

Try v0.7.9, please.

@WizBangCrash
Copy link

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.

@WizBangCrash
Copy link

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.

@RavenSystem
Copy link
Owner

Many thanks!

@nepadm
Copy link

nepadm commented Dec 1, 2020

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

@Danilo0609
Copy link

Pueden escribir el JSON completo corregido?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
HAA ESP8266 Home Accessory Architect ESP8266
Projects
None yet
Development

No branches or pull requests

8 participants