sleevezipper / hass-workstation-service

Provide useful sensors and services from your workstation to Home Assistant.
Apache License 2.0
613 stars 54 forks source link

Feature Request - Option to pass JSON #106

Closed manju-rn closed 1 year ago

manju-rn commented 3 years ago

It would be great to have ability to pass the custom JSON to the MQTT message for a sensor. This would allow to tailor make sensors in HA (I am sure same on OpenHAB as well) so that the Sensor entity created in HA can have required attributes, for example. creating a device-class or any Long Term stats like state-class, measurement

HA Long Term Stats

sleevezipper commented 3 years ago

Thanks for creating an issue!

Interesting idea. These properties are hardcoded in the sensor code now. Should not be too difficult to make those configurable.