Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mowing activation / deactivation on scheduling days #27

Closed
nibi79 opened this issue May 9, 2020 · 1 comment
Closed

Mowing activation / deactivation on scheduling days #27

nibi79 opened this issue May 9, 2020 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@nibi79
Copy link
Owner

nibi79 commented May 9, 2020

New channels to activate/deactivate mowing on scheduling days.

@nibi79 nibi79 self-assigned this May 9, 2020
@nibi79 nibi79 added the enhancement New feature or request label May 9, 2020
@Eddy0815
Copy link

Eddy0815 commented May 10, 2020

That would be nice, found a solution for me with code in a rule. I made dummy items to safe the scheduling in openhab persistent.
rule "LandroidDisabledSchedulerManagerAndSendHome" when Item LandroidDisabledScheduler changed then if (LandroidDisabledScheduler.state == ON) { GRP_LandroidSchedulerDummies.members.forEach[item | var OriLandroidItemName = "LandroidSchedule" + item.name.split("LandroidScheduleDummy").get(1) item.postUpdate(ScriptServiceUtil.getItemRegistry.getItem(OriLandroidItemName).state) ] Thread::sleep(500) if (LandroidStatusDescription.state.toString != "Home") { LandroidSchalterVirt.sendCommand(OFF) } var weekdays = newArrayList("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday") var dow = now.getDayOfWeek() logInfo("Mathilda DOW: ", weekdays.get(dow)) var OriLandroidItemName = "LandroidSchedule" + weekdays.get(dow) + "Duration" ScriptServiceUtil.getItemRegistry.getItem(OriLandroidItemName).sendCommand("0") } else if (LandroidDisabledScheduler.state == OFF) { GRP_LandroidSchedulerDummies.members.forEach[item | var OriLandroidItemName = "LandroidSchedule" + item.name.split("LandroidScheduleDummy").get(1) if (ScriptServiceUtil.getItemRegistry.getItem(OriLandroidItemName).state.toString != item.state.toString) { ScriptServiceUtil.getItemRegistry.getItem(OriLandroidItemName).sendCommand(item.state.toString) logInfo("Mathilda", "Ori Value: " + ScriptServiceUtil.getItemRegistry.getItem(OriLandroidItemName).state.toString) logInfo("Mathilda", "Dummy Value: " + item.state.toString) } Thread::sleep(500) ] } end

@nibi79 nibi79 closed this as completed in 47670c9 Jun 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants