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

MEPLHAA Script please help #1999

Closed aptyp222 closed 1 year ago

aptyp222 commented 1 year ago

Hello, I love your project. Please help to adapt to the new firmware 12.0.2. Before that, I used the site for automatic configuration https://glumb.github.io/haa-configurator/ I hope sooner or later they will adapt to the new system. I have two devices

1. {"c":{"l":13,"b":[{"g":0,"t":5}]},"a":[{"0":{"r":[{"g":5,"v":0}]},"1":{"r":[{"g":5,"v":1}]},"t":20,"b":[{"g":0,"t":1}],"s":0,"w":3,"d":3600},{"t":7,"s":0,"f0":[{"g":12,"t":1,"i":1}],"f1":[{"g":12,"i":1}]}]}

2. {"c":{"o":1},"a":[{"t":5,"s":0,"f1":[{"g":4,"i":0}],"f0":[{"g":4,"t":0,"i":0}]},{"t":7,"s":0,"f0":[{"g":14,"i":1,"t":0}],"f1":[{"g":14,"i":1}]},{"t":7,"s":0,"f0":[{"g":13,"t":0,"i":1}],"f1":[{"g":13,"i":1}]},{"t":7,"s":0,"f0":[{"g":12,"t":0,"i":1}],"f1":[{"g":12,"i":1}]}]} p.s Do you have any plans to develop a similar site for the configuration???

xrust83 commented 1 year ago

1. {"c":{"io":[[[13],3],[[0,12],6,1],[[5],2]],"l":13,"b":[{"g":0,"t":5}]},"a":[{"0":{"r":[{"g":5,"v":0}]},"1":{"r":[{"g":5,"v":1}]},"t":20,"b":[{"g":0,"t":1}],"s":0,"w":3,"d":3600},{"t":7,"s":0,"f0":[{"g":12,"t":1,"i":1}],"f1":[{"g":12,"i":1}]}]}

2. {"c":{"io":[[[4,14,13,12],6,1]],"o":1},"a":[{"t":5,"s":0,"f1":[{"g":4,"i":0}],"f0":[{"g":4,"t":0,"i":0}]},{"t":7,"s":0,"f0":[{"g":14,"i":1,"t":0}],"f1":[{"g":14,"i":1}]},{"t":7,"s":0,"f0":[{"g":13,"t":0,"i":1}],"f1":[{"g":13,"i":1}]},{"t":7,"s":0,"f0":[{"g":12,"t":0,"i":1}],"f1":[{"g":12,"i":1}]}]}

I don't know if you have external pull-up resistors. Try this

arcclaro commented 1 year ago

Unfortunately I have the same issue as aptyp222.

I can't understand fully the new requirements for input/output definitions...

my current script is:

{"c":{"l":13,"b":[{"g":0,"t":5}]},"a":[{"0":{"r":[{"g":12}]},"1":{"r":[{"g":12,"v":1}]},"b":[{"g":0}],"s":0},{"0":{"r":[{"g":5}]},"1":{"r":[{"g":5,"v":1}]},"b":[{"g":9}],"s":0}]}

can anyone give me some help and convert it to the new standard?

One more thing, is tehere any planned update to the https://glumb.github.io/haa-configurator/ , it would be the perfect companion to HAA!