RavenSystem / esp-homekit-devices

Advanced firmware to add native Apple HomeKit and custom configurations, compatible with any SoC based on ESP32, ESP32-S, ESP32-C and ESP8266 series. (Shelly, Sonoff, Electrodragon, Tuya...)
Other
2.72k stars 357 forks source link

Nodemcu + Temp/hum #559

Closed mafyata closed 4 years ago

mafyata commented 4 years ago

Hi , I have nodemcu and dht22 for temp and humidity. If I use haa and want only to show temp and humidity(type 24), what template to use ? Is it correct: { "c": { "o": 0 }, "a": [ { "t": 24, "g" : 14, "z": -1 } ] }

RavenSystem commented 4 years ago

Yes.

mafyata commented 4 years ago

Can I enter setup mode with this template?

RavenSystem commented 4 years ago

Ops, no. You must declare a way to do that. With a physical button or with a dummy switch.

mafyata commented 4 years ago

I don’t want switch in home app. I think to enter setup mode with connecting pins with jumper.

RavenSystem commented 4 years ago

That is the best way. Dummy switch sucks, IMO, but I tell you all options.

mafyata commented 4 years ago

IMO?

RavenSystem commented 4 years ago

In My Opinion. 😁

mafyata commented 4 years ago

I think for using GPIO 1 and GND for setup mode. Can you tell me the json with them for setup mode.

RavenSystem commented 4 years ago

Sure, what press type do you want? Single, double, holding for 10 seconds...

mafyata commented 4 years ago

single

RavenSystem commented 4 years ago

{"c":{"b":[{"g":1,"t":0}]},"a":[{"t":24,"g":14,"z":-1}]}

Be sure that gpio1 works as expected in node mcu.

mafyata commented 4 years ago

Here is a picture with all pins on nodemcu ESP-12E-Development-Board-ESP8266-NodeMCU-Pinout

RavenSystem commented 4 years ago

Gpio1 is uart tx. Better use other. 5 is good.

mafyata commented 4 years ago

Gpio 6?

RavenSystem commented 4 years ago

Don’t use 6, 7 and 8.

mafyata commented 4 years ago

ok , I will use 5. {"c":{"b":[{"g":5,"t":0}]},"a":[{"t":24,"g":14,"z":-1}]} Is this correct?

RavenSystem commented 4 years ago

Yes.

El 26 oct 2019, a las 0:07, mafyata notifications@github.com escribió:

 ok , I will use 5. {"c":{"b":[{"g":5,"t":0}]},"a":[{"t":24,"g":14,"z":-1}]} Is this correct?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

mafyata commented 4 years ago

Works perfect. Thanks. How to update the firmware in future? With entering in setup mode only ?

RavenSystem commented 4 years ago

“ If you installed it using OTA procedure, there is an option called "Auto OTA Updates" that allows to search updates every time device enters in setup mode, 90 seconds pasts, and setup web page is not loaded.”

https://github.com/RavenSystem/esp-homekit-devices/wiki/Home-Accessory-Architect#setup-mode

mafyata commented 4 years ago

Yes , I selected auto ota update. So to update I must enter the device in setup mode , it will auto update and restart itself to normal mode ?

RavenSystem commented 4 years ago

Exactly, always you don’t load setup mode web page.