ruebox / openhab2-addons

Add-ons for openHAB 2.x
Eclipse Public License 1.0
16 stars 6 forks source link

Sensor Switch 2/1 DeviceID 1015 #37

Closed xlrx closed 6 years ago

xlrx commented 6 years ago

I have a 2/1 sensor switch with one output (see dump below). It is currently not detected by the binding.

Channel ch0006 seems to be the physical actor (I attached a shutter to it), while channel ch0003 is linked to a scene in my example.

Workaround: a simple add of "case "1015":" in line 105@FreeAtHomeBindingDiscoveryService.java was working for me.

Thanks again for the awesome binding!

Excerpt from settings:


<device domainAddress="F219" individualAddress="01E5" functionId="FEFF" profile="0E00" nameId="FFDA" maxAPDULength="37" compilerVersion="006B9313" buildNumber="00000006" shortSerialNumber="EYN" iconId="FFFE" softwareId="0808" protocolVersion="0001" softwareVersion="0.1.8" minConfigVersion="0000" deviceId="1015" deviceFlavor="00" sysAp="false" serialNumber="ABB700C8CBXX" commissioningState="ready" copyId="4">
    <attribute name="busVoltage">29.16</attribute>
    <attribute name="deviceErrors">0</attribute>
    <attribute name="deviceReboots">13</attribute>
    <attribute name="displayName">EG-WZ-SüdR-Wippe</attribute>
    <attribute name="floor">01</attribute>
    <attribute name="offsetX">0.722429587234386</attribute>
    <attribute name="offsetY">0.105656851104767</attribute>
    <attribute name="operationTime">6128</attribute>
    <attribute name="room">05</attribute>
    <channels>
     <channel mask="00000001" nameId="0043" combined="true" i="ch0000" cid="ABB70084">
      <attribute name="functionId">3</attribute>
      <functions>
       <function/>
       <function/>
       <function/>
       <function/>
       <function/>
       <function/>
       <function/>
      </functions>
      <inputs>
       <dataPoint full="true" i="idp0001">
        <value>0</value>
        <address timeSlot="0">4f11</address>
       </dataPoint>
       <dataPoint full="false" i="idp0002">
        <value>0</value>
        <address timeSlot="0">4ada</address>
       </dataPoint>
       <dataPoint i="idp0005">
        <value>0</value>
       </dataPoint>
      </inputs>
      <outputs>
       <dataPoint i="odp0002">
        <value>1</value>
        <address timeSlot="0">db7</address>
       </dataPoint>
       <dataPoint i="odp0003">
        <value>0</value>
        <address timeSlot="0">57a2</address>
       </dataPoint>
      </outputs>
      <parameters>
       <parameter i="pm0002">
        <value>50</value>
       </parameter>
       <parameter i="pm0003">
        <value>50</value>
       </parameter>
      </parameters>
      <scenes>
       <scene active="false" sceneNumber="0" i="sc0000"/>
       <scene active="false" sceneNumber="0" i="sc0001"/>
      </scenes>
     </channel>
     <channel mask="00000002" nameId="0045" combined="true" i="ch0001" cid="ABB70044">
      <functions>
       <function/>
       <function/>
       <function/>
       <function/>
       <function/>
       <function/>
       <function/>
      </functions>
     </channel>
     <channel mask="00000002" nameId="0046" combined="true" i="ch0002" cid="ABB70064">
      <functions>
       <function/>
       <function/>
       <function/>
       <function/>
       <function/>
       <function/>
       <function/>
      </functions>
     </channel>
     <channel mask="00000004" nameId="0044" combined="true" i="ch0003" cid="ABB70084">
      <attribute name="functionId">3</attribute>
      <attribute name="selectedIcon">1e</attribute>
      <functions>
       <function/>
       <function/>
       <function/>
       <function/>
       <function/>
       <function/>
       <function/>
      </functions>
      <inputs>
       <dataPoint full="true" i="idp0001">
        <value>0</value>
        <address timeSlot="0">4f11</address>
       </dataPoint>
       <dataPoint full="false" i="idp0002">
        <value>0</value>
        <address timeSlot="0">2bf7</address>
        <address timeSlot="0">4ada</address>
        <address timeSlot="0">e178</address>
        <address timeSlot="0">3329</address>
        <address timeSlot="0">7b9d</address>
        <address timeSlot="0">7cf2</address>
        <address timeSlot="0">ac81</address>
        <address timeSlot="0">1c48</address>
        <address timeSlot="0">e8ae</address>
       </dataPoint>
       <dataPoint i="idp0005">
        <value>0</value>
       </dataPoint>
      </inputs>
      <outputs>
       <dataPoint i="odp0002">
        <value>0</value>
        <address timeSlot="0">3ceb</address>
       </dataPoint>
       <dataPoint i="odp0003">
        <value>0</value>
        <address timeSlot="0">3d10</address>
       </dataPoint>
      </outputs>
      <parameters>
       <parameter i="pm0002">
        <value>50</value>
       </parameter>
       <parameter i="pm0003">
        <value>50</value>
       </parameter>
      </parameters>
      <scenes>
       <scene active="false" sceneNumber="0" i="sc0000"/>
       <scene active="false" sceneNumber="0" i="sc0001"/>
      </scenes>
     </channel>
     <channel mask="00000008" nameId="0047" combined="true" i="ch0004" cid="ABB70044">
      <functions>
       <function/>
       <function/>
       <function/>
       <function/>
       <function/>
       <function/>
       <function/>
      </functions>
     </channel>
     <channel mask="00000008" nameId="0048" combined="true" i="ch0005" cid="ABB70064">
      <functions>
       <function/>
       <function/>
       <function/>
       <function/>
       <function/>
       <function/>
       <function/>
      </functions>
     </channel>
     <channel mask="FFFFFFFF" nameId="004F" i="ch0006" cid="ABB70243">
      <attribute name="displayName">EG-WZ-SüdR</attribute>
      <attribute name="floor">01</attribute>
      <attribute name="functionId">9</attribute>
      <attribute name="offsetX">0.722429587234386</attribute>
      <attribute name="offsetY">0.0469179986578328</attribute>
      <attribute name="room">05</attribute>
      <attribute name="selectedIcon">3</attribute>
      <functions>
       <function/>
      </functions>
      <inputs>
       <dataPoint full="false" i="idp0000">
        <value>0</value>
        <address timeSlot="0">3ceb</address>
        <address timeSlot="0">f941</address>
        <address timeSlot="0">db7</address>
        <address timeSlot="0">6583</address>
       </dataPoint>
       <dataPoint full="false" i="idp0001">
        <value>0</value>
        <address timeSlot="0">82fa</address>
        <address timeSlot="0">f501</address>
        <address timeSlot="0">3d10</address>
        <address timeSlot="0">57a2</address>
       </dataPoint>
       <dataPoint full="false" i="idp0002">
        <value>0</value>
        <address timeSlot="0">f201</address>
       </dataPoint>
       <dataPoint full="false" i="idp0003">
        <value>0</value>
        <address timeSlot="0">f5e1</address>
       </dataPoint>
       <dataPoint i="idp0004">
        <value>0</value>
       </dataPoint>
       <dataPoint i="idp0005">
        <value>0</value>
       </dataPoint>
       <dataPoint i="idp0006">
        <value>0</value>
       </dataPoint>
       <dataPoint i="idp0007">
        <value>0</value>
       </dataPoint>
       <dataPoint i="idp0008">
        <value>0</value>
       </dataPoint>
      </inputs>
      <outputs>
       <dataPoint full="true" i="odp0000">
        <value>0</value>
        <address timeSlot="0">6e15</address>
       </dataPoint>
       <dataPoint full="true" i="odp0001">
        <value>0</value>
        <address timeSlot="0">7ba8</address>
       </dataPoint>
       <dataPoint full="true" i="odp0002">
        <value>0</value>
        <address timeSlot="0">6afd</address>
       </dataPoint>
       <dataPoint full="true" i="odp0003">
        <value>0</value>
        <address timeSlot="0">4ada</address>
       </dataPoint>
       <dataPoint full="true" i="odp0004">
        <value>0</value>
        <address timeSlot="0">3a0d</address>
       </dataPoint>
      </outputs>
      <parameters>
       <parameter i="pm0000">
        <value>36</value>
       </parameter>
       <parameter i="pm0001">
        <value>33</value>
       </parameter>
       <parameter i="pm0002">
        <value>0</value>
       </parameter>
       <parameter i="pm0003">
        <value>2</value>
       </parameter>
       <parameter i="pm0004">
        <value>2</value>
       </parameter>
       <parameter i="pm0005">
        <value>2</value>
       </parameter>
       <parameter i="pm0006">
        <value>1</value>
       </parameter>
       <parameter i="pm0007">
        <value>0</value>
       </parameter>
       <parameter i="pm0008">
        <value>1</value>
       </parameter>
      </parameters>
      <scenes>
        <!-- removed for readability -->
      </scenes>
     </channel>
    </channels>
    <parameters>
     <parameter matchCode="FFFFFFFF" dpt="14C8" nameId="003B" accessLevel="Enduser" visible="true" wizardOnly="false" writable="true" channelSelector="true" deviceChannelSelector="false" parameterId="000C" i="pm0000">
      <valueEnum>
       <option key="1" nameId="0049" isDefault="true" mask="00000005"/>
       <option key="2" nameId="004A" isDefault="false" mask="00000009"/>
       <option key="3" nameId="004B" isDefault="false" mask="00000006"/>
       <option key="4" nameId="004C" isDefault="false" mask="0000000A"/>
      </valueEnum>
      <value>1</value>
     </parameter>
    </parameters>
    <dicts/>
   </device>```

Issue is related to #32 
ruebox commented 6 years ago

Ok great. Thus, adding the mentioned line with the next snapshot would work for you?

Sensors are currently not supported (yet).

xlrx commented 6 years ago

Yes, thanks!

Am 30.04.2018 um 22:45 schrieb ruebox notifications@github.com:

Ok great. Thus, adding the mentioned line with the next snapshot would work for you?

Sensors are currently not supported (yet).

ruebox commented 6 years ago

Please keep the issue open ... Otherwise I will forget it ,😁 hopefully I can provide you an update on wednesday

ruebox commented 6 years ago

Hi,

I implemented the deviceId 1015 as switch with states on/off. With the next snapshot, would be great if you could test it.

Does this actor also supports complete and stepwise up/down. Although it is denoted as switch by B+J we should run it as raffstore then.

wojewsky commented 6 years ago

could you change the switches to type "Raffstore switch"?

ruebox commented 6 years ago

Sure this would be possible. Have you successfully discovered the things?

wojewsky commented 6 years ago

Yes, ive got all Devices.