Skip to content
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

HomeAssistant addon #79

Open
drbiosignals opened this issue Jul 7, 2024 · 10 comments
Open

HomeAssistant addon #79

drbiosignals opened this issue Jul 7, 2024 · 10 comments

Comments

@drbiosignals
Copy link

drbiosignals commented Jul 7, 2024

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
Copy link

sweti3 commented Jul 8, 2024

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
Copy link
Collaborator

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
Copy link
Collaborator

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
Copy link
Author

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
Copy link
Contributor

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
Copy link
Collaborator

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

Instructions are in the wiki

@pmagyar
Copy link
Contributor

pmagyar commented Oct 7, 2024

Hey @saveriol @saveriol @drbiosignals

Is this issue solved for you with the latest PR #95 / release?
If yes, i would close this issue.

@bkbartk
Copy link

bkbartk commented Oct 8, 2024

It is only since yesterday I found out about this project, and I don't have it fully configured yet. so excuse me for my maybe obvious question.

This integration is local (except for the initial login/setup), so will work during internet outage etc
You mention This integration, and my question is, would there be a way to run this one as an integration instead of an add-on?

@pmagyar
Copy link
Contributor

pmagyar commented Oct 9, 2024

Hey @bkbartk ,

no, its not possible to run it as integration. @Meatballs1 meant integration as a synonym for the solution provided in the repository.

You can run the solution in following ways:

  • clone the repository and run scripts manually
  • run as docker containers
  • Homeassistant Addon

The first two ways are documented in:
https://github.com/hcpy2-0/hcpy?tab=readme-ov-file#setup
https://github.com/hcpy2-0/hcpy?tab=readme-ov-file#authenticate-to-the-cloud-servers
https://github.com/hcpy2-0/hcpy?tab=readme-ov-file#home-connect-to-mqtt

@bkbartk
Copy link

bkbartk commented Oct 9, 2024

thnx,

I'm indeed now exploring the add on, and got all sensors working, I still have some challenges using the switches. but just let me say, This is awesome for moving away from cloud.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants