Added hidden_string and sensor_string properties to the isy994 configuration to allow nodes to be hidden and to be handled as sensors. Implimented the sensor_string. Any node name that contains the sensor_string in its name will be treated as a sensor instead of a switch or light. The hidden_string will be implimented later.

This commit is contained in:
Ryan Kraus committed 2015-04-13 12:56:37 -04:00
1 parent 0e9a8a7cc2
commit 83aea10f06
4 files changed
+35 -22

No files matched your search

+2 -2
View File
@@ -3,7 +3,7 @@
import logging
# homeassistant imports
from homeassistant.components.isy994 import ISY, ISYDeviceABC
from homeassistant.components.isy994 import ISY, ISYDeviceABC, SENSOR_STRING
from homeassistant.const import STATE_ON, STATE_OFF # STATE_OPEN, STATE_CLOSED
# The frontend doesn't seem to fully support the open and closed states yet.
# Once it does, the HA.doors programs should report open and closed instead of
@@ -21,7 +21,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
# import not dimmable nodes and groups
for node in ISY.nodes:
if not node.dimmable:
if not node.dimmable and SENSOR_STRING not in node.name:
devs.append(ISYSwitchDevice(node))
# import ISY doors programs