Permalink
Switch branches/tags
1.6.1-release DEVC-256-11 DEVC-484 DEVC-489-1 DEVTOOLS-162-2 DEVTOOLS-162-3 DHF-7 DVCSMP-399 DVCSMP-1440 DVCSMP-1803 DVCSMP-4499 Dianoga-weatherstation-1 Fake-1 ICP-6895 MSA-42-3 MSA-63-1 MSA-65-1 MSA-582-2 MSA-584-1 MSA-598-1 MSA-599-1 MSA-608-3 MSA-611-1 MSA-613-1 MSA-614-2 MSA-615-3 MSA-618-4 MSA-628-2 MSA-631-2 MSA-632-2 MSA-633-1 MSA-637-1 MSA-640-3 MSA-644-3 MSA-647-1 MSA-649-1 MSA-685-7 MSA-687-2 MSA-689-6 MSA-691-1 MSA-692-2 MSA-700-1 MSA-707-1 MSA-708-3 MSA-709-4 MSA-715-1 MSA-724-1 MSA-726-1 MSA-727-1 MSA-733-1 MSA-736-2 MSA-741-1 MSA-743-1 MSA-753-12 MSA-757-1 MSA-787-1 MSA-794-2 MSA-795-1 MSA-796 MSA-809-4 MSA-811-1 MSA-817-1 MSA-835-1 MSA-837-1 MSA-852-1 MSA-857-2 MSA-858-2 MSA-859-3 MSA-860-3 MSA-861-5 MSA-862-1 MSA-867-2 MSA-877-15 MSA-880-1 MSA-881-1 MSA-882-1 MSA-883-1 MSA-884-4 MSA-889-4 MSA-894-1 MSA-895-1 MSA-899-1 MSA-903-1 MSA-907-1 MSA-913-1 MSA-916-1 MSA-922-1 MSA-923-1 MSA-924-2 MSA-925-3 MSA-926-1 MSA-928-4 MSA-930-1 MSA-931-1 MSA-932-1 MSA-933-1 MSA-934-1 MSA-938-1 MSA-939-1 MSA-940-1 MSA-941-1 MSA-942-1 MSA-943-1 MSA-944-1 MSA-946-2 MSA-947-5 MSA-948-5 MSA-949-3 MSA-950-3 MSA-951-3 MSA-952-3 MSA-953-3 MSA-958-1 MSA-959-1 MSA-961-1 MSA-963-2 MSA-967-1 MSA-969-1 MSA-970-1 MSA-971-2 MSA-972-3 MSA-973-1 MSA-976-1 MSA-977-20 MSA-978-4 MSA-979-4 MSA-980-4 MSA-981-1 MSA-982-1 MSA-983-1 MSA-984-1 MSA-985-1 MSA-986-1 MSA-987-2 MSA-988-1 MSA-989-1 MSA-990-1 MSA-991-1 MSA-992-3 MSA-993-3 MSA-994-2 MSA-996-21 MSA-999-5 MSA-1006-22 MSA-1007-1 MSA-1091-347 MSA-1094-273 MSA-1095-359 MSA-1097-1 MSA-1098-1 MSA-1099-2 MSA-1104-1 MSA-1108-2 MSA-1109-1 MSA-1112-3 MSA-1113-5 MSA-1115-3 MSA-1116-6 MSA-1118-7 MSA-1119-10 MSA-1121-9 MSA-1123-17 MSA-1126-16 MSA-1128-19 MSA-1129-18 MSA-1131-21 MSA-1134-20 MSA-1136-24 MSA-1138-23 MSA-1139-25 MSA-1142-1 MSA-1143-1 MSA-1144-1 MSA-1146-1 MSA-1147-2 MSA-1152-2 MSA-1153-1 MSA-1154-1 MSA-1162-1 MSA-1163-1 MSA-1173-463 MSA-1174-1 MSA-1181-3 MSA-1182-1 MSA-1184-1 MSA-1185-1 MSA-1186-1 MSA-1187-1 MSA-1188-1 MSA-1189-1 MSA-1190-1 MSA-1191-1 MSA-1214-19 MSA-1227-1 MSA-1231-1 MSA-1235-1 MSA-1240-1 MSA-1241-1 MSA-1242-1 MSA-1244-2 MSA-1246-1 MSA-1248-1 MSA-1250-1 MSA-1252-3 MSA-1254-4 MSA-1255-1 MSA-1256-1 MSA-1258-1 MSA-1262-1 MSA-1267-1 MSA-1268-1 MSA-1277-1 MSA-1278-2 MSA-1280-1 MSA-1282-1 MSA-1285-3 MSA-1287-1 MSA-1294-1 MSA-1296-1 MSA-1298-1 MSA-1299-1 MSA-1300-1 MSA-1301-1 MSA-1302-1 MSA-1303-1 MSA-1304-2 MSA-1305-2 MSA-1306-2 MSA-1307-1 MSA-1308-1 MSA-1309-1 MSA-1310-1 MSA-1311-1 MSA-1312-1 MSA-1313-2 MSA-1315-2 MSA-1317-3 MSA-1318-1 MSA-1319-2 MSA-1321-1 MSA-1325-3 MSA-1327-2 MSA-1333-1 MSA-1338-1 MSA-1339-1 MSA-1349-1 MSA-1351-2 MSA-1354-1 MSA-1356-1 MSA-1357-1 MSA-1358-1 MSA-1361-1 MSA-1363-336 MSA-1364-340 MSA-1366-341 MSA-1369-1 MSA-1370-1 MSA-1371-2 MSA-1372-2 MSA-1375-1 MSA-1382-1 MSA-1383-1 MSA-1385-2 MSA-1386-1 MSA-1391-1 MSA-1393-1 MSA-1395-1 MSA-1398-1 MSA-1399-1 MSA-1400-1 MSA-1401-1 MSA-1408-1 MSA-1412-1 MSA-1413-1 MSA-1419-1 MSA-1434-1 MSA-1435-1 MSA-1436-1 MSA-1448-1 MSA-1449-1 MSA-1451-1 MSA-1457-1 MSA-1458-1 MSA-1461-1 MSA-1462-3 MSA-1463-1 MSA-1465-1 MSA-1467-1 MSA-1472-1 MSA-1474-1 MSA-1476-1 MSA-1478-1 MSA-1480-1 MSA-1483-1 MSA-1486-1 MSA-1487-2 MSA-1488-1 MSA-1492-1 MSA-1493-1 MSA-1494-2 MSA-1497-4 MSA-1498-1 MSA-1502-1 MSA-1503-1 MSA-1506-1 MSA-1510-1 MSA-1514-1 MSA-1515-1 MSA-1517-1 MSA-1518-2 MSA-1522-1 MSA-1528-1 MSA-1529-1 MSA-1530-1 MSA-1531-1 MSA-1534-1 MSA-1535-2 MSA-1536-1 MSA-1537-1 MSA-1539-7 MSA-1542-1 MSA-1543-1 MSA-1544-1 MSA-1545-1 MSA-1551-6 MSA-1552-1 MSA-1554-6 MSA-1559-1 MSA-1560-2 MSA-1566-1 MSA-1567-1 MSA-1570-1 MSA-1574-1 MSA-1577-2 MSA-1584-1 MSA-1588-1 MSA-1594-1 MSA-1596-2 MSA-1599-1 MSA-1603-1 MSA-1604-1 MSA-1605-2 MSA-1607-1 MSA-1610-1 MSA-1626-5 MSA-1631-2 MSA-1632-1 MSA-1633-1 MSA-1635-1 MSA-1638-1 MSA-1641-1 MSA-1643-1 MSA-1644-1 MSA-1646-1 MSA-1650-1 MSA-1651-1 MSA-1655-1 MSA-1660-1 MSA-1661-1 MSA-1662-1 MSA-1664-1 MSA-1670-1 MSA-1671-1 MSA-1674-1 MSA-1676-1 MSA-1677-1 MSA-1682-1 MSA-1683-1 MSA-1688-2 MSA-1689-1 MSA-1693-1 MSA-1694-1 MSA-1695-1 MSA-1697-1 MSA-1709-1 MSA-1710-1 MSA-1711-1 MSA-1713-1 MSA-1716-1 MSA-1717-1 MSA-1718-1 MSA-1733-1 MSA-1737-2 MSA-1739-1 MSA-1740-1 MSA-1741-1 MSA-1747-1 MSA-1748-1 MSA-1750-1 MSA-1751-1 MSA-1752-1 MSA-1756-1 MSA-1757-1 MSA-1759-1 MSA-1765-1 MSA-1767-1 MSA-1769-1 MSA-1770-1 MSA-1774-1 MSA-1779-1 MSA-1780-2 MSA-1782-1 MSA-1786-1 MSA-1787-1 MSA-1788-1 MSA-1791-1 MSA-1792-2 MSA-1793-3 MSA-1794-1 MSA-1795-1 MSA-1799-1 MSA-1801-1 MSA-1807-1 MSA-1809-1 MSA-1810-1 MSA-1814-1 MSA-1816-1 MSA-1817-1 MSA-1818-1 MSA-1822-1 MSA-1823-1 MSA-1826-1 MSA-1827-1 MSA-1830-1 MSA-1832-1 MSA-1833-1 MSA-1834-1 MSA-1836-1 MSA-1837-1 MSA-1839-1 MSA-1845-1 MSA-1846-2 MSA-1848-1 MSA-1849-1 MSA-1852-1 MSA-1854-3 MSA-1856-1 MSA-1859-1 MSA-1864-1 MSA-1866-1 MSA-1867-1 MSA-1875-1 MSA-1878-1 MSA-1882-1 MSA-1885-1 MSA-1886-1 MSA-1887-1 MSA-1890-1 MSA-1892-1 MSA-1893-1 MSA-1897-1 MSA-1898-1 MSA-1899-2 MSA-1900-9 MSA-1903-1 MSA-1914-1 MSA-1915-1 MSA-1918-2 MSA-1923-1 MSA-1924-2 MSA-1925-2 MSA-1932-1 MSA-1933-1 MSA-1934-1 MSA-1935-1 MSA-1936-1 MSA-1937-1 MSA-1938-1 MSA-1939-1 MSA-1940-1 MSA-1941-1 MSA-1942-1 MSA-1947-2 MSA-1951-1 MSA-1956-3 MSA-1959-1 MSA-1960-1 MSA-1961-1 MSA-1963-7 MSA-1964-1 MSA-1965-8 MSA-1967-1 MSA-1969-1 MSA-1970-1 MSA-1974-1 MSA-1975-1 MSA-1985-1 MSA-1986-1 MSA-1987-1 MSA-1988-1 MSA-1989-1 MSA-1991-1 MSA-1993-1 MSA-1994-1 MSA-1996-1 MSA-1998-1 MSA-1999-2 MSA-2000-1 MSA-2001-1 MSA-2002-1 MSA-2003-1 MSA-2004-1 MSA-2006-1 MSA-2007-1 MSA-2008-1 MSA-2019-1 MSA-2020-1 MSA-2021-1 MSA-2022-1 MSA-2023-1 MSA-2027-9 MSA-2029-1 MSA-2031-1 MSA-2032-1 MSA-2033-2 MSA-2034-2 MSA-2035-1 MSA-2036-1 MSA-2038-2 MSA-2039-1 MSA-2042-1 MSA-2048-1 MSA-2049-1 MSA-2056-1 MSA-2059-1 MSA-2061-1 MSA-2062-1 MSA-2063-1 MSA-2065-1 MSA-2066-1 MSA-2067-1 MSA-2068-1 MSA-2069-1 MSA-2073-2 MSA-2074-1 MSA-2078-1 MSA-2079-1 MSA-2080-1 MSA-2081-1 MSA-2088-1 MSA-2090-1 MSA-2091-1 MSA-2092-1 MSA-2096-1 MSA-2097-1 MSA-2098-1 MSA-2099-1 MSA-2101-1 MSA-2104-1 MSA-2105-1 MSA-2110-1 MSA-2111-1 MSA-2112-2 MSA-2113-3 MSA-2114-4 MSA-2115-5 MSA-2116-6 MSA-2117-7 MSA-2118-8 MSA-2119-9 MSA-2121-1 MSA-2122-1 MSA-2123-1 MSA-2124-1 MSA-2125-1 MSA-2126-1 MSA-2127-1 MSA-2129-1 MSA-2130-1 MSA-2134-1 MSA-2138-1 MSA-2140-2 MSA-2141-1 MSA-2145-1 MSA-2146-2 MSA-2147-2 MSA-2149-1 MSA-2151-1 MSA-2153-1 MSA-2154-1 MSA-2155-2 MSA-2156-1 MSA-2157-1 MSA-2158-1 MSA-2159-1 MSA-2160-1 MSA-2161-11 MSA-2164-1 MSA-2165-1 MSA-2166-1 MSA-2167-1 MSA-2169-2 MSA-2173-1 MSA-2174-1 MSA-2177-1 MSA-2179-1 MSA-2180-1 MSA-2181-1 MSA-2182-1 MSA-2183-1 MSA-2184-1 MSA-2188-1 MSA-2189-1 MSA-2193-1 MSA-2194-1 MSA-2196-1 MSA-2203-1 MSA-2207-1 MSA-2208-2 MSA-2209-1 MSA-2210-1 MSA-2219-1 MSA-2221-1 MSA-2225-1 MSA-2229-1 MSA-2230-1 MSA-2231-1 MSA-2232-1 MSA-2233-1 MSA-2234-1 MSA-2235-1 MSA-2237-1 MSA-2239-1 MSA-2240-2 MSA-2241-2 MSA-2242-1 MSA-2243-2 MSA-2245-1 MSA-2246-1 MSA-2247-1 MSA-2248-2 MSA-2249-1 MSA-2250-1 MSA-2254-1 MSA-2260-1 MSA-2262-1 MSA-2263-1 MSA-2264-2 MSA-2265-3 MSA-2267-1 MSA-2268-1 MSA-2269-1 MSA-2270-1 MSA-2272-1 MSA-2274-1 MSA-2276-1 MSA-2277-1 MSA-2278-1 MSA-2279-2 MSA-2280-2 MSA-2283-1 MSA-2288-1 MSA-2289-1 MSA-2290-1 MSA-2291-1 MSA-2297-1 MSA-2298-1 MSA-2299-1 MSA-2300-1 MSA-2301-1 MSA-2302-1 MSA-2303-1 MSA-2306-1 MSA-2307-1 MSA-2310-12 MSA-2314-1 MSA-2316-1 MSA-2318-1 MSA-2319-1 MSA-2322-1 MSA-2323-1 MSA-2324-1 MSA-2325-1 MSA-2326-1 MSA-2327-1 MSA-2335-1 MSA-2336-1 MSA-2337-1 MSA-2338-1 MSA-2339-1 MSA-2340-1 MSA-2341-1 MSA-2342-1 MSA-2347-1309 MSA-2348-1 MSA-2349-2 MSA-2351-1 MSA-2352-2 MSA-2353-1 MSA-2358-1 MSA-2363-1 MSA-2366-1 MSA-2368-1 MSA-2370-1 MSA-2371-1 MSA-2372-1 MSA-2375-1 MSA-2376-2 MSA-2377-1 MSA-2378-3 MSA-2379-4 MSA-2380-5 MSA-2381-6 MSA-2382-7 MSA-2383-8 MSA-2384-9 MSA-2385-10 MSA-2386-11 MSA-2387-12 MSA-2388-13 MSA-2389-14 MSA-2390-15 MSA-2391-16 MSA-2392-1 MSA-2393-3 MSA-2394-10 MSA-2396-1 MSA-2398-1 MSA-2405-1 MSA-2409-1 MSA-2411-2 MSA-2414-1 MSA-2415-1 MSA-2416-1 MSA-2417-1 MSA-2418-1 MSA-2419-1 MSA-2421-1 MSA-2422-1 MSA-2423-1 MSA-2425-1 MSA-2426-1 MSA-2427-1 MSA-2428-1 MSA-2429-1 MSA-2432-1 MSA-2433-1 MSA-2434-1 MSA-2437-1 MSA-2438-2 MSA-2439-1 MSA-2441-4 MSA-2442-3 MSA-2443-1 MSA-2444-1 MSA-2445-1 MSA-2446-1 MSA-2447-1 MSA-2449-1 MSA-2453-1 MSA-2455-1 MSA-2456-1 MSA-2462-1 MSA-2463-1 MSA-2466-1 MSA-2471-2 MSA-2472-1 MSA-2473-1 MSA-2474-1 MSA-2475-1 MSA-2476-1 MSA-2480-1 MSA-2481-1 MSA-2482-1 MSA-2483-1 MSA-2484-1 MSA-2486-1 MSA-2487-1 MSA-2490-2 MSA-2491-1 MSA-2495-1 MSA-2498-1 MSA-2499-1 MSA-2500-1 MSA-2501-1 MSA-2502-1 MSA-2508-2 MSA-2510-1 MSA-2511-2 MSA-2512-1 MSA-2513-1 MSA-2514-1 MSA-2515-1 MSA-2516-1 MSA-2517-2 MSA-2519-1 MSA-2520-1 MSA-2524-1 MSA-2525-1 MSA-2526-1 MSA-2528-1 MSA-2529-1 MSA-2533-1 MSA-2535-1 MSA-2537-1 MSA-2538-1 MSA-2539-1 MSA-2541-1 MSA-2542-1 MSA-2544-2 MSA-2546-1 MSA-2547-1 MSA-2548-1 MSA-2549-1 MSA-2550-1 MSA-2551-1 MSA-2552-1 MSA-2553-1 MSA-2556-1 MSA-2559-1 MSA-2560-1 MSA-2561-1 MSA-2564-1 MSA-2566-13 MSA-2567-1 MSA-2568-1 MSA-2571-1 MSA-2572-1 MSA-2573-1 MSA-2575-1 MSA-2576-2 MSA-2578-1 MSA-2579-1 MSA-2587-1 MSA-2588-1 MSA-2590-2 MSA-2592-1 MSA-2593-1 MSA-2594-1 MSA-2596-1 MSA-2597-2 MSA-2598-1 MSA-2600-1 MSA-2604-1 MSA-2605-1 MSA-2606-1 MSA-2609-1 MSA-2610-1 MSA-2612-1 MSA-2615-1 MSA-2619-1 MSA-2620-1 MSA-2621-1 MSA-2623-1 MSA-2624-2 MSA-2628-1 MSA-2634-1 MSA-2635-1 MSA-2636-1 MSA-2637-1 MSA-2638-1 MSA-2651-1 MSA-2653-2 MSA-2656-2 MSA-2657-1 MSA-2659-1 MSA-2660-1 MSA-2663-1 MSA-2664-1 MSA-2666-1 MSA-2669-1 MSA-2671-1 MSA-2673-1 MSA-2675-2 MSA-2676-3 MSA-2677-1 MSA-2678-1 MSA-2680-1 MSA-2682-1 MSA-2683-1 MSA-2684-4 MSA-2686-1 MSA-2687-1 MSA-2688-1 MSA-2689-1 MSA-2690-1 MSA-2692-1 MSA-2693-1 MSA-2694-1 MSA-2698-2 MSA-2700-1 MSA-2701-1 MSA-2704-1 MSA-2705-1 MSA-2707-1 MSA-2711-1 MSA-2712-1 MSA-2716-1 MSA-2720-1 MSA-2722-1 MSA-2723-1 MSA-2724-2 MSA-2725-1 MSA-2728-1 MSA-2731-1 MSA-2732-1 MSA-2734-1 MSA-2735-1 MSA-2737-1 MSA-2740-2 MSA-2743-1 MSA-2744-1 MSA-2745-1 MSA-2746-1 MSA-2748-4 MSA-2749-17 MSA-2750-1 MSA-2751-1 MSA-2752-1 MSA-2753-1 MSA-2754-2 MSA-2756-1 MSA-2762-1 MSA-2764-1 MSA-2767-1 MSA-2769-2 MSA-2770-1 MSA-2773-2 MSA-2778-1 MSA-2780-1 MSA-2782-1 MSA-2785-1 MSA-2786-1 MSA-2788-2 MSA-2789-2 MSA-2793-1 MSA-2794-1 MSA-2795-1 MSA-2802-1 MSA-2803-1 MSA-2804-1 MSA-2807-1 MSA-2809-1 MSA-2811-3 MSA-2812-4 MSA-2813-1 MSA-2815-1 MSA-2820-1 MSA-2821-1 MSA-2823-1 MSA-2824-1 MSA-2825-1 MSA-2827-1 MSA-2828-1 MSA-2831-1 MSA-2832-1 MSA-2833-1 MSA-2836-1 MSA-2837-1 MSA-2842-1 MSA-2846-1 MSA-2849-1 MSA-2850-1 MSA-2851-1 MSA-2853-1 MSA-2854-1 MSA-2855-1 MSA-2860-1 MSA-2861-1 MSA-2863-1 MSA-2864-1 MSA-2866-1 MSA-2867-1 MSA-2871-1 MSA-2872-1 MSA-2873-1 MSA-2874-1 MSA-2877-1 MSA-2878-2 MSA-2879-2 MSA-2880-2 MSA-2886-1 MSA-2887-1 MSA-2889-2 MSA-2894-1 MSA-2895-1 MSA-2898-1 MSA-2899-3 MSA-2902-4 MSA-2905-1 MSA-2906-1 MSA-2907-2 MSA-2908-2 MSA-2909-1 MSA-2910-1 MSA-2911-1 MSA-2912-1 MSA-2913-2 MSA-2914-1 MSA-2922-1 MSA-2926-1 MSA-2927-1 MSA-2930-1 MSA-2931-1 MSA-2932-1 MSA-2939-1 MSA-2940-1 MSA-2941-1 MSA-2944-1 MSA-2946-1 MSA-2947-1 MSA-2948-1 MSA-2956-1 MSA-2960-1 MSA-2965-1 MSA-2966-1 MSA-2969-1 MSA-2973-1 MSA-2975-1 MSA-2980-1 MSA-2981-1 MSA-2982-1 MSA-2983-1 MSA-2985-1 MSA-2986-3 MSA-2987-1 MSA-2988-1 MSA-2989-1 MSA-2990-2 MSA-2993-1 MSA-2994-1 MSA-2995-1 MSA-2996-2 MSA-2997-3 MSA-2999-1 MSA-3001-1 MSA-3002-2 MSA-3006-1 MSA-3007-1 MSA-3008-1 MSA-3009-1 MSA-3010-1 MSA-3011-1 MSA-3012-1 MSA-3013-1 MSA-3014-1 MSA-3015-2 MSA-3016-2 MSA-3017-1 MSA-3018-1 MSA-3019-1 MSA-3023-1 MSA-3024-1 WEMO_fi WWST-1735 aeon-multi-6 circle2 curb-connect lange-ecobee master_old master mckeed/DVCSMP-1658 netatmo-api-update plantlink-merge prod production revert-490-boggess/convert_hexToSignedInt_to_method revert-904-revert-901-DVCSMP-1739-revert-untested-code revert-1281-leviton revert-1411-DVCSMP-2179-added-device-watch-to-ecobee revert-1937-smartalert_siren revert-2585-dvcsmp-3412 revert-3008-ICP-4586 revert-3103-CHAD-2137 revert-3131-ICP-4842_2 revert-3151-revertZwaveAeotec revert-3314-revert_fan_controller revert-zwavesiren simulated-media-player staging test-10 user24_1 user186_1 user186_2 user186_3 user186_4 user186_5 user186_6 user186_7 user186_8 user186_9 user1391479_1 user1391479_2 user1467827_1 user21745482_1 user21983633_1
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
106 lines (93 sloc) 4.08 KB
/**
* Simulated Refrigerator Temperature Control
*
* Copyright 2017 SmartThings
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License
* for the specific language governing permissions and limitations under the License.
*
*/
metadata {
definition (name: "Simulated Refrigerator Temperature Control", namespace: "smartthings/testing", author: "SmartThings") {
capability "Temperature Measurement"
capability "Thermostat Cooling Setpoint"
capability "Health Check"
command "tempUp"
command "tempDown"
command "setpointUp"
command "setpointDown"
}
tiles {
valueTile("refrigerator", "device.temperature", width: 2, height: 2, canChangeBackground: true) {
state("temperature", label:'${currentValue}°', unit:"F",
backgroundColors:[
[value: 0, color: "#153591"],
[value: 40, color: "#1e9cbb"],
[value: 45, color: "#f1d801"]
]
)
}
valueTile("freezer", "device.temperature", width: 2, height: 2, canChangeBackground: true) {
state("temperature", label:'${currentValue}°', unit:"F",
backgroundColors:[
[value: 0, color: "#153591"],
[value: 5, color: "#1e9cbb"],
[value: 15, color: "#f1d801"]
]
)
}
valueTile("freezerSetpoint", "device.coolingSetpoint", inactiveLabel: false, decoration: "flat") {
state "setpoint", label:'Freezer Set: ${currentValue}°', unit:"F"
}
valueTile("refrigeratorSetpoint", "device.coolingSetpoint", inactiveLabel: false, decoration: "flat") {
state "heat", label:'Fridge Set: ${currentValue}°', unit:"F"
}
standardTile("tempUp", "device.temperature", inactiveLabel: false, decoration: "flat") {
state "default", action:"tempUp", icon:"st.thermostat.thermostat-up"
}
standardTile("tempDown", "device.temperature", inactiveLabel: false, decoration: "flat") {
state "default", action:"tempDown", icon:"st.thermostat.thermostat-down"
}
standardTile("setpointUp", "device.coolingSetpoint", inactiveLabel: false, decoration: "flat") {
state "default", action:"setpointUp", icon:"st.thermostat.thermostat-up"
}
standardTile("setpointDown", "device.coolingSetpoint", inactiveLabel: false, decoration: "flat") {
state "default", action:"setpointDown", icon:"st.thermostat.thermostat-down"
}
}
}
def installed() {
initialize()
}
def updated() {
initialize()
}
def initialize() {
sendEvent(name: "temperature", value: device.componentName == "freezer" ? 2 : 40)
sendEvent(name: "coolingSetpoint", value: device.componentName == "freezer" ? 2 : 40)
sendEvent(name: "DeviceWatch-DeviceStatus", value: "online")
sendEvent(name: "healthStatus", value: "online")
sendEvent(name: "DeviceWatch-Enroll", value: [protocol: "cloud", scheme:"untracked"].encodeAsJson(), displayed: false)
}
void tempUp() {
def value = device.currentValue("temperature") as Integer
sendEvent(name: "temperature", value: value + 1)
}
void tempDown() {
def value = device.currentValue("temperature") as Integer
sendEvent(name: "temperature", value: value - 1)
}
void setpointUp() {
def value = device.currentValue("coolingSetpoint") as Integer
sendEvent(name: "coolingSetpoint", value: value + 1)
}
void setpointDown() {
def value = device.currentValue("coolingSetpoint") as Integer
sendEvent(name: "coolingSetpoint", value: value - 1)
}