Comments (3)
Hi, I solved this in my installation by using the group integration and a template sensor. I am using 20 lights.
Unfortunately you still have to setup 100 lights in the powercalc integration and define them in the group. But you only need to do this one time.
Step1 - Setup powercalc:
sensor:
- platform: powercalc
entity_id: light.livingroom
- platform: powercalc
entity_id: light.bedroom
Step2 - Create a group of the power sensors created by powercalc
group:
all_light_power:
name: All lights power
entities:
- sensor.livingroom_power
- sensor.bedroom_power
Step3 - Define a template sensor summing all the power values
sensor:
- platform: template
sensors:
all_light_power:
friendly_name: All light power
unit_of_measurement: W
icon_template: mdi:transmission-tower
value_template: >
{{ expand('group.all_light_power')
| rejectattr('state', 'in', ['unavailable', 'unknown'])
| map(attribute='state') | map('float') | sum | round(2) }}
When you add a new light you only need to add this to the powercalc integration and the group.
from homeassistant-powercalc.
Thank you very much! That was I what looking for.
from homeassistant-powercalc.
I have succesfully setup this sensor for all my lights. I included the Energy sensors instead of the Power sensors as I would like to see the total kWh. I can see the total kWh under entities.
However I am unable to add this sensor in de Energy dashboard at Individual Devices.
What do I need to change so I can add it to the Energy dashboard?
from homeassistant-powercalc.
Related Issues (20)
- 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
- ability to enter power-on consumption for 'Sonof ZBmini01' via the configure GUI HOT 3
- Why is powercalc trying to reach the internet after installation and setup? HOT 11
- Thanks for the contribution, makes sense to add the alias as you also verified the power draw is similar. HOT 2
- cant delete entries on the integration HOT 9
- Energy sensor have mixed kWh or Wh as unit HOT 10
- light_setting.hue = int(hs[0] / 360 * 65535) ~~^^^ TypeError: 'NoneType' object is not subscriptable HOT 4
- Innr outdoor lights
- Adopt powercalc to change in device info HOT 1
- Add IKEA LED2104R3 GU10 bulb
- Support for multiple-outlet smart outlets and smart strips HOT 20
- Energy sum to retrieve untracked energy HOT 5
- Option flow cleanup HOT 1
- More than 130 powercalc light entities per room. Why? HOT 11
- Adding my autodectected TP-Link HS300 results in exception HOT 4
- A sensor grouping power sensors went crazy HOT 7
- Allow edit of disabled PowerCalc entry HOT 3
- Problem with group-type entities HOT 7
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.