Closed mafyata closed 4 years ago
Yes.
Can I enter setup mode with this template?
Ops, no. You must declare a way to do that. With a physical button or with a dummy switch.
I don’t want switch in home app. I think to enter setup mode with connecting pins with jumper.
That is the best way. Dummy switch sucks, IMO, but I tell you all options.
IMO?
In My Opinion. 😁
I think for using GPIO 1 and GND for setup mode. Can you tell me the json with them for setup mode.
Sure, what press type do you want? Single, double, holding for 10 seconds...
single
{"c":{"b":[{"g":1,"t":0}]},"a":[{"t":24,"g":14,"z":-1}]}
Be sure that gpio1 works as expected in node mcu.
Here is a picture with all pins on nodemcu
Gpio1 is uart tx. Better use other. 5 is good.
Gpio 6?
Don’t use 6, 7 and 8.
ok , I will use 5. {"c":{"b":[{"g":5,"t":0}]},"a":[{"t":24,"g":14,"z":-1}]} Is this correct?
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.
Works perfect. Thanks. How to update the firmware in future? With entering in setup mode only ?
“ 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
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 ?
Exactly, always you don’t load setup mode web page.
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 } ] }