denpamusic / homeassistant-plum-ecomax

Plum ecoMAX boiler controller integration for Home Assistant.
MIT License
29 stars 7 forks source link

The "get parameter service" to be able to respond only with the actual value #57

Closed niq83 closed 6 months ago

niq83 commented 6 months ago

Is there an existing issue for this?

I want to suggest:

Feature description

It would be useful to be able to get only the "value" from get parameter. Maybe even create an entity that modifies one parameter and then cheks the value

Webpage of the product, that I'm suggesting:

No response

My diagnostics data:

No response

Code of Conduct

denpamusic commented 6 months ago

Hi,

Thank you for the feedback!

You can actually get the value from the service response by simply accessing it as dict, for example response["value"]. Creating an entity based on service is not recommended, since services are mostly meant for automations.

That being said, ability to add custom entities (sensors, binary sensors and numbers) is currently being worked on in the options_flow branch and will be available in v0.4.2.

You can see some screenshots of the configuration menu prototype below (number entities, will be added later):

Main menu

Screenshot of an option flow 1

Selecting entity type

Screenshot of an option flow 2

Selecting new entity type

Screenshot of an option flow 3

Filing in new entity details

Screenshot of an option flow 4

denpamusic commented 6 months ago

As this feature was previously discussed in #41 I'll open a new issue and close both this issue and #41, to have only one place to track progress.