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
Amend config to permit json-live-data-server #3
Comments
Hi Martin, The endpoint If I see it correct, then km2 and this endpoint return the same format and it should be enough to just decide which endpoint to use like in the original code: https://github.com/dm82m/hass-Deltasol-KM2/blob/1bcb26b45dc04be2a7aa90405bc1e313d01be864/custom_components/deltasol/deltasolapi.py#L140-L166 |
Thanks Leo, I will check it out tomorrow/over the weekend. Much appreciated for providing the device information and JSON data. |
Hi Leo, I am on Christmas family holidays, only have Laptop, no mouse, no external keyboard, no big screen.....so not ideal... The following might work: In resolapi.py line 113 add this method:
In sensor.py line 66 add the following:
In config_flow line 54 add the following:
I think it would be best to expose your JSON data for testing via a public IP or DYNDNS, even on Proxmox that might work? If not, I will setup a better test environment when back from holidays, which is only middle of January. Let me know if the above works, maybe it does. Also pls just enter anything for username/password for now - if you don't use one then the DL2/3=DLX method is ignoring it for now. Once I can test properly will setup a different config_flow for those type of devices/JSON servers. Thanks |
Hi Martin, |
...can't believe I forgot that, sorry bout that. Glad it worked. I am still not happy with it - I think some people on the json live data server may require username/password and even API key from what I can see. If you do get a chance to make your setup public (even just whitelist for me) I would like to integrate it and test it properly. Also with proper exceptions, logging etc. and once properly tested upgrade to a new version of this custom integration. Pls send me a screenshot how the device looks like if you do get a moment. Thanks for helping with testing this integration, much appreciated. Rgds |
Hi Martin,
I use a VBUS/LAN device and have the json-live-data-server running via HA Addon.
It would be great, if your integration could also handle that.
The json-live-data-server is not protected by username and password. Because these settings in your config dialog are mandatory, I cannot try out if the data format of the json-live-data-server is compatible to the KM2 format.
If I can help adding support for VBUS/LAN please tell me.
Regards
Leo
Originally posted by @lebetz in #1 (reply in thread)
The text was updated successfully, but these errors were encountered: