sehaas / yfmos

Control your Somfy receivers with a Sonoff RF Bridge
MIT License
9 stars 5 forks source link

KeyError: 8 #14

Open Sundancescore opened 1 year ago

Sundancescore commented 1 year ago

Hello!

I tried to run the init command as follows and I get a "KeyError: 8".

root@ups:/var/www/html/remote/yfmos-master# python2 yfmos.py init --device 0x000001 --rollingcode 0 --profile mainroom3 AA B1 05 0A00 12D4 0500 0280 68E2 48080808080808092A2A2A3B3B2B3B3A2B3B3B3B3B3B3A2B3B3B3A3B2B3A2A2A2A2B3A2B3B3A2A3B2A2B3A3B2B3A3B2B 55 Traceback (most recent call last): File "yfmos.py", line 435, in Yfmos() File "yfmos.py", line 134, in init getattr(self, args.command)() File "yfmos.py", line 159, in init parsedConfig = self.__parse_B1(args.b1string) File "yfmos.py", line 266, in __parse_B1 if pulse[int(listOfElem[i])] is 'HWsync': KeyError: 8

The AA B1 ... sequence is obtained by sniffing on a Sonoff RF Bridge running Tasmota and Portisch.

If I run it with a sequence found here on this forum I don't get any errors:

root@ups:/var/www/html/remote/yfmos-master# python2 yfmos.py init --device 0x144051 --rollingcode 0 --profile mainroom2 AA B1 05 0A1E 12FC 050A 028A 8106 00000000000000122222233333333222233223322223333233233333333233233332332333322333333333333333333333333334 55 (init) next: 1, second: True

Please advice how can I fix this. Thank you!