LavermanJJ / home-assistant-solarfocus

🏡 Solarfocus eco manager touch integration for Home Assistant
Apache License 2.0
14 stars 4 forks source link

[Feature Request]: Add API version info for Home Assistant #54

Closed tinerop closed 1 year ago

tinerop commented 1 year ago

Would be great to see the API Version (version of the "eco manager touch", in Home Assistant. I have seen the "api_version": "Solarfocus API Version" in your code but don't know how to modify it so that it shows up in Home Assistant similar to a sensor.

The integration of my NUKI doorlock for instance solved this as a "sensor.nuki_bridge_firmware_version" with the "type: Diagnostic", in case that helps.

In the screenshot of the integration i see the current FW version, but I would like to display it in the GUI (lovelace) in Home Assistant.

image

LavermanJJ commented 1 year ago

Unfortunately, Solarfocus does not expose the firmware version via Modbus TCP. Therefore, a sensor would only make limited sense. The firmware version shown in the screenshot, is 21.040 for older versions and from 3.0.0-beta on it will show the version one selects, when installing the integration.

tinerop commented 1 year ago

I understand, - I finished reading the whole Modbus TCP document from Solarfocus... no FW there.

Is this a hardware restriction from Solarfocus or could they provide the FW version through Modbus... by just assigning an address to it, basically the same way they provide info for a sensor... - I might later contact Solarfocus and ask them to implement some missing Modbus features from the community... long shot, but worth a try...

LavermanJJ commented 1 year ago

As ist is not supported by Solarfocus as of today, I'll close this issue for now. Once available, we can re-open this, or create a new one.