Automate Landroid Mower schedule

Hi,

Maybe someone can help on this. I’m trying to settle my mower schedule based on weather data, which is fine so far but I need to pass two variables (today_start and today_end) to the data of the service call:

service: landroid_cloud.schedule
data:  
variables:   
 today_start:{{ ['Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday'][now().weekday()] }}_start 
today_end:{{ ['Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday'][now().weekday()] }}_end 
type: primary  
{{today_start}}: "11:00:00"  
{{today_end}}: "15:00:00"
target:  
device_id: XXXXXXX

But that does not seem to work, as I’m sure Im doing something wrong with the variables.
Does anyone have a clue?

Thanks!

This is the only landroid cloud integration I could find and there is no schedule service listed: https://github.com/MTrab/landroid_cloud#entities--services

Which integration are you using (link to the repository)?

You got the correct one I’m using:

I think the GitHub site is not completely updated.
The service is definitely existing and working, without variable I can set perfectly:

I haven’t checked but I think it is because your template returns a ‘title case’ day name…
e.g. Thursday

{{ ['Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday'][now().weekday()] }}

This is what the Template Editor gives back as string:


And this is the correct parameter for calling the service.

In your screen shot of the service the example parameters have monday_start and monday_end not Monday_start and Monday_end

Hi klogg,

that’s it… can’t believe… I need to be more careful. Now as I have changed the workdays to small letters at the beginning it’s working!! Many thanks for your help. Saved my day :slight_smile:

Dear all,

Great to read this thread, as I want to do something similar. I am quite new to HA so bear with me…

I have managed to install the landroid cloud integration for my WE167E mower and have made a dashboard with several parameters and buttons that monitor and control the mower. Now, I would like to schedule the mower via HA instead of the landroid app, taking into account the weather conditions/irrigation (I have a soil sensor and irrigation controlled via HA). However, I am not sure how to do this properly. Should I just remove all schedules in the landroid app and make separate automations for each time/day that I want the mower to start/stop, with weather/irrigation variables as conditions? This will make for a lot of automations, as I want the mower to start twice per day, and, as far as I have seen, have to make separate automations for start and stop (return to base). There is no way to implement something like “start and mow for 2 hours” or so in another way, is there? Like triggering a “one time schedule” with a certain duration (available in the landroid app) in HA? And how can I integrate the border cut? I can make automations to start it 10 minutes before starting the normal mowing routine, or can this also be automated so that the mower will start with the border cut and then resume with the normal routine?

Ideally, I would like to implement scheduling like Hami does in this thread and add the conditions (weather/irrigation) in there. However, I seem to only be able to “reach” the landroid_cloud.schedule via the automation option in HA, but then I need to set a trigger, while there is no trigger necessary in that case.

Hope you can help me out!