I just managed to get my Somfy rollershutter to work with Somfy URTSI II and Command line Rollershutter with raspberry pi and USB to RS232 adapter. This is one way control only, so rollershutter state is unknown. I’ll just leave this here for others to find.
Hello @yada75 , it’s 3 years later and I just so happen to have an URTSI II and am quite new to hassio. I’ve got my shades working with it manually, however I’m just trying to figure out how to send it commands via usb to RS232. Was hoping to copy your code almost exactly, but that rollershutter component no longer exists. I tried to use command line cover like this:
Hey there @yada75 . That’s awesome that you were able to respond so soon. I actually just got things working, and I’m not quite sure why. Was able to do core-ssh:~# echo ‘0101U’ > /dev/ttyUSB0 from SSH and that worked just fine. After that I went back and pressed the cover switch I made in hassio, and they suddenly also worked after not working for hours. The only thing I changed from my code above was putting the full command lines in single quotes:
Thanks, you put me on the right path here for adding the lines to manage the control
I had the same issue with Comm port settings, Added //Serial to set my port baudrate.
There’s other settings I might force just in case some other process decides to run a muck, but the baudrate got me set
# Set Serial Port Bauds
sensor:
- platform: serial
serial_port: /dev/ttyUSB0
baudrate: 9600
# Somfy URTSI II RS232 Integration
cover:
- platform: command_line
covers:
main_blind:
command_open: 'echo "0101U" > /dev/ttyUSB0'
command_close: 'echo "0101D" > /dev/ttyUSB0'
command_stop: 'echo "0101S" > /dev/ttyUSB0'
Just thought I’d share in case someone else stumbles here. I realize this is an old thread, but came in useful!