Fixed wrong voltage and current measurements due to differences between Arduino and ESP-IDF.

Changed voltage range to 32 volt. Tried INA219 powersave mode, doesn't work.

In the esp-idf-lib the adps9930 driver uses a device descriptor structure instead of just i2c_dev_t. Fixed a linking issue. Added APDS9930 task. Added getLightValues function. Added wifi quality value to the MQTT payload. The payload is complete and will be published.

Added untested port of the Arduino APDS9930 library as component into the esp-idf-lib.

Fixed start of json status message.

Added task_out to drive the relays and led lights. Added NVS namespace to store the state of the outputs. Respond to subscribed MQTT topics to set new output values.

Added namespace and output variables in NVS.

(0) -10 -7 +7 +10 tip

mercurial