Comments (10)
IotaWatt is natively supported through a HomeAssistant integration. It was release in the 2021.9 version, and I don't believe we need a custom component to use it. I was using the custom integration until today, but switched to the native because I received the same error like you did. Everything's back to working now! cheers.
from iotawatt_ha.
Thanks for your reply here.
How did you make the switch? Could you please briefly highlight the steps?
I like to do the same thing in 2023.4 version (I restored that), and migrate to the "official" iotawatt integration before upgrading HA again.
from iotawatt_ha.
tbh, I did the migration to using the official integration AFTER migrating to 2023.5.1. It was pretty straight forward. Please make any backups as needed before doing the below steps in case you encounter data loss of any sorts.
- Delete the current integration that references the custom component
- Delete the custom component
- Restart Home Assistant
- Install IotaWatt official integration from the Home Assistant integrations page
Once I did steps 1-4, all my existing data showed up. I think this should work for you as well.
from iotawatt_ha.
Thanks for the help, that worked ! I didn't expect that all sensors and history would be kept. Very smooth switch!
from iotawatt_ha.
I fixed this in my fork and added PR to merge it here. The one embedded in HA itself has issues with removed UUIDs so that entities from outputs can't be edited in UI. Switching to native likely renames all sensors. I didn't want to switch.
Use my fork if you want or one day it may get merged here (or fixed otherwise).
from iotawatt_ha.
@karthikvenkat123, I was also having issues since 2023.5.0. Upgraded to .5.2 which did not resolve. I have followed your steps and it is now working but as @darek-margas points out, the official one does not add in outputs. Using @darek-margas's fork is working for me now. Hope for some collaboration on merging to the official release sometime in the future. I had no idea there were so many versions of this integration floating around!
from iotawatt_ha.
The official integration has issues with Inputs, but only in one way: You cannot edit the names/entities, but they actually do show up. I have the "official" integration working with all inputs working - as long as you can accept the names which are generated automatically. The migration was really smooth, just delete the custom integration, reboot, install the "official" integration - and it kept all data and all entities from the custom integration.
from iotawatt_ha.
It is mixed problem. First these silly names and inability to set them any other way than in yaml. Then, while inputs are showing up, outputs are hidden. They do appear but HA does not recognize them as sensors from Iotawatt. This is why I haven't found them at first go. It is a mess but one which HA demanded. For HA dev team Iotawatt does not provide sensor with id being unique enough so that to integrate within, this integration had to be screwed up to have no unique IDs. The one here has them. Personally I want them regardless of politics biased fight in HA team. It is politics only as what is documented allows what Iotawatt has just not for Iotawatt.
So, it is not a failure or a bug which needs a fix, it is forced to be broken as a condition of merge into HA code.
from iotawatt_ha.
Very interesting. As a user, I need my inputs and custom outputs. So the official one would be fine if I was only using my inputs but part of IotaWatt’s brilliance is it’s outputs feature. I export both inputs and outputs to a database too. And the only real way of getting accurate data in the energy dashboard is by using outputs too. Anyway, hope something can be resolved going forward. It clearly works as a HACS component. So I hope they get over any policy stuff and make it work because it’s a brilliant device.
from iotawatt_ha.
I updated my fork to backport all the changes from core up to 2024.8 while retaining outputs with unique IDs. I may actually push a PR yet this repo seems dormant, hence unlikely to merge here. I think easiest way is to add my fork into HACS.
from iotawatt_ha.
Related Issues (20)
- Unable to prepare setup for platform iotawatt.sensor: Platform not found (cannot import name 'VOLT' from 'homeassistant.const' HOT 3
- Need graphic/logo for IoTaWatt HOT 2
- Issues with wh for a particular "solar surplus" output
- wh issue when using Iotawatt with calculations HOT 4
- Multi-IoTaWatt setup issue with identical inputs HOT 13
- Sensor isn't updated until a new different value is read HOT 2
- Sensor state isn't updated unless the value change. HOT 1
- Energy sensors created from an IotaWatt output can yield an incorrect result HOT 8
- Sensors based on output and returning frequency or power factor return 0 HOT 1
- Entering wrong credentials does not stop setup
- Remove last_reset attribute HOT 6
- All outputs are missing in 0.1.1 HOT 25
- Confused with current versioning, and HACS vs HA built-in. HOT 3
- Entity sensor.main_2_wh from integration iotawatt has state class total_increasing, but its state is not strictly increasing. HOT 1
- Can't find integration in HACS HOT 1
- Unexpected state class HOT 1
- Unremovable Duplicated Output Entities HOT 5
- Energy use - wh vs wh_accumulated?
- After creating aggregoators these are not being discovered/added to HA 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 iotawatt_ha.