Changeset 31
- Timestamp:
- 2012-06-09 15:19:48 (13 years ago)
- Files:
-
- 1 added
- 3 edited
-
D_RFXCOM.json (modified) (10 diffs)
-
I_RFXCOM.xml (modified) (5 diffs)
-
MakeZips.sh (added)
-
S_RFXCOM.xml (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
D_RFXCOM.json
r14 r31 51 51 "Top": 20, 52 52 "Left": 20, 53 "Width": 75,53 "Width": 190, 54 54 "Height": 20 55 55 } … … 61 61 "Variable": "portRead", 62 62 "Top": 20, 63 "Left": 115,63 "Left": 215, 64 64 "Width": 120, 65 65 "Height": 20 … … 75 75 "Top": 50, 76 76 "Left": 20, 77 "Width": 75,77 "Width": 190, 78 78 "Height": 20 79 79 } … … 85 85 "Variable": "portWrite", 86 86 "Top": 50, 87 "Left": 115,87 "Left": 215, 88 88 "Width": 120, 89 89 "Height": 20 … … 99 99 "Top": 80, 100 100 "Left": 20, 101 "Width": 90,101 "Width": 190, 102 102 "Height": 20 103 103 } … … 108 108 "Display": { 109 109 "Top": 80, 110 "Left": 115,110 "Left": 215, 111 111 "Width": 100, 112 112 "Height": 20 … … 121 121 "Display": { 122 122 "Top": 80, 123 "Left": 220,123 "Left": 320, 124 124 "Width": 50, 125 125 "Height": 20 … … 136 136 } 137 137 }, 138 139 { 140 "ControlType": "label", 141 "Label": { 142 "lang_tag": "device_settings_page", 143 "text": "Autocreate mode" 144 }, 145 "Display": { 146 "Top": 110, 147 "Left": 20, 148 "Width": 190, 149 "Height": 20 150 } 151 }, 152 { 153 "ControlType": "button", 154 "Label": { 155 "lang_tag": "cmd_AutoCreateOn", 156 "text": "On" 157 }, 158 "Display": { 159 "Service": "urn:upnp-esweb-nl:serviceId:rfxcom1", 160 "Variable": "Autocreate", 161 "Value": "1", 162 "Top": 110, 163 "Left": 215, 164 "Width": 30, 165 "Height": 18 166 }, 167 "Command": { 168 "Service": "urn:upnp-esweb-nl:serviceId:rfxcom1", 169 "Action": "SetAutocreateOn", 170 "Parameters": [] 171 } 172 }, 173 { 174 "ControlType": "button", 175 "Label": { 176 "lang_tag": "cmd_AutoCreateOff", 177 "text": "Off" 178 }, 179 "Display": { 180 "Service": "urn:upnp-esweb-nl:serviceId:rfxcom1", 181 "Variable": "Autocreate", 182 "Value": "0", 183 "Top": 110, 184 "Left": 250, 185 "Width": 30, 186 "Height": 18 187 }, 188 "Command": { 189 "Service": "urn:upnp-esweb-nl:serviceId:rfxcom1", 190 "Action": "SetAutocreateOff", 191 "Parameters": [] 192 } 193 }, 194 195 { 196 "ControlType": "label", 197 "Label": { 198 "lang_tag": "device_settings_page", 199 "text": "Homeeasy mode EU or UK (For Dutch KAKU use UK)" 200 }, 201 "Display": { 202 "Top": 140, 203 "Left": 20, 204 "Width": 190, 205 "Height": 20 206 } 207 }, 208 { 209 "ControlType": "button", 210 "Label": { 211 "lang_tag": "cmd_HomeeasyEU", 212 "text": "EU" 213 }, 214 "Display": { 215 "Service": "urn:upnp-esweb-nl:serviceId:rfxcom1", 216 "Variable": "HomeeasyEUmode", 217 "Value": "1", 218 "Top": 140, 219 "Left": 215, 220 "Width": 30, 221 "Height": 18 222 }, 223 "Command": { 224 "Service": "urn:upnp-esweb-nl:serviceId:rfxcom1", 225 "Action": "SetHomeeasyEUmode", 226 "Parameters": [] 227 } 228 }, 229 { 230 "ControlType": "button", 231 "Label": { 232 "lang_tag": "cmd_HomeeasyUK", 233 "text": "UK" 234 }, 235 "Display": { 236 "Service": "urn:upnp-esweb-nl:serviceId:rfxcom1", 237 "Variable": "HomeeasyEUmode", 238 "Value": "0", 239 "Top": 140, 240 "Left": 250, 241 "Width": 30, 242 "Height": 18 243 }, 244 "Command": { 245 "Service": "urn:upnp-esweb-nl:serviceId:rfxcom1", 246 "Action": "SetHomeeasyUKmode", 247 "Parameters": [] 248 } 249 }, 138 250 { 139 251 "ControlType": "label", … … 143 255 }, 144 256 "Display": { 145 "Top": 110,257 "Top": 240, 146 258 "Left": 20, 147 "Width": 75,259 "Width": 175, 148 260 "Height": 20 149 261 } … … 159 271 "Service": "urn:upnp-esweb-nl:serviceId:rfxcom1", 160 272 "Variable": "Message", 161 "Top": 110,162 "Left": 115,273 "Top": 270, 274 "Left": 20, 163 275 "Width": 500, 164 276 "Height": 20 -
I_RFXCOM.xml
r30 r31 345 345 lsRecvStat = DoSend( client, lsSend) 346 346 347 lsSend = RecodeHomeEasy34(psID, psCmd) 347 -- Check if we should use EU or UK mode 348 local HomeeasyModeEU = luup.variable_get("urn:upnp-esweb-nl:serviceId:rfxcom1", "HomeeasyEUmode", lul_device) 349 if (HomeeasyModeEU == "1") then 350 lsSend = RecodeHomeEasy34(psID, psCmd) 351 else 352 lsSend = RecodeHomeEasy33(psID, psCmd) 353 end 354 348 355 elseif lsDeviceType == "X10" then 349 356 -- to send a command we need to specify: F0 CMD F0 CMD where CMD has special meaning. … … 1673 1680 </run> 1674 1681 </action> 1675 1682 <action> 1683 <serviceId>urn:upnp-esweb-nl:serviceId:rfxcom1</serviceId> 1684 <name>SetHomeeasyEUmode</name> 1685 <run> 1686 luup.variable_set("urn:upnp-esweb-nl:serviceId:rfxcom1", "HomeeasyEUmode", "1", lul_device) 1687 </run> 1688 </action> 1689 <action> 1690 <serviceId>urn:upnp-esweb-nl:serviceId:rfxcom1</serviceId> 1691 <name>SetAutocreateOn</name> 1692 <run> 1693 luup.variable_set("urn:upnp-esweb-nl:serviceId:rfxcom1", "Autocreate", "1", lul_device) 1694 </run> 1695 </action> 1696 <action> 1697 <serviceId>urn:upnp-esweb-nl:serviceId:rfxcom1</serviceId> 1698 <name>SetAutocreateOff</name> 1699 <run> 1700 luup.variable_set("urn:upnp-esweb-nl:serviceId:rfxcom1", "Autocreate", "0", lul_device) 1701 </run> 1702 </action> 1703 <action> 1704 <serviceId>urn:upnp-esweb-nl:serviceId:rfxcom1</serviceId> 1705 <name>SetHomeeasyUKmode</name> 1706 <run> 1707 luup.variable_set("urn:upnp-esweb-nl:serviceId:rfxcom1", "HomeeasyEUmode", "0", lul_device) 1708 </run> 1709 </action> 1676 1710 <action> 1677 1711 <serviceId>urn:micasaverde-com:serviceId:SecuritySensor1</serviceId> … … 1682 1716 </run> 1683 1717 </action> 1684 1685 1718 <action> 1686 1719 <serviceId>urn:micasaverde-com:serviceId:HaDevice1</serviceId> … … 1690 1723 </run> 1691 1724 </action> 1692 1693 1694 1725 <action> 1695 1726 <serviceId>urn:upnp-esweb-nl:serviceId:rfxcom1</serviceId> … … 1700 1731 </run> 1701 1732 </action> 1702 <action> 1703 <serviceId>urn:upnp-org:serviceId:WindowCovering1</serviceId> 1704 <name>Stop</name> 1705 <run> 1706 local har_id = luup.devices[lul_device].id 1707 SendHarrisonCmd( har_id, "STOP") 1708 </run> 1709 </action> 1710 <action> 1711 <serviceId>urn:upnp-org:serviceId:WindowCovering1</serviceId> 1712 <name>Up</name> 1713 <run> 1714 luup.variable_set("urn:upnp-esweb-nl:serviceId:RFXCOMHarrison1","CurtainStatus",0,lul_device) 1715 local har_id = luup.devices[lul_device].id 1716 SendHarrisonCmd( har_id, "OPEN") 1717 </run> 1718 </action> 1719 <action> 1720 <serviceId>urn:upnp-org:serviceId:WindowCovering1</serviceId> 1721 <name>Down</name> 1722 <run> 1723 luup.variable_set("urn:upnp-esweb-nl:serviceId:RFXCOMHarrison1","CurtainStatus",1,lul_device) 1724 local har_id = luup.devices[lul_device].id 1725 SendHarrisonCmd( har_id, "CLOSE") 1726 </run> 1727 </action> 1728 1729 <action> 1730 <serviceId>urn:upnp-esweb-nl:serviceId:RFXCOMHarrison1</serviceId> 1731 <name>SetStatus</name> 1732 <run> 1733 luup.variable_set("urn:upnp-esweb-nl:serviceId:RFXCOMHarrison1","CurtainStatus",lul_settings.newStatusValue,lul_device) 1734 local har_id = luup.devices[lul_device].id 1735 if ( lul_settings.newStatusValue == "1" ) then 1736 SendHarrisonCmd( har_id, "OPEN") 1737 else 1738 SendHarrisonCmd( har_id, "CLOSE") 1739 end 1740 </run> 1741 </action> 1742 <action> 1743 <serviceId>urn:upnp-esweb-nl:serviceId:RFXCOMHarrison1</serviceId> 1744 <name>GetStatus</name> 1745 <run> 1746 lul_settings.ResultStatus = luup.variable_get("urn:upnp-esweb-nl:serviceId:RFXCOMHarrison1","CurtainStatus",lul_device) 1747 </run> 1748 </action> 1733 <action> 1734 <serviceId>urn:upnp-org:serviceId:WindowCovering1</serviceId> 1735 <name>Stop</name> 1736 <run> 1737 local har_id = luup.devices[lul_device].id 1738 SendHarrisonCmd( har_id, "STOP") 1739 </run> 1740 </action> 1741 <action> 1742 <serviceId>urn:upnp-org:serviceId:WindowCovering1</serviceId> 1743 <name>Up</name> 1744 <run> 1745 luup.variable_set("urn:upnp-esweb-nl:serviceId:RFXCOMHarrison1","CurtainStatus",0,lul_device) 1746 local har_id = luup.devices[lul_device].id 1747 SendHarrisonCmd( har_id, "OPEN") 1748 </run> 1749 </action> 1750 <action> 1751 <serviceId>urn:upnp-org:serviceId:WindowCovering1</serviceId> 1752 <name>Down</name> 1753 <run> 1754 luup.variable_set("urn:upnp-esweb-nl:serviceId:RFXCOMHarrison1","CurtainStatus",1,lul_device) 1755 local har_id = luup.devices[lul_device].id 1756 SendHarrisonCmd( har_id, "CLOSE") 1757 </run> 1758 </action> 1759 <action> 1760 <serviceId>urn:upnp-esweb-nl:serviceId:RFXCOMHarrison1</serviceId> 1761 <name>SetStatus</name> 1762 <run> 1763 luup.variable_set("urn:upnp-esweb-nl:serviceId:RFXCOMHarrison1","CurtainStatus",lul_settings.newStatusValue,lul_device) 1764 local har_id = luup.devices[lul_device].id 1765 if ( lul_settings.newStatusValue == "1" ) then 1766 SendHarrisonCmd( har_id, "OPEN") 1767 else 1768 SendHarrisonCmd( har_id, "CLOSE") 1769 end 1770 </run> 1771 </action> 1772 <action> 1773 <serviceId>urn:upnp-esweb-nl:serviceId:RFXCOMHarrison1</serviceId> 1774 <name>GetStatus</name> 1775 <run> 1776 lul_settings.ResultStatus = luup.variable_get("urn:upnp-esweb-nl:serviceId:RFXCOMHarrison1","CurtainStatus",lul_device) 1777 </run> 1778 </action> 1749 1779 </actionList> 1750 1780 </implementation> -
S_RFXCOM.xml
r3 r31 15 15 <name>Autocreate</name> 16 16 <sendEventsAttribute>no</sendEventsAttribute> 17 <dataType>string</dataType> 17 <dataType>boolean</dataType> 18 <defaultValue>0</defaultValue> 19 </stateVariable> 20 <stateVariable allowRepeats="no"> 21 <name>HomeeasyEUmode</name> 22 <sendEventsAttribute>no</sendEventsAttribute> 23 <dataType>boolean</dataType> 24 <defaultValue>1</defaultValue> 18 25 </stateVariable> 19 26 </serviceStateTable> 20 27 <actionList> 21 28 <action> 29 <name>SetAutocreateOn</name> 30 </action> 31 <action> 32 <name>SetAutocreateOff</name> 33 </action> 34 <action> 35 <name>SetHomeeasyEUmode</name> 36 </action> 37 <action> 38 <name>SetHomeeasyUKmode</name> 39 </action> 40 <action> 22 41 <name>SetNetworkPortRead</name> 23 42 <argumentList>
Note: See TracChangeset
for help on using the changeset viewer.