The tutorial claims that you can send RS232 commands using this notation
lu_iop_send('!01U')
I did as described, but nothing came through. In stead vera gave a popup saying “received empty response”. When I click “go” the second time, an error is printed in the status area “message failed”. After a while that changes to “user data reloaded”.
I am using device number 4, which is the device number vera assigned to ‘Somfy blind interface’. I believe that is the one that should be used, and not the device number for the blind devices that are also created (the plugin creates one device for each blind/shade + one ‘Somfy blind interface’).
@nanckekr: The Wiki page is wrong. They updated the Luup commands a long time back and looks like they forgot to update this page. See this posting for the most recent references/mapping between new and old style:
When the commands are wrong in the Luup, it’ll usually return unhelpful errors like you’ve indicated. If you look in the Logs (/var/log/cmh/LuaUPnP.log) you’ll usually see the problem printed out. It’ll probably refer to something being “nil” or undefined.
@MCVO: Want to take a crack at updating the Wiki page using the Mapping above?
Thanks!!! I updated the wiki for this particular page to use the correct command. I have not looked at the other wiki pages.
This also helped me understand a lot more about how to test lua commands, as now I see that the commands in the lua files are the same as the command you can write in the ‘test code’ web ui. Very useful!!
Guessed, anyone can modify the wiki pages if they offer useful information to our community. Feel free at any time to do that. And thanks nanckekr for updating the wiki.
@MCVO Yes, I know. I update it frequently for the User-generated content (etc).
I figured you also might enjoy updating the Wiki from time to time, especially for core documentation/tutorial pages for the product, as it would help you get up to speed on Lua/Luup.
If you look at the page, and my original forum post, you’ll see there are a few updates you can still make.