Re: Home Automation - Roller Shutter
Posted: 17 Jun 2014 19:48
As promised, here is a step-by-step guide of how I got my FGRM-222 to work. Obviously this comes with no warranty, so do make proper backups. I will assume that the device is already working as a SwitchBinary and that you have fixed the configuration file by doing the constant -> rangemapped replacement described elsewhere on this forum.
- Check which ID the device has, in the example I will use 4.
- You can try to use SwitchMultilevel from the command line:
This should print 'null' and put your blinds in the halfway down position. If it doesn't work (Error 500: Internal Server Error), run the calibration of the roller shutter and try again. If you restarted the Z-Way server after the last calibration you will have to recalibrate.
Code: Select all
curl -g 'http://localhost:8083/ZWaveAPI/Run/devices[4].instances[0].commandClasses[38].Set(50)'
- Stop the z-way-server
Code: Select all
sudo service z-way-server stop
- Now to make Z-Way remember about the multilevel capabilities go to /opt/z-way-server/config/zddx. Here you will find a single file called XXXXXXXX-DevicesData.xml.
- Make a backup of the file for if we break something:
Code: Select all
cp XXXXXXXX-DevicesData.xml ~
- Open the file in your favourite editor and find the bit that looks like the following: (0025/37 is SwitchBinary)
Code: Select all
<commandClass id="0025"> <data name="devices.4.instances.0.commandClasses.37.data" invalidateTime="1393691480" updateTime="1393691481" type="NoneType" value="None"> <data name="supported" invalidateTime="1401379300" updateTime="1401379301" type="bool" value="true"/> <data name="version" invalidateTime="1393691480" updateTime="1393691481" type="int" value="1"/> <data name="security" invalidateTime="1393691480" updateTime="1393691481" type="bool" value="false"/> <data name="interviewDone" invalidateTime="1393691480" updateTime="1393691504" type="bool" value="true"/> <data name="interviewCounter" invalidateTime="1393691480" updateTime="1393691504" type="int" value="9"/> <data name="level" invalidateTime="1402830879" updateTime="1402830880" type="int" value="0"/> <data name="mylevel" invalidateTime="1393691480" updateTime="1393691481" type="int" value="0"/> <data name="startChange" invalidateTime="1393691480" updateTime="1393691481" type="NoneType" value="None"/> <data name="stopChange" invalidateTime="1393691480" updateTime="1393691481" type="NoneType" value="None"/> </data> </commandClass>
- Duplicate this section and edit the class ID as follows: (0026/38 is SwitchMultilevel)
Code: Select all
<commandClass id="0026"> <data name="devices.4.instances.0.commandClasses.38.data" invalidateTime="1393691480" updateTime="1393691481" type="NoneType" value="None"> <data name="supported" invalidateTime="1401379300" updateTime="1401379301" type="bool" value="true"/> <data name="version" invalidateTime="1393691480" updateTime="1393691481" type="int" value="1"/> <data name="security" invalidateTime="1393691480" updateTime="1393691481" type="bool" value="false"/> <data name="interviewDone" invalidateTime="1393691480" updateTime="1393691504" type="bool" value="true"/> <data name="interviewCounter" invalidateTime="1393691480" updateTime="1393691504" type="int" value="9"/> <data name="level" invalidateTime="1402830879" updateTime="1402830880" type="int" value="0"/> <data name="mylevel" invalidateTime="1393691480" updateTime="1393691481" type="int" value="0"/> <data name="startChange" invalidateTime="1393691480" updateTime="1393691481" type="NoneType" value="None"/> <data name="stopChange" invalidateTime="1393691480" updateTime="1393691481" type="NoneType" value="None"/> </data> </commandClass>
- Now save the file and start the z-way-server again:
Code: Select all
sudo service z-way-server start