Searching for a method how to manage my SELVE IVEOs from Home Assistant for several months I found your SELVE integration. I bought the SELVE RF-USB Stick and used it on a PC with the SELVE-software to connect my 6 SELVE IVEO devices to the stick. I could drive up/down all 6. Now the stick is running connected to the Raspi driving my Home Assistant.
BUT I never worked with scripts and python scripts in HA. It would be a great help for me, if someone could explain the steps I must do now to get to be able to drive the rollershutters via HA.
For my understanding HA per default is able to call python scripts.
Where can I find a complete Setup-description?
At first I downloaded the “python-selve” module from Github (version of 16.10.19) and copied it into the HA-folder config/python_scripts/python-selve-1.2.1
The download of “homeassistant-selve” module (version of 16.5.23 ) from Github into the HA-folder config/cusom_components/selve was the second step.
Third step: entry in configuration.yaml:
# port: /dev/ttyUSB0
Do I have to make changes regarding the port in any other file(s)?
Is there an additional setup process within HA to get devices / entities for the already to the stick connected IVEOs?
What must I do to drive the IVEO-rollershutter named kitchen up / down?
Define a button which calls a service to execute a python script to send the IVEO-command via the stick? Must I write my own python script using the commands of the selve library first for this?
I found some hints but do not understand to realize it:
Create a new instance of the gateway:
gat = Gateway(portname)
portname is the name of the serial port where the usb rf gateway is listed on the os. Please refer to the serial library documentation.
By default the gateway will discover all Iveo devices already registered onto the gateway.
To access them:
Will return a list of IveoDevices()
Each IveoDevice can be controlled by using the already defined commands: stop() moveUp() …
I would be very glad if there would be anyone to help me to get the IVEOs running!
Have a nice evening.