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 358 forks source link

Garage Door issue : Sensor problem since last version #934

Closed Hornett69 closed 4 years ago

Hornett69 commented 4 years ago

Hi, I have a new problem since the last version with my garage door system.

Material : Sonoff SV Sensor : NO JSON Frame : {"c":{"l":13,"b":[{"g":0,"t":5}]},"a":[{"t":40,"d":15,"f3":[{"g":14,"t":0,"i":1}],"f4":[{"g":14,"i":1}],"0":{"r":[{"g":12,"v":1,"i":0.5}]},"1":{"a":0},"2":{"r":[{"g":12,"i":1.5},{"g":12,"v":1,"i":0.5},{"g":12,"v":1,"i":2}]},"3":{"a":2}}]}

My sensor is on GPIO14 and this one is inverted. The needs are : when the door is open my sensor is closed and when my door is close my sensor is open. This is all right before the latest upgrade...

But now, with this frame...when the door is open my sensor is open and when my door is close my sensor is close... I have tested with tis JSON frame : {"c":{"l":13,"b":[{"g":0,"t":5}]},"a":[{"t":40,"d":15,"f3":[{"g":14,"t":0}],"f4":[{"g":14,"i":1}],"0":{"r":[{"g":12,"v":1,"i":0.5}]},"1":{"a":0},"2":{"r":[{"g":12,"i":1.5},{"g":12,"v":1,"i":0.5},{"g":12,"v":1,"i":2}]},"3":{"a":2}}]}

This is similar...

This is an new issue ? Thanks for your help.

Hornett69 commented 4 years ago

i have solution with this JSON... {"c":{"l":13,"b":[{"g":0,"t":5}]},"a":[{"t":40,"d":15,"f3":[{"g":14,"t":0}],"f4":[{"g":14}],"0":{"r":[{"g":12,"v":1,"i":0.5}]},"1":{"a":0},"2":{"r":[{"g":12,"i":1.5},{"g":12,"v":1,"i":0.5},{"g":12,"v":1,"i":2}]},"3":{"a":2}}]}

But i don't know why... any changes with a new version ?