RainerStaude / hass-becker-component-plus-pybecker

A native home assistant component to control becker RF shutters with a Becker Centronic USB Stick.
MIT License
44 stars 3 forks source link

HACS #1

Closed Dreaming-Codes closed 2 years ago

Dreaming-Codes commented 2 years ago

It would be handy to add the integration to hacs: https://hacs.xyz/

gschmidl commented 2 years ago

Doesn't HACS delete and redownload the entire directory on updates? That would delete your database file as well unless it's moved.

Dreaming-Codes commented 2 years ago

Doesn't HACS delete and redownload the entire directory on updates? That would delete your database file as well unless it's moved.

I'm not sure since I don't know where this integration store the db file. In case it can be solved by putting the db file in a specific folder and then specify the path to that folder in the persistent_directory option

@RainerStaude

Anyway, you forgot this:

For this to work you need to add a description here on github to the repository and some topics. To make this work you need to add a description and topic to the github repository. You can do this by clicking on the gear next to the about word on the main page of the repository.

gschmidl commented 2 years ago

It's stored right in the pybecker subdirectory.

Dreaming-Codes commented 2 years ago

It's stored right in the pybecker subdirectory.

I don't have any db file inside that directory.

gschmidl commented 2 years ago

Marked in green here:

image

RainerStaude commented 2 years ago

You make me crazy

  1. db file was already stored in config folder IF you choose a different filename (see README). I just changed this to ALWAYS store db file in config folder.
  2. loosing your db file is not a big problem. I already added code to restore all configured units in the db file and sync the covers by sending 5 halt codes for each unit. I just found that the num file might be a problem for unit 1. Therefore I removed it.
RainerStaude commented 2 years ago

I added the description. Hope it works now.

Dreaming-Codes commented 2 years ago

I added the description. Hope it works now.

You also need at least one repository topic.

gschmidl commented 2 years ago

It just showed up for me - thank you so much for this, hopefully I wasn't being too annoying.

RainerStaude commented 2 years ago

@Dreaming-Codes done

Dreaming-Codes commented 2 years ago

@Dreaming-Codes done

now everything works