MTrab / pyworxcloud

PyPI module for integrating with Worx Cloud devices
GNU General Public License v3.0
22 stars 20 forks source link

How to send mover to specific zone #164

Closed MarkResting closed 1 year ago

MarkResting commented 1 year ago

Hi, not sure if this is the right way to ask this question, but i don't find a better place,....

First of all THX a lot for you work!!!!!

I can already start and stop my mover (worx) but i'm not able to send him to a specific Zone. is there any excample or someone who can help me on that? I'm using just the phyton script without IO Broaker.

Thx a lot up front! Mark

MTrab commented 1 year ago

Use the setzone function, specifying the zone as int 0 to 3

MarkResting commented 1 year ago

First of all MANY MANY THX for that quick response!!!!

Hm,.... now I'm getting always that the mover is offlinee,... but he isn't,.... at least i was able to send him last week,... I'm getting an update, but when i try to start it, it's telling me, that it's offline :-(

MTrab commented 1 year ago

Offline/online state is reported by API and is not a calculated state.

MarkResting commented 1 year ago

ok, reboot soved this, noe i'm getting this as result after starting the setzone:

cloud.setzone("SERIAL_NUMBER",0)

raise RequestException("Cannot request this zone as it is not defined.")

MTrab commented 1 year ago

Have you defined any zones? From the error I guess not

MarkResting commented 1 year ago

Yes i have 3 Zones created :-(

MarkResting commented 1 year ago

oh,... it's still offline when i try to start it,... no idea what it could be,...

maybe i'm doin'g something totally wrong?!? Sorry for all these questions,...

MTrab commented 1 year ago

No idea what you might be doing wrong. As far as I know it should work as intended (at least it does when I have been testing

MarkResting commented 1 year ago

ok, start stop is working now. set zone not :-(

always the "not defined" Error :-(

File ~\pyworxcloud-3.1.4\pyworxcloud-3.1.4\pyworxcloud__init__.py:682 in setzone raise RequestException("Cannot request this zone as it is not defined.")

RequestException: Cannot request this zone as it is not defined.

Can I read the defined Zones somewhere in the variables which i get after an update?

MTrab commented 1 year ago

Oh - you are on an old version of pyworxcloud where this didn't work. Please update to the latest version

MarkResting commented 1 year ago

Hi, sorry for the late answer! I moved over and it works now!

Thax a lot for that nice implementation!!!