flavio / scsgate

A python module to interact with the SCSGate device
MIT License
5 stars 6 forks source link

Scsgate con Home Assistant in Docker container #7

Open alspad75 opened 3 years ago

alspad75 commented 3 years ago

Ciao Flavio. E' possibile usare scsgate con Home Assistant installato in Docker su un raspberry? Se ciò è possibile, potresti dirmi come fare? Io via ssh ho istallato tramite pip3 scsgate e mi dice che l'installazione ha avuto successo. Dopo di che non so dove andare a trovare i file di configurazione,nè so come farli riconoscere a Home Assistant.

flavio commented 3 years ago

La versione USB di SCS Gate crea un device sotto /dev, stile /dev/ttyUSB0. Puoi vedere quale controllando l'output di dmesg. Questo device deve essere reso accessibile al container tramite la direttiva run --device /dev/ttyUSB0.

Una volta fatto questo penso che basti creare una configurazione di scsgate per home-assistant, il quale provvedera' ad installare il modulo python di scsgate e le sue dipendenze.

Mai fatto onestamente, quindi queste sono indicazioni "a naso"

alspad75 commented 3 years ago

Grazie mille Flavio per la cortese e rapida risposta. Provo e ti faccio sapere l'esito.

flavio commented 3 years ago

Ottimo. Tra la altre cose... e' da un paio di anni che ho preso il nuovo modello di SCSGate, quello basato so esp8266. Ne ho riscritto il firware per renderlo piu' sicuro rispetto all'implementazione originale. Sto continuando a procrastinarne il rilascio... :sweat:

ivanovd commented 1 year ago

Hi @flavio I am looking into implementing some BTicino Living Now smart light switches to my Home Assistant setup and was wondering if this integration still works as I see it hasn't been updated in a while.

From what I see in the Living Now docs, it can work with WiFi and with SCS BUS messages. I am guessing that this integration deals only with the scs bus messages. Would it work with the WiFi version, or this is just related to the way the switches communicate with the gateway.

image
flavio commented 1 year ago

Sorry for the late response, this home-assistant integration works only with the SCS bus. Moreover, it works only with a special circuit board that was built by someone who reverse engineered the whole communication protocol. This is not done against any kind of official API provided by BTCino.

The link to the "special device" is linked inside of the REAMDE, on the first line.

leneaspilimbergo commented 1 year ago

Hello, I have no info on the WiFi version of BTicino switches, but if you are willing to go with the SCS bus there is also a USB gateway called BTicino L4686SDK. I developed a python application to publish on MQTT status for lights, covers and temperature sensors. It was running as a docker application on previous versions of HA but now I had to rewrite it as an appdaemon application [https://appdaemon.readthedocs.io/en/latest/]. I'm free to share it if you want to give it a try...

ivanovd commented 1 year ago

Thanks to both of you! I will definitely report back if I decide to go with BTicino switches. For now, I am researching if they can be integrated into Home Assistant as this is a deal breaker for me if I can't get them integrated.