alexbacchin / ConnectorBridgeCLI

Command line interface to interact with Dooya Connector app covering with the bridge DD7002B
MIT License
2 stars 0 forks source link

AvosDim #3

Open zintor opened 1 year ago

zintor commented 1 year ago

Hi Alex!

Thanks for the ConnectorBridgeCLI!

I am able to close, open and stop my roller blinds via the Homebox 005313 from AvosDim.

But I am not able to set a position. Any ideas how to get it working or debug to send a position state?

Best regards, zintor

mryshakow commented 11 months ago

Hej @zintor & @alexbacchin!

I try to communicate with with the Bridge from AvosDim as well. But I can't get it to run at all. Both Commands

sconnector-cli status 1 --apikey=XXXXXXXX-XXXX-XX sconnector-cli open 1 --apikey=XXXXXXXX-XXXX-XX

fail with the following exception:

Read data failed: read udp 192.168.1.109:56585->238.0.0.18:32100: i/o timeout Cannot execute the operation to device:1, error: Cannot list devices: unexpected end of JSON input%

@zintor, can you give me an working example of your input?

I also saw a difference in the packages send by the AvosDim App and the CLI:

CLI { "msgType":"GetDeviceList", "msgID":"17019778307908833000" }

App { "msgType":"GetDeviceList", "msgID":"200231207203733739" }

I am not sure if the error can be caused by the message id. But the AvosDim App generates a message ID according to the current date. Not sure what the CLI is doing here.

Any thoughts about this? :)

Greets Michael

alexbacchin commented 11 months ago

@mryshakow @zintor please try to connect with unicast IP address (the bridge IP address). I could never make multicast (238.0.0.18) work.

mryshakow commented 11 months ago

That worked. Thank you! <3

For others who are wondering what the name of the device might be: At least for me it was espressif.

@zintor set-position works for me as well. Thats my command:

sconnector-cli set-position 1 50 --host=192.168.1.135 --apikey=XXXXXXXX-XXXX-XX --port=32100

But it closes the blind around 80% not sure why...

zintor commented 11 months ago

I used at the time issued the same command as @mryshakow. But no luck. The same problem exists on the iobroker adapter https://github.com/ConnectorGit/ioBroker.connector-local-control I am not able to set a position. There is also no option in the app to set a position. Just open and close. The status command always show this. On the time moving, opened and closed...

./sconnector-cli status 13 --host=192.168.178.XX --apikey=XXX --port=32100 {"mac":"XXX","operation":0,"currentPosition":0,"currentAngle":0,"currentState":0,"batteryLevel":0,"wirelessMode":2,"RSSI":-75}

It seems, that my shutter do not offer to set a position.