Comments (9)
Yes that template works fineπ
from homeassistant-powercalc.
@erkr Pretty sure I investigated this somewhere in the past. Could not find the issue/discussion again.
Anyways if I remember correctly there is another prerequisite in expand
template function which I cannot comply (thought there is a check for platform group or something like that in code code).
Also for auto entities I have checked to support that.
I might revisit this though as I see why this can be very useful. Maybe there has been changes in HA where I can be able to get this working.
Also this would be a breaking change. People relying on entities
in there template will need to adopt when I change this.
from homeassistant-powercalc.
I did a quick test, but I cannot make this working for expand
.
The culprit is here. Where HA checks specifically for group.*
entities. Powercalc group sensors are part of sensor
domain.
https://github.com/home-assistant/core/blob/dev/homeassistant/helpers/template.py#L1270
from homeassistant-powercalc.
Thanks for testing. Didn't know that expand() expects the group domain. Nice you recognise the added value for populating cardsπ
from homeassistant-powercalc.
For example how to do auto entities see here:
https://community.home-assistant.io/t/powercalc-virtual-power-sensors/318515/665?u=bramski
from homeassistant-powercalc.
Thanks for testing. Didn't know that expand() expects the group domain. Nice you recognise the added value for populating cardsπ
It was on the back of my mind somewhere. It's a pity, but they won't add any specific code for powercalc in core. Also, there is no possibility for custom components to provide entities in the group domain, that's something only core code can do.
So there is no solution unfortunately yet for the expand
from homeassistant-powercalc.
Group support for cards would already be very nice. π I realise it is actually breaking change.
from homeassistant-powercalc.
To be honest, this integration is so useful, it should be part of core π€
from homeassistant-powercalc.
Closing as it's not something I can fix. Example how to use with auto entities is shared above.
from homeassistant-powercalc.
Related Issues (20)
- Daily energy entities disappear from powercalc UI after reboot HOT 10
- OFF consumption > min ON consumption with TRADFRI bulb E27 WS globe 1055lm (LED2201G8) HOT 1
- PowerCalc: Cannot connect to powercalc.lauwbier.nl:443 HOT 2
- None entities HOT 7
- After every reboot integration automatically creates a None device HOT 32
- Error and not starting after upgrade from 1.12.6 to 1.12.7 HOT 11
- Detected blocking call to open inside the event loop by custom integration 'powercalc' HOT 1
- Plugin no longer working in offline mode HOT 2
- IntegrationSensor.__init__() missing 1 required keyword-only argument: 'max_sub_interval' HOT 7
- Detected blocking call to walk inside the event loop; power_profile.py, line 171 HOT 2
- Have had issues for a while now but powercalc wont start HOT 2
- New smart plug won't show energy sensor HOT 6
- Utility reset HOT 1
- TS011F _TZ3000_w0qqde0g powerplug not yet supported HOT 1
- Measure Tool as Add-on HOT 1
- All Devices off, Powercalc not loading at starting HA, also not with the newest Update HOT 19
- "All standby power" / energy entities do not link back to Powercalc integration HOT 3
- Philips Hue Bloom LC001 HOT 6
- JSONDecodeError and not a valid ColorMode Error during startup since v1.12.12 HOT 15
- Error while dispatching HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homeassistant-powercalc.