Forums : Issue with Custom Sensor?
This page last changed on Oct 10, 2012 by hjs.
I'm working through a proof-of-concept integration with my system. I'm using Telnet commands and regexes to parse out the states of each device (Incidentally, 00 is "off" and 64 is "on"). I'm happily getting to the point where the 64 or 00 is parsed out, but then I hit a snag. I've set up a "custom" sensor, with mappings of "off" -> 00 and "on" -> 64 but it seems that when this is read in, the mapping ends up looking like state-1 -> 00 and state-2 -> 64. In stepping through the code, I see that the 00 (or 64) is found, but when it's looked up in the state mapping, it loses the resolution to "on" and "off" and remains "state-x".
Am I misunderstanding the intent of the custom sensor? I'll have more time to poke at this later this evening, but wanted to know if there was something obvious that I wasn't doing.
Thanks in advance
|Document generated by Confluence on Jun 05, 2016 09:30|