-
Notifications
You must be signed in to change notification settings - Fork 13
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
Card Cramming leads to distortion #30
Comments
In case you need it, here is the card config: type: 'custom:power-distribution-card'
title: Power Distribution
animation: slide
entities:
- solar:
entity: sensor.envoy_current_energy_production
name: Solar
unit_of_display: adaptive
- grid:
entity: sensor.smartmeter
name: Grid
unit_of_display: adaptive
- consumer:
entity: sensor.lounge_power
name: Lounge radiator
icon: 'mdi:radiator'
invert_value: true
unit_of_display: adaptive
- consumer:
entity: sensor.demi_s_room_power
name: Demi's radiator
icon: 'mdi:radiator'
invert_value: true |
OK first of all thanks alot for reporting the issues 👍 I will try to replicate it.. maybe it has something to do with the width of the parent card but not sure. The arrow issue is quite certainly connected to that aswell. Regarding the Adaptive display: I don't know what is going on here... Especially when it seems to work with your solar ? Can you try Hard-Reloading your browser? (Chrome : Shift+F5, Firefox: CTL + Shift+ R, Safari: Command (⌘) + Option (⌥) + R) |
Ok. I was able to replicate the "cramming issue" with a to small view. The Problem never occured to me before. I will look into it and realease a hotfix if i'm able to solve it . For the adaptive display, i wasn't able to replicate it yet. Thanks for your help 😅 |
@Siggy101 Ok i see the Issue here... your smart meter is measuring in kwh which is a different unit then kW... Thats why it isn't detected... Actually kW and kW-h mean different things as the latter is considering the time aswell, so the calculations would be wrong aswell... I will need to think about if i should add support for that. Or just recommend |
Sorry, that is a red herring. |
👌 Nice so this one is resolved. |
Yep, it looks like having the 2 outputs from the smart meter, one in kW and one in kWh was enough to stop the card adaptively switching between the 2. I can see how that could happen. |
So i think i found fixes for 2 of your issues. maybe you can checkout the 1.6.1 prerelease and tell me if it works? There is a new and kWh is now supported |
Thanks. Will install and test. |
OK, it looks like your idea to allow the user to specify the attribute has nailed it. I can put the attributes in any order in my configuration file and it is displaying W/kW correctly. I can also add the counter and it will show it in kWh too. |
ok then this should be solved now. I had to switch from CSS media queries to Resize Observers 😅 Let me know if it worked for you @Siggy101 |
Sure thing. I'll update and test over the weekend. |
Hi @JonahKr . First off, thank you for making an awesome card. I love it!
I recently installed v1.6 and tried out the adaptive W/kW detection.
It seems that it is not working right with my Smart Meter:
This should be showing either 249W or 0.249kW.
Any chance you can have a look?
In addition, the arrows no longer line up with the item they are displaying. They seem too low now.
Last point: The new slide option for the arrows is super slick. I love it! However, when I enable it and look at the Android app, they are still flashing, not sliding.
The text was updated successfully, but these errors were encountered: