hcpy2-0 / hcpy

Python tool to talk to Home Connect appliances over the local network (no cloud required)
56 stars 12 forks source link

HomeAssistant addon #79

Open drbiosignals opened 2 months ago

drbiosignals commented 2 months ago

Thank you for this great project.. I have noticed following 2 issues with the hass-addon 1) Mqtt sppecial characters for passwords are not recognised - for instance $$ is converted to 1. 2) I get following message - No address associated with hostname. Even replacing hostname with the correct ip address does not solve the issue Device is a Siemens oven Both problems appear not if the python scripts are directly installed in rpi4

Thank you for your support.

sweti3 commented 2 months ago

Where did you find the HASS Addon? This would be so awesome to get this working, as I understood locally? Do you know what is the difference to the "Home Connect Alt" ? Thanks!

Meatballs1 commented 1 month ago

The home assistant add-on is in this repository and afaik it should be available by adding this repo to the list, but I don't use it.

Home connect alt is cloud based, and is a bit better than the native home assistant integration. This integration is local (except for the initial login/setup), so will work during internet outage etc

Meatballs1 commented 1 month ago

The password issues sounds like it's being processed by the bash script perhaps $$ would return the PID which could be 1 in a container?

Might be easiest to add a second account without offending chars to the MQTT broker until someone takes a look - I don't use the Addon so might take a while

drbiosignals commented 1 month ago

Thank you for your responses.. I think the special characters issue is only related to the hass-addon. Inbetween I could configure hcpy in a non-hass rpi and I was able to create MQTT autodiscovery configure commands for home assistant. Now I have a fully functional and fully operational local integration for my 3 homeconnect devices (washer, dryer and oven).

I think we could use the device.json and automarically create autofiscovery homeassistant commands for a better integration with homesssistant.

If anyone needs help with this, I will be pleased to help.

Thank you for this great project

saveriol commented 3 weeks ago

Maybe it's just me but I have trouble understanding how to setup devices.json using HA addon. When adding the repository to HA, the addon crashes with this error:

FileNotFoundError: [Errno 2] No such file or directory: 'config/devices.json'

If it crashes, I can't attach to the container and setup the devices.json file. Can someone give me an hint? It would be awesome if the devices.json file could be written via HA GUI using home connect username and password but maybe pasting a pre-created devices.json in HA addon configuration is sufficient.

Meatballs1 commented 3 weeks ago

https://github.com/hcpy2-0/hcpy/wiki/HomeAssistant-Addon#install

Instructions are in the wiki