Giter Site home page Giter Site logo

Comments (10)

tubbers avatar tubbers commented on July 16, 2024 1

i have this issue too. real devices stay, but any virtual device disappears. I note the entities are still there, but inactive, but the base device is gone
pc
pc2

from homeassistant-powercalc.

bramstroker avatar bramstroker commented on July 16, 2024 1

@bramstroker I was on version 1.12.3. I just updated to version 1.12.5 now and will test.

Q. this config entry is not visible anymore at "Integration entries"? A. The config disappear completely from the integration entries after restart. the entities like energy and utility entities stays but with status "Not provided"

Q. Did you create this recently? A. Yes on version 1.12.3 .

Ah ok thanks. That was exactly what I was able to reproduce and fixed. But not released yet.
This bug was specifically with "Daily fixed energy", not "Virtual power (manually)".
There was a JSON encoding issue while saving the config entry, so the entry would never been actually saved, and thus not surviving restarts.

Will release new version shortly with the fix.

But I was uncertain because of your comment "virtual device disappear" that the issue was broader than only the daily fixed sensors.

from homeassistant-powercalc.

bramstroker avatar bramstroker commented on July 16, 2024 1

Just released v1.12.6 with the fix.
@tubbers when your issue is not with "Daily energy" sensors please create a separate issue, and provide more information.

Screenshot 2024-06-01 at 12 23 28

from homeassistant-powercalc.

bramstroker avatar bramstroker commented on July 16, 2024

No errors in the logs?

You should see Creating daily_fixed_energy energy sensor one time for each your config entry, which indicates the entities are being created by powercalc.
In your debugs logs I only see one for "Test_debug", so that's probably a test you did?

from homeassistant-powercalc.

mikealanni avatar mikealanni commented on July 16, 2024

Yes I did the test to collect the debug info and only that what I've got. Any daily energy sensors created by powercalc via the UI will disappear after restart the home assistant. So I went a head and created them in the configuration yaml file and they are working with no issue. The only two sensors that never disappeared from powercalc are the Google home that automatically discovered and another one I created for my Tuya smart plug. Maybe because they associate with actual devices and the daily energy all just virtual?

from homeassistant-powercalc.

bramstroker avatar bramstroker commented on July 16, 2024

@mikealanni Issue confirmed with Daily energy. I was able to reproduce and have a fix with #2271
Actually this bug was introduced in very recent version v1.12.3 from 2 weeks ago.

@tubbers For you also this config entry is not visible anymore at "Integration entries"?

Screenshot 2024-06-01 at 08 53 17

Did you create this recently?

If not available anymore please create again, and after that check the logs for errors. Also click three dots and download diagnostics than. Would help me debug the issue.

When the config entry is still visible, also download diagnostics and share.

from homeassistant-powercalc.

laplac avatar laplac commented on July 16, 2024

I have the same issue. Real device stays like Alexa and virtual device disappear.

from homeassistant-powercalc.

bramstroker avatar bramstroker commented on July 16, 2024

@laplac Could you have a look into the questions I asked to @tubbers ?
And since when do you experience this issue?

from homeassistant-powercalc.

laplac avatar laplac commented on July 16, 2024

@bramstroker I was on version 1.12.3. I just updated to version 1.12.5 now and will test.

Q. this config entry is not visible anymore at "Integration entries"?
A. The config disappear completely from the integration entries after restart. the entities like energy and utility entities stays but with status "Not provided"

Q. Did you create this recently?
A. Yes on version 1.12.3 . I didn't use Daily Energy feature before until a week ago.

from homeassistant-powercalc.

tubbers avatar tubbers commented on July 16, 2024

I don't have the 3 dots to download, as the devices are missing. So there is no configure option or 3 dots. Only physical devices exist. I upgraded to this new fixed version and recreated the devices. I created both daily energy and virtual devices and both were lost on reboot

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.