-
Notifications
You must be signed in to change notification settings - Fork 277
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to make only_self_usage devices unavailable #2936
Comments
WIP: #2947 |
@michalk-k can you verify if this is also fixed for you in v1.17.1? Then the issue can be closed |
Some findings:
Is it intentional? Another observation is, that config flow steps during adding a device from discovery are somehow remembered which might be unwanted behavior. How to reproduce:
Not sure if is it controlled by PowerCalc or by HA. But if I make a bad decision, it's no option to start over. The only way is to finish adding a device, remove it from PC, and then call the service to reload library. |
This is by design. It uses the same device_type -> domain mapping which is used for the entity discovery. So for
This is a HA core issue, not something I have control over unfortunately. |
Checklist
Is your feature request related to a problem? Please describe.
In most circumstances, PowerCalc creates entries for switch or light, meaning, it tracks state of the entity, including unavailability.
In the case of energy meters and generic IoT devices, there is no entity to be tracked.
As a result, if the device is being turned off (for whatever reason), PowerCalc continues to generate power/energy on behalf of this device.
Describe the solution you'd like
I would like to have the option to assign any sensor informing PC about unavailability.
It could be one of the entities being members of a tracked device. For example power entity. There is no need to track all entities. If device goes off, all entities turn unavailable.
States
unavailable
andunknown
identify the unavailability of the device.Then Ignore
unavailable state
andUnavailable power
could be applied afterward to make it coherent with the rest of the flow.the
Describe alternatives you've considered
Maybe templates are offered by config flow? But not sure it's possible get
unavailable
result from them.Additional context
N/A
The text was updated successfully, but these errors were encountered: