stanleypa / eleropy

Python code to control elero blinds
GNU General Public License v3.0
15 stars 7 forks source link

Elero step mode #5

Open appi1 opened 8 months ago

appi1 commented 8 months ago

Hi the code ist working with a ESP8266 perfectly. I have blinds and roller shutter. The roller shutter work as designed -> short press up, the roller shutter goes up , short press down the roller shutter goes down -> it works also with eleropy

The blinds are also Elero, but it's called 'Step Mode'
short press up, the blind moves 1inch up , short press down the blind moves 1inch down..... long press up, the blind moves completly up , long press down the blind moves completly down..... -> the shortpress works also with eleropy, the longpress don't work

Question: is a long press possible within eleropy?

thanks Remo

lomion0815 commented 8 months ago

Hi, please set

rawTrace   = True 

and provide the output/trace for long press (eleropy will sniff the messages from you remote when you are close enough).

appi1 commented 8 months ago

hi the trace

channel cleared connecting to network... network config: ('192.168.1.53', '255.255.255.0', '192.168.1.1', '192.168.1.1') MQTT client connected! Starting main loop 759324939 1F:1D:92:6A:10:00:01:03:D5:7C:01:D5:7C:01:D5:7C:01:01:93:88:1B:00:04:D1:9D:36:DB:F1:BD:85:77:40:AF: len= 29, cnt= 146, typ=6A, chl=3,src=[D57C01],bwd=[D57C01],fwd=[D57C01] - des=1::[93881B],rssi=-42.0,lqi=47,crc=1, pay=00:00:40:00:00:00:00:C0: 759324941 1F:1D:93:6A:10:00:01:03:D5:7C:01:D5:7C:01:D5:7C:01:01:93:88:1B:00:04:A1:61:1B:A6:A1:51:65:15:42:B0: len= 29, cnt= 147, typ=6A, chl=3,src=[D57C01],bwd=[D57C01],fwd=[D57C01] - des=1::[93881B],rssi=-41.0,lqi=48,crc=1, pay=00:00:41:00:00:00:00:00: 759324944 1F:1D:94:6A:10:00:01:03:D5:7C:01:D5:7C:01:D5:7C:01:01:93:88:1B:02:04:FD:7F:BB:88:DD:33:77:99:32:AF: len= 29, cnt= 148, typ=6A, chl=3,src=[D57C01],bwd=[D57C01],fwd=[D57C01] - des=1::[93881B],rssi=-49.0,lqi=47,crc=1, pay=00:00:00:00:00:00:00:00: 759324944 1F:1D:1D:CA:10:0A:01:94:93:88:1B:93:88:1B:D5:7C:01:01:D5:7C:01:01:81:EF:D9:43:3F:28:89:EA:53:23:B0: len= 29, cnt= 29, typ=CA, chl=148,src=[93881B],bwd=[93881B],fwd=[D57C01] - des=1::[D57C01],rssi=-56.5,lqi=48,crc=1, pay=00:00:00:00:00:00:0B:10: Sending Topic elero/status/93:88:1B with payload Stopped 759324946 1F:1D:95:6A:10:00:01:03:D5:7C:01:D5:7C:01:D5:7C:01:01:93:88:1B:00:04:4D:4E:DB:C2:CD:E4:47:EC:33:B0: len= 29, cnt= 149, typ=6A, chl=3,src=[D57C01],bwd=[D57C01],fwd=[D57C01] - des=1::[93881B],rssi=-48.5,lqi=48,crc=1, pay=00:00:10:00:00:00:00:40: 759324949 1F:1D:20:CA:10:0A:01:97:93:88:1B:93:88:1B:D5:7C:01:01:D5:7C:01:01:81:8D:5A:0B:15:7D:6A:DA:96:22:AE: len= 29, cnt= 32, typ=CA, chl=151,src=[93881B],bwd=[93881B],fwd=[D57C01] - des=1::[D57C01],rssi=-57.0,lqi=46,crc=1, pay=00:00:00:00:00:00:0D:10: Sending Topic elero/status/93:88:1B with payload Bottom 759324954 1F:1D:98:6A:10:00:01:03:D5:7C:01:D5:7C:01:D5:7C:01:01:93:88:1B:02:04:98:D9:D9:3F:BF:89:08:33:28:B1: len= 29, cnt= 152, typ=6A, chl=3,src=[D57C01],bwd=[D57C01],fwd=[D57C01] - des=1::[93881B],rssi=-54.0,lqi=49,crc=1, pay=00:00:00:00:00:00:00:80:

the Remote is: remote_addr = [ [0xD5, 0x7C, 0x01] and the roller shutter : [0x93, 0x88, 0x1B, 0x03], # Essen

hope the trace is correct

stanleypa commented 8 months ago

It looks like there is another command that isn't documented in Easy Control Transmitter Stick.pdf

A quick test - replace

"Down": (0x6A,0x40,0x00), with "Down": (0x6A,0x41,0x00),

in eleroProtocol.py

this might not work as it may need 2 commands (0x40 and 0x41) but worth a try

appi1 commented 8 months ago

it work's with the change, great, thank you

i also changed "Up": (0x6A,0x20,0xC0), to "Up": (0x6A,0x21,0xC0), and it works also for the Up command. Maybe it's possible to add in the config.py at the end of the lines a s for step receiver: remote_blind_id = [

<3 byte address>,

    [ [0xAA, 0xAA, 0xAA, 0x00,s],  # WC  ->> for step receiver
      [0xCE, 0x37, 0x24, 0x02],s  # Türe
      [0x93, 0x88, 0x1B, 0x03],  # Essen   for normal receiver

thanks for your excellent help

appi1 commented 8 months ago

feedback 👍 with the recomanded change all comands work for me for both type of receiver's (normal an step) I tested Up, Down, Stop, Tilt and Int. with the two changes of Up and Down from 20 -> 21 and 40 > 41 all tested Command are ok with both receiver modes.