I have a device that uses a strange way to share information and I can’t find a way to extract it in an efficient way.
The device uses one attribute to select the parameters that can be inquired and uses a different attribute to provide the numerical value of that parameter (output).
For example: When “inquire_id” entity attribute “options” is set to a certain name, for example “inlet water temp.”, the numerical value returned on attribute “Inquire Value” is the numerical value corresponding. There are 31 parameters that can be inquired like this.
Ideally, I’d like to be able to pull the information of each parameter and stored as sensors in HA so that I can trend these outputs.
Below is an extract of the entities involved. You’ll notice that there are several inquire_id available under the options attribute. Once the options attribute is set to a given name, the Inquire_Value attribute will return the corresponding value.
In case that is of any relevance, I created the entity from a Tuya Local integration. The entity could be reconfigured, should this be helpful.