- Timestamp:
- 2014-01-23 08:16:46 (11 years ago)
- Branches:
- master
- Children:
- 2fb2f8a, c8f38cb
- Parents:
- 490ed33 (diff), b5d6099 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - git-author:
- Garrett Power <garrett.power@…> (2014-01-23 08:16:46)
- git-committer:
- Garrett Power <garrett.power@…> (2014-01-23 08:16:46)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified Main/L_ISYController1.lua ¶
r490ed33 ref41170 1280 1280 1281 1281 -- On 1282 if (status ~= nil and tonumber(status) > 0) then1282 if (status ~= nil and status ~= " " and tonumber(status) > 0) then 1283 1283 loadLevel = minMaxConversion(100, status) 1284 1284 newStatus = 1 … … 1313 1313 1314 1314 -- On 1315 if (status ~= nil and tonumber(status) > 0) then1315 if (status ~= nil and status ~= " " and tonumber(status) > 0) then 1316 1316 loadLevel = minMaxConversion(100, status) 1317 1317 newStatus = 1 … … 1335 1335 1336 1336 -- On 1337 if (fanStatus ~= nil and tonumber(fanStatus) > 0) then1337 if (fanStatus ~= nil and fanStatus ~= " " and tonumber(fanStatus) > 0) then 1338 1338 fanNewStatus = 1 1339 1339 … … 1359 1359 1360 1360 -- On 1361 if (status ~= nil and tonumber(status) > 0) then1361 if (status ~= nil and status ~= " " and tonumber(status) > 0) then 1362 1362 loadLevel = minMaxConversion(100, status) 1363 1363 newStatus = 1 … … 1388 1388 1389 1389 -- On 1390 if (status ~= nil and tonumber(status) > 0) then1390 if (status ~= nil and status ~= " " and tonumber(status) > 0) then 1391 1391 newStatus = 1 1392 1392 … … 1417 1417 1418 1418 -- On 1419 if (status ~= nil and tonumber(status) > 0) then1419 if (status ~= nil and status ~= " " and tonumber(status) > 0) then 1420 1420 newStatus = 1 1421 1421 … … 1443 1443 1444 1444 -- On 1445 if (status ~= nil and tonumber(status) > 0) then1445 if (status ~= nil and status ~= " " and tonumber(status) > 0) then 1446 1446 newStatus = 1 1447 1447 … … 1464 1464 1465 1465 -- On 1466 if (relayStatus ~= nil and tonumber(relayStatus) > 0) then1466 if (relayStatus ~= nil and relayStatus ~= " " and tonumber(relayStatus) > 0) then 1467 1467 relayNewStatus = 1 1468 1468 … … 1489 1489 1490 1490 -- tripped 1491 if (status ~= nil and tonumber(status) == 1) then1491 if (status ~= nil and status ~= " " and tonumber(status) == 1) then 1492 1492 newStatus = 1 1493 1493 … … 1518 1518 1519 1519 -- On 1520 if (status ~= nil and status ~= " " and tonumber(status) > 0) then1520 if (status ~= nil and status ~= " " and status ~= " " and tonumber(status) > 0) then 1521 1521 newStatus = 1 1522 1522 … … 1538 1538 1539 1539 debugLog("Creating Z-Wave dimmer for: node " .. node) 1540 1541 -- On 1542 if (status ~= nil and status ~= " " and status ~= " " and tonumber(status) > 0) then 1543 newStatus = 1 1544 1545 -- Off 1546 else 1547 newStatus = 0 1548 end 1549 1550 luup.chdev.append(device, children, 1551 string.format("%s", parent), string.format("%s", name), 1552 "urn:schemas-upnp-org:device:DimmableLight:1", "D_DimmableLight1.xml", 1553 "", "urn:upnp-org:serviceId:SwitchPower1,Status=" .. newStatus .. 1554 "\nurn:garrettwp-com:serviceId:ISYController1,Family=4", false) 1555 --.. "\n" .. "urn:upnp-org:serviceId:Dimming1,LoadLevelStatus=" .. loadLevel, false) 1556 1557 -- Lock 1558 elseif (zwaveDeviceCategory4.lock[subCat]) then 1559 local newStatus 1560 1561 debugLog("Creating Z-Wave lock for: node " .. node) 1540 1562 1541 1563 -- On … … 1548 1570 end 1549 1571 1550 luup.chdev.append(device, children,1551 string.format("%s", parent), string.format("%s", name),1552 "urn:schemas-upnp-org:device:DimmableLight:1", "D_DimmableLight1.xml",1553 "", "urn:upnp-org:serviceId:SwitchPower1,Status=" .. newStatus ..1554 "\nurn:garrettwp-com:serviceId:ISYController1,Family=4", false)1555 --.. "\n" .. "urn:upnp-org:serviceId:Dimming1,LoadLevelStatus=" .. loadLevel, false)1556 1557 -- Lock1558 elseif (zwaveDeviceCategory4.lock[subCat]) then1559 local newStatus1560 1561 debugLog("Creating Z-Wave lock for: node " .. node)1562 1563 -- On1564 if (status ~= nil and status ~= " " and tonumber(status) > 0) then1565 newStatus = 11566 1567 -- Off1568 else1569 newStatus = 01570 end1571 1572 1572 luup.chdev.append(PARENT, children, 1573 1573 string.format("%s", parent), string.format("%s", name),
Note: See TracChangeset
for help on using the changeset viewer.