Changeset 31


Ignore:
Timestamp:
2012-06-09 15:19:48 (13 years ago)
Author:
evanes
Message:

Added settings for autocreate and homeeasyEU

Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • D_RFXCOM.json

    r14 r31  
    5151                        "Top": 20, 
    5252                        "Left": 20, 
    53                         "Width": 75, 
     53                        "Width": 190, 
    5454                        "Height": 20 
    5555                    } 
     
    6161                        "Variable": "portRead", 
    6262                        "Top": 20, 
    63                         "Left": 115, 
     63                        "Left": 215, 
    6464                        "Width": 120, 
    6565                        "Height": 20 
     
    7575                        "Top": 50, 
    7676                        "Left": 20, 
    77                         "Width": 75, 
     77                        "Width": 190, 
    7878                        "Height": 20 
    7979                    } 
     
    8585                        "Variable": "portWrite", 
    8686                        "Top": 50, 
    87                         "Left": 115, 
     87                        "Left": 215, 
    8888                        "Width": 120, 
    8989                        "Height": 20 
     
    9999                             "Top": 80, 
    100100                             "Left": 20, 
    101                              "Width": 90, 
     101                             "Width": 190, 
    102102                             "Height": 20 
    103103                         } 
     
    108108                        "Display": { 
    109109                            "Top": 80, 
    110                             "Left": 115, 
     110                            "Left": 215, 
    111111                            "Width": 100, 
    112112                            "Height": 20 
     
    121121                        "Display": { 
    122122                            "Top": 80, 
    123                             "Left": 220, 
     123                            "Left": 320, 
    124124                            "Width": 50, 
    125125                            "Height": 20 
     
    136136                        } 
    137137                    }, 
     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                }, 
    138250                    { 
    139251                      "ControlType": "label", 
     
    143255                      }, 
    144256                      "Display": { 
    145                           "Top": 110, 
     257                          "Top": 240, 
    146258                          "Left": 20, 
    147                           "Width": 75, 
     259                          "Width": 175, 
    148260                          "Height": 20 
    149261                      } 
     
    159271                          "Service": "urn:upnp-esweb-nl:serviceId:rfxcom1", 
    160272                          "Variable": "Message", 
    161                           "Top": 110, 
    162                           "Left": 115, 
     273                          "Top": 270, 
     274                          "Left": 20, 
    163275                          "Width": 500, 
    164276                          "Height": 20 
  • I_RFXCOM.xml

    r30 r31  
    345345        lsRecvStat = DoSend( client, lsSend) 
    346346 
    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 
    348355      elseif lsDeviceType == "X10" then 
    349356--        to send a command we need to specify:  F0 CMD F0 CMD    where CMD has special meaning. 
     
    16731680      </run> 
    16741681    </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> 
    16761710    <action>  
    16771711      <serviceId>urn:micasaverde-com:serviceId:SecuritySensor1</serviceId>  
     
    16821716      </run>  
    16831717    </action>  
    1684  
    16851718    <action>  
    16861719      <serviceId>urn:micasaverde-com:serviceId:HaDevice1</serviceId>  
     
    16901723      </run>  
    16911724    </action>  
    1692        
    1693  
    16941725    <action> 
    16951726      <serviceId>urn:upnp-esweb-nl:serviceId:rfxcom1</serviceId> 
     
    17001731      </run> 
    17011732    </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> 
    17491779  </actionList> 
    17501780</implementation> 
  • S_RFXCOM.xml

    r3 r31  
    1515      <name>Autocreate</name> 
    1616      <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> 
    1825    </stateVariable>     
    1926  </serviceStateTable> 
    2027  <actionList> 
    2128    <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> 
    2241      <name>SetNetworkPortRead</name> 
    2342      <argumentList> 
Note: See TracChangeset for help on using the changeset viewer.