Giter Site home page Giter Site logo

Comments (3)

bramstroker avatar bramstroker commented on August 14, 2024

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.

bramstroker avatar bramstroker commented on August 14, 2024

@see #110

from homeassistant-powercalc.

bramstroker avatar bramstroker commented on August 14, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.