-
Notifications
You must be signed in to change notification settings - Fork 61
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
Load Box color switched for Load2 and Load3 #467
Comments
@Scoperius I cant reproduce this. Everything looks good on my end. Please share your config or more info
|
Hi, I have only 3 loads. see the configuration:
|
Found the problem. Thanks for reporting |
Now the box for Load2 is not colored at all. |
Its a rounding and conversion issue. The logic was only checking the state which is 0.3 which is being rounded to 0. |
Hi,
No off_threshold set.
Petr
…------ Původní zpráva ------
Od "slipx06" ***@***.***>
Komu "slipx06/sunsynk-power-flow-card"
***@***.***>
Kopie "Scoperius" ***@***.***>; "Mention"
***@***.***>
Datum 04.06.2024 14:32:24
Předmět Re: [slipx06/sunsynk-power-flow-card] Load Box color switched
for Load2 and Load3 (Issue #467)
Have you defined an off_threshold?
—
Reply to this email directly, view it on GitHub
<#467 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AUTWXLR3DASICDZW3YF5G7TZFWXVRAVCNFSM6AAAAABIVB4WPSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBXGQZDANJSGI>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
When > 1 box color is back
…------ Původní zpráva ------
Od "Petr Lustyk" ***@***.***>
Komu "slipx06/sunsynk-power-flow-card"
***@***.***>;
"slipx06/sunsynk-power-flow-card"
***@***.***>
Kopie "Scoperius" ***@***.***>; "Mention"
***@***.***>
Datum 04.06.2024 19:03:44
Předmět Re[2]: [slipx06/sunsynk-power-flow-card] Load Box color switched
for Load2 and Load3 (Issue #467)
Hi,
No off_threshold set.
Petr
------ Původní zpráva ------
Od "slipx06" ***@***.***>
Komu "slipx06/sunsynk-power-flow-card"
***@***.***>
Kopie "Scoperius" ***@***.***>; "Mention"
***@***.***>
Datum 04.06.2024 14:32:24
Předmět Re: [slipx06/sunsynk-power-flow-card] Load Box color switched
for Load2 and Load3 (Issue #467)
>
>Have you defined an off_threshold?
>
>—
>Reply to this email directly, view it on GitHub
><#467 (comment)>,
>or unsubscribe
><https://github.com/notifications/unsubscribe-auth/AUTWXLR3DASICDZW3YF5G7TZFWXVRAVCNFSM6AAAAABIVB4WPSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBXGQZDANJSGI>.
>You are receiving this because you were mentioned.Message ID:
>***@***.***>
>
|
It depends on your unit of measurement. The calculation will always try convert to W or Wh before checking if > than off_threshold. If you don't provide an expected unit of measurement i.e. W, kW, Wh, kWh then it will simply round that value and then do the calculation i.e. 01-0.4 will round down to 0, 0.5-0.9 will round up to 1. |
Thanks for this PR. I was just about to implement a off threshold in my power sensor template for each of my devices, but I see this capability is inbuilt. Brilliant! |
It will be nice to have possibility to set off_treshold for some decimal
points, for instance 0.1 will suit my personal need.
…------ Původní zpráva ------
Od "Mark Purcell" ***@***.***>
Komu "slipx06/sunsynk-power-flow-card"
***@***.***>
Kopie "Scoperius" ***@***.***>; "Mention"
***@***.***>
Datum 05.06.2024 0:43:16
Předmět Re: [slipx06/sunsynk-power-flow-card] Load Box color switched
for Load2 and Load3 (Issue #467)
Thanks for this PR. I was just about to implement a off threshold in my
power sensor template for each of my devices, but I see this capability
is inbuilt.
Brilliant!
—
Reply to this email directly, view it on GitHub
<#467 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AUTWXLTZWE4NZSR6ER5DXNDZFY7IJAVCNFSM6AAAAABIVB4WPSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBYGUZDSMRWG4>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Is there an existing issue for this?
Current Behavior
Box color for Load2 is based on Load3 value and for Load3 is based on Load2 value
Steps To Reproduce
Last version available for today. Used is Lite card version
Expected behaviour
Load2 box color based on Load2 value
Load3 box color based on Load3 value
Card Version
Last
Home Assistant Version
Last
Configuration
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: