dawidchyrzynski / arduino-home-assistant

ArduinoHA allows to integrate an Arduino/ESP based device with Home Assistant using MQTT.
https://dawidchyrzynski.github.io/arduino-home-assistant/
GNU Affero General Public License v3.0
480 stars 116 forks source link

Add support for attributes #158

Closed Pluimvee closed 7 months ago

Pluimvee commented 1 year ago

As not all telemetry deserves its own dedicated sensor, some detailed telemetry data would be stored in attributes. Most common use case is to add debug info, or aother less important sensor data as json object to one of the sensors

The code is minimized to publishing a string, which in fact for proper HA support should be a json object. However I think creating the json object should not be part of this library

erkr commented 9 months ago

Please accept the commits above. I like to have them as well

dawidchyrzynski commented 7 months ago

Hi @Pluimvee, thank you for your contribution. Could you please address the conflicts so that I can proceed with the merge?

dawidchyrzynski commented 7 months ago

222