Comments (3)
Yes I did some consideration lately about creating a script using Home Assistant for both the light and power meter, as this allows more users to contribute lights.
The simplest solution would be to create another script utilizing the Home Assistant API for this. The script would ask the user to enter the entity id for the light and the entity id for the power meter, and the script will iterate through all the color/brightness settings (logic can be copied from current measure script).
My biggest concern is about the latency (between setting the light and getting the measurement). First because there are more abstraction layers and components involved with this approach. Secondly there are so many smart power plugs (zwave, zigbee, tuya, wifi plugs, esp based) around which all have there different characteristics and update times. And how to know if the power meter is updated correctly after setting the light to another setting.
That's why I choose to directly use the hue bridge and shelly plug because it has the lowest latency this way, and because I knew if this was working for me it would also work correctly for others using the same hardware.
I am developing this component in my spare time, which is quite scarce. So I have to make priorities. I think I don't like to support all kind of different power meters, home assistant installations (configurations) and the problems they potentially could have. Especially because I don't own the hardware myself.
Still I will consider building the script to use HA directly, but don't know when or if I will do it.
But I am happy to accept any PR.
Cool you can contribute with some more signify lights! keep them coming. Also check #87 which will soon be merged if you are not doing any duplicates.
from homeassistant-powercalc.
from homeassistant-powercalc.
Will close this issue, keep an eye on the PR please, hass script will be available in some time.
from homeassistant-powercalc.
Related Issues (20)
- Waiting on integrations to complete setup HOT 9
- versione 1.11.8 doenst work HOT 3
- Global search not working anymore in library GUI HOT 1
- LCA007 lookup not working with 1.12.0 HOT 5
- FileNotFoundError - model.json HOT 10
- Use Nanoleaf A19 Matter Bulbs for HomeKit Bulbs HOT 3
- add to group for daily energy HOT 3
- wrong energy when using template HOT 3
- No lookup file found for mode: color_temp HOT 9
- Group problem HOT 9
- Unexpected device attributes HOT 5
- Ikea LED1537R6 is not recognized. HOT 1
- Blocking call to open inside the event loop in Home Assistant 2024.6.0 beta
- 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
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.