gluap / pyduofern

GNU General Public License v2.0
40 stars 11 forks source link

Support for 2-Kanal-Aktor #5

Closed CreaValix closed 5 years ago

CreaValix commented 5 years ago

Hello gluap, I have a somewhat larger installation with 16 actors (2-Kanal-Aktor and Rohrmotor-Aktor), but no sensors at my parents place. Lately, their Homepilot 2 box broke down, so I decided to give HA with your Rademacher component a try.

  1. I had no access to the actors, so I implemented a remote binding through your CLI.
  2. Status messages returned an IndexError, turns out code + '01' does not work. It looks this is related to the 2nd switch in the actor (which does not work right now), but it does not crash. I'll look into that.
  3. 2-Kanal-Aktor was added as a shutter, not light in HA. Apart from some minor issues, the solution works pretty well.
CreaValix commented 5 years ago

Yes, I also assume so. We are using the 2nd switches, so I will definitively look into this later. My best guess is that the 01/02 is added after the 3-byte code, so it does not have to be appended when looking up the actor in the internal array but when sending the command (and adding two devices to HA). I guess I have to dive into the FHEM code.