-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No sensor data visible added for integration #36
Comments
@ankohanse I suggest - unless done already - you enable logging to debug:
and post your full logs filter over [custom_components.deltasol] this will permit to look into those logs. On a side note, I used this plugin and it worked perfectly fine. I have re-written the module from scratch to work with UI based setup and I am in the process of publishing it to HACS. You can load manually and see if this works for you: https://github.com/evercape/hass-resol-KM2 Good luck |
@ankohanse go to settings in Home Assistant and select devices and entities, select entities and type deltasol in the search box. All your sensors will be shown there. @evercape why forking and re-releasing instead of contributing here? |
Didn’t fork. Used a different init method as I wanted to use UI and not YAML to setup. So cannot do pull request. Also I don’t have any devices other than KM2 to test. Have put all in documentation. First time using python and GitHub so if you have any suggestions pls let me know. Was more like a learning project for me. Thanks |
You can also try to bring your improvements as pull requests 1 by 1. just as an idea. If you want to. |
Thanks, good idea. Will do that - but not all of them will work. You opted for YAML setup, which is fine and works well, but I wanted to try devices. One of your users commented on this setup. I initially forked your complete project, and setup devices, but they are not supported unless you use config_flow. I posted a bit around this in community groups, big learning experienced for me. The "improvements" that I point out in my documentation are as follows:
thanks for your feedback. PS: First PR done: #37 |
Thank you! Found them under Settings->Entities. I had been searching via Developer Tools->States and did not have a hit there. They got lost in the 500+ sensors in the list there and I must have completely overlooked them when scrolling through the list. Part of the issue was that I was expecting sensors/entities to have 'deltasol' in their name, as that was what I configured in the 'Name' field in the config. However, it seems that that name is only used for the 'integration' field of the entities. Problem of not using a prefix for each sensor is that they get lost and there is a huge chance of getting name conflicts on their sensor unique id with other integrations. For my system, I adapted your code so that each sensor is now prefixed with the name:
|
No need for it. Unique id is a combination of ids the km2 provided. The naming of the sensor can be changed within Home Assistant. |
The one thing I suggest looking into it is to maybe have the entity_id of the sensor incorporate the serial number of the device (and the unique_id as well). Reason is that when you have multiple Resol devices in the network and within the same Home Assistance instance, there might be an issue with those IDs. Possibly a use case scenario not relevant for most users that only have one Resol device, but for anyone with more than one such as an installer monitoring multiple client devices this could be helpful. @dm82m let me know if you want me to do a pull request on this:
|
Hi, hope this is the right place to ask questions about how to get this integration working...
Added all code files under custom_components/deltasol, restarted HA and added the -platform: deltasol sensor with ip, username and password.
In my traces I can see that communication with the KM2 is successfull and data is being retrieved:
However, I cannot find this data anywhere within HA.
When searching for entities containing 'deltasol' or even '0010', nothing shows up.
When looking into the integrations, deltasol is not visible. When I choose 'add integration' and select 'Resol KM1/KM2...', I get a popup 'This device cannot be added from the UI. You can add this device by adding it to your configuration.yaml'. Which I have done, otherwise it would not show up in the traces.
How do I get this data to show up in sensors/entities? What am I missing?
The text was updated successfully, but these errors were encountered: