glumb / haa-configurator

HomeKit Accessory Architect JSON Configurator GUI 🥨 https://glumb.github.io/haa-configurator/ for https://github.com/RavenSystem/esp-homekit-devices
Apache License 2.0
87 stars 8 forks source link

Sensor accessory and state inputs #10

Open i3laze opened 4 years ago

i3laze commented 4 years ago

Currently, Configurator portal only understands Status inputs f[n] like f0,f1... Their behavior slightly differs from State inputs g[n] (g0,g1). More info here: https://github.com/RavenSystem/esp-homekit-devices/wiki/Sensors#Initial-State

For example, I got normally open floating sensor for leakage.. {"t":7,"s":0,"g1":[{"g":9,"t":0,"i":0}],"g0":[{"g":9,"t":1,"i":0}]} During startup only State input display it as deactivated correctly, while Status input waits for action before eventually displaying correct state.

  1. Please introduce State inputs g[n] for sensors.
  2. Currently, portal label mistakenly says:

    Digital Inputs: disabled. Default State - Input enabled State - Input

However Status input f[n] is added to the code, not State input g[n].