Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ISYv2 Driver - FanLinc
#1
Dean,

Interesting thing I've noticed with the FanLinc device.  The relay/motor device is showing as a 'Button' in CQC.

Insteon FanLinc devices are a two component device to control the Light and Motor portion of ceiling fans.  The Motor control portion actually works just like a "Dimmer" as it sets the motor speed to a percentage level.  This is the same as most fan controllers from other vendors work as well. 

I don't know how CQC reflects other fan controllers such as those from Lutron?  I'll find out here in a few days as I will be installing a Lutron fan controller to replace one of these FanLinc's so I will have it for comparison. 

I also don't know how a Fan controller should be represented within CQC... It's not a "Light" but it uses the same properties as a "Dimmer" but has preset levels for speeds.  It's also not a "Relay" because it has percentage levels for different speeds.  I know the percentage level for the Insteon FanLinc's and within the ISY they are represented as speeds of off/low/medium/high.  Can something similar be done within CQC for fan controllers and their speed?

Code:
<node flag="128" nodeDefId="DimmerLampOnly">
        <address>51 D3 4A 1</address>
        <name>MBR-FanLinc-Light</name>
        <parent type="3">2801</parent>
        <type>1.46.69.0</type>
        <enabled>true</enabled>
        <deviceClass>0</deviceClass>
        <wattage>0</wattage>
        <dcPeriod>0</dcPeriod>
        <startDelay>0</startDelay>
        <endDelay>0</endDelay>
        <pnode>51 D3 4A 1</pnode>
        <ELK_ID>A16</ELK_ID>
        <property id="ST" value="0" formatted="Off" uom="100" />
    </node>
    <node flag="0" nodeDefId="FanLincMotor">
        <address>51 D3 4A 2</address>
        <name>MBR-FanLinc-Motor</name>
        <parent type="3">2801</parent>
        <type>1.46.69.0</type>
        <enabled>true</enabled>
        <deviceClass>0</deviceClass>
        <wattage>0</wattage>
        <dcPeriod>0</dcPeriod>
        <startDelay>0</startDelay>
        <endDelay>0</endDelay>
        <pnode>51 D3 4A 1</pnode>
        <ELK_ID>B01</ELK_ID>
        <property id="ST" value="0" formatted="Off" uom="100" />
    </node>
Reply
#2
So one is a boolean and one a 'dimmer' style motor speed type thing? What does the boolean one do, just turn the light off and on? The driver is showing it like it does because it doesn't know it's a fan controller. It would have to know specifically that it is, otherwise all the 1.x.x.x ones are treated as lights or buttons I think depending on flags.
Dean Roddey
Explorans limites defectum
Reply
#3
This is the 'Light' node which is a dimmer.  It is processed and added to CQC as a LIGHT and has dimmer functions and works.

Code:
<node flag="128" nodeDefId="DimmerLampOnly">
        <address>51 D3 4A 1</address>
        <name>MBR-FanLinc-Light</name>
        <parent type="3">2801</parent>
        <type>1.46.69.0</type>
        <enabled>true</enabled>
        <deviceClass>0</deviceClass>
        <wattage>0</wattage>
        <dcPeriod>0</dcPeriod>
        <startDelay>0</startDelay>
        <endDelay>0</endDelay>
        <pnode>51 D3 4A 1</pnode>
        <ELK_ID>A16</ELK_ID>
        <property id="ST" value="0" formatted="Off" uom="100" />
    </node>

This node is created as a 'Button' but it's the Motor portion which should be handled like a dimmer with 0-100 percentage levels and there are preset levels for off/low/medium/high as well.  I think I posted or sent those to you before but I can grab them again if needed.  

Code:
<node flag="0" nodeDefId="FanLincMotor">
        <address>51 D3 4A 2</address>
        <name>MBR-FanLinc-Motor</name>
        <parent type="3">2801</parent>
        <type>1.46.69.0</type>
        <enabled>true</enabled>
        <deviceClass>0</deviceClass>
        <wattage>0</wattage>
        <dcPeriod>0</dcPeriod>
        <startDelay>0</startDelay>
        <endDelay>0</endDelay>
        <pnode>51 D3 4A 1</pnode>
        <ELK_ID>B01</ELK_ID>
        <property id="ST" value="0" formatted="Off" uom="100" />
    </node>

If I remember correctly it's the <type> field and a sub-cat of that which defines the FanLinc device.  I'll have to look it up on how to determine the nodes light/motor for parsing.
Reply
#4
It's the flag value. If the high bit is on 0x80 (128) that's the parent node and if not it a child of the one before it. Right now the code that handles type 1's assumes that the parent is a light the the child a button (since all the 1's so far have been.) It'll have to specially check for exceptions to that I guess. Their hierarchy could be improved to make these things more explicit.
Dean Roddey
Explorans limites defectum
Reply
#5
(02-04-2020, 02:03 PM)Dean Roddey Wrote: It's the flag value. If the high bit is on 0x80 (128) that's the parent node and if not it a child of the one before it. Right now the code that handles type 1's assumes that the parent is a light the the child a button (since all the 1's so far have been.) It'll have to specially check for exceptions to that I guess. Their hierarchy could be improved to make these things more explicit.

I think there's a lot of things that could be improved.  Please post on the UDI forum with your recommendations as they will likely get added.  There's a lot of work going on right now along with NodeServer refinement to make them work with integrations so your input will help with that as well.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Marantz receiver driver (IP) dlmorgan999 6 273 05-15-2020, 03:32 PM
Last Post: dlmorgan999
  Pentair driver tom 3 276 04-26-2020, 11:03 AM
Last Post: tom
  Variables Driver Client gReatAutomation 4 254 04-25-2020, 12:46 PM
Last Post: gReatAutomation
  Reconfig of Driver Causes Built In Triggers to Fire gReatAutomation 2 206 03-25-2020, 04:09 PM
Last Post: gReatAutomation
  Lutron RadioRA2 Driver and Lutron Visor Control gReatAutomation 29 4,240 03-19-2020, 01:03 PM
Last Post: gReatAutomation
  Timers Driver / Field Time Image / Seconds gReatAutomation 1 218 03-16-2020, 05:48 PM
Last Post: Dean Roddey
  Problem with Accesssing Variables Driver Client Interface kblagron 5 447 03-05-2020, 02:24 PM
Last Post: kblagron
  SMS Driver / Sending MMS gReatAutomation 2 387 02-02-2020, 05:57 PM
Last Post: simplextech
  ISYv2 Driver - IOLinc Support simplextech 7 934 02-01-2020, 07:18 PM
Last Post: simplextech
  New V2 Nest driver Dean Roddey 92 17,853 01-06-2020, 05:09 PM
Last Post: keepersg

Forum Jump:


Users browsing this thread: 1 Guest(s)