Whytey / moebot-hass-integration

A HomeAssistant integration for MoeBot (and compatible) TUYA mowers.
9 stars 0 forks source link

Update Zone Mowing settings #16

Closed Blindfury116 closed 4 months ago

Blindfury116 commented 11 months ago

Would there be a way to send Zone settings through a script, similar to how you can update zone settings through the SmartLife app?

My lawn is broken in to 3 segments and I like to focus mowing on each segment on specific days. So currently I go in to the smartlife app and set that specific zone to 100% manually. If there was a way to replicate that via a script, I could automate it in HA and it would be a game changer.

Sadly, whilst I was able to follow the instructions to install your integration in HA, messing with scripts is beyond my capability...

Whytey commented 11 months ago

Yes, it is possible but I have yet to decode how to specify the zones. I haven't had much time to play with this lately but hopefully I can take a look over the Christmas period - if you could hold on until then :)

On Thu, Nov 30, 2023 at 8:00 AM Blindfury116 @.***> wrote:

Would there be a way to send Zone settings through a script, similar to how you can update zone settings through the SmartLife app?

My lawn is broken in to 3 segments and I like to focus mowing on each segment on specific days. So currently I go in to the smartlife app and set that specific zone to 100% manually. If there was a way to replicate that via a script, I could automate it in HA and it would be a game changer.

Sadly, whilst I was able to follow the instructions to install your integration in HA, messing with scripts is beyond my capability...

— Reply to this email directly, view it on GitHub https://github.com/Whytey/moebot-hass-integration/issues/16, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGWATAHDOWYMCUYVN236C3YG6WAHAVCNFSM6AAAAABAAFV5PGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGAYTONBZGU3TSMY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Blindfury116 commented 11 months ago

Oh amazing. Yeah I've searched far and wide and cant find anyone else playing with this... I wish there was someone out there tinkering with the firmware on these mowers, they could be improved so much...

PeteRepeat77 commented 10 months ago

As per our chat on reddit, I'm also interested in being able to target zones (or adjust the percentage, as that does similar thing) if or when you find the time. For me it's more about I can target the very front of my lawn (where it can get stolen) at dark hours of our morning but the rest in daylight.

PeteRepeat77 commented 8 months ago

I'm assuming development of zone mowing isn't a focus for now, and development of this integration has taken a back seat in life for a bit?

Whytey commented 8 months ago

Hi @PeteRepeat77, it unfortunately has taken a back seat. I haven't abandoned the project though - I will get back to it soon. My MoeBot is still working for me, so I have an interest in continuing to work on the integration.

Whytey commented 8 months ago

I have been trying to decode the byte string that specifies the zone setting. I have come up blank! I put the call out to other decoders on Reddit, in case you're a budding decoder...

https://www.reddit.com/r/Decoders/comments/1bc1a8c/decoding_a_byte_string/

PeteRepeat77 commented 8 months ago

Not likely to help, but how do you have values of all the percentages added together not equal 100 when all zones are summed, other than the last one?

Whytey commented 7 months ago

I now have proof of concept code to set and get zones, thanks to help from the linked reddit post. I will try and roll this in to the integration in the very near future.

PeteRepeat77 commented 7 months ago

sounds good. I was tracking that reddit post and saw the good breakthrough

Blindfury116 commented 7 months ago

Oh awesome! Yeah that was me on Reddit, helping with chatgpt.

PeteRepeat77 commented 4 months ago

Just checking to see if this has got a road block or just life outside this integration has taken priority?

Whytey commented 4 months ago

Hi,

It's very much in work. I've been looking at this and a couple of other things over the last two weekends. I'm hoping to push out a 0.3.0 release that addresses this in the next week or so.

My driver is that I have a new Luba 2 and want to decommission the MoeBot but feel like I should close this out first 😁👍

Cheers, Whytey

On Sat, 6 July 2024, 4:56 am PeteRepeat77, @.***> wrote:

Just checking to see if this has got a road block or just life outside this integration has taken priority?

— Reply to this email directly, view it on GitHub https://github.com/Whytey/moebot-hass-integration/issues/16#issuecomment-2211291470, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGWATH5LR6BWWQAF7PFMPTZK3T4HAVCNFSM6AAAAABAAFV5PGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJRGI4TCNBXGA . You are receiving this because you commented.Message ID: @.***>

PeteRepeat77 commented 4 months ago

That every kind of you and appreciate your contribution to us Moebot users. I'm a little jealous of you getting the luba 2. True smart mower.. I just want my boundary wire worx landroid to die before upgrading.. In saying that I'm not so sure I'd want a Luba 2 out the front of my home so I'll keep the somewhat more disposable moebot out the front for a while yet.

Whytey commented 4 months ago

I just pushed a 0.3.0-beta.2 release of the integration that provides the first 2 zones for control. This is a first look to get any feedback for how it is working for you. I think I would like to refactor the code underneath so will do that before pushing a full implementation.

https://github.com/Whytey/moebot-hass-integration/releases/tag/0.3.0-beta.2

PeteRepeat77 commented 4 months ago

I'm overseas so can't check this for a week or so. Looking forward to checking it and reporting back

Whytey commented 4 months ago

Resolved. Full implementation will be available in release 0.3.0.

PeteRepeat77 commented 4 months ago

Out of curiosity I'm assuming to now a particular zone on 0.3.0 you need to change that zone percentage to 100 and all else to 0, then start mowing in home assistant?

How does the edge mow work in this state. I believe the first mow of the week is an edge mow by default as defined by the moebot server? So to mow zone 1 for the first time in a week I'd need to start mowing, which will do edge mow. Then adjust the percentage of zone 1 to 100 and mow again to mow zone 1. Then if I want zone to mow zone 2 in that same week, adjust zone 1 to 0% and zone 2 to 100%?

PeteRepeat77 commented 4 months ago

So I've done some experimenting now I'm home and have created one zone as 100 percent and the others as 0 in an automation. This works for target zone cutting.

One thing worth noting is that there has to be delays between setting each zone percentage otherwise it only updates one of the zones it seems. I get this requirement lies outside this integration, but thought it was worth adding here in case someone else has problems with setting the zone percentages.

I still need to find out about the edge cut and how that operates now if I keep changing the zones to target certain zones on certain days. I believe it'll happen on the first mow command for the week but I'm yet to validate that.

Whytey commented 4 months ago

Hi,

I have never used zone mowing so can't really comment on the operation or how it affects edge mowing. There is a setting in the mower but not exposed on the app (and thus not in the integration) that allows you to alter how often it edge mows...I have never fully understood it to be honest.

Thanks for the comment on the delay between configuring the zones - I will have a think about how that might be improved.

Thanks, Whytey

On Tue, Jul 16, 2024 at 10:06 PM PeteRepeat77 @.***> wrote:

So I've done some experimenting now I'm home and have created one zone as 100 percent and the others as 0 in an automation.

One thing worth noting is that there has to be delays between setting each zone percentage otherwise it only updates one of the zones it seems. I get this requirement lies outside this integration, but thought it was worth adding here in case someone else has problems with setting the zone percentages.

I still need to find out about the edge cut and how that operates now if I keep changing the zones to target certain zones on certain days. I believe it'll happen on the first mow command for the week but I'm yet to validate that.

— Reply to this email directly, view it on GitHub https://github.com/Whytey/moebot-hass-integration/issues/16#issuecomment-2230723219, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGWATA36LRVW7XH6JGSA5LZMUECPAVCNFSM6AAAAABAAFV5PGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZQG4ZDGMRRHE . You are receiving this because you modified the open/close state.Message ID: @.***>