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

Feature Request: Task enable/disable via http commands #1185

Closed
jobst opened this issue Mar 28, 2018 · 6 comments
Closed

Feature Request: Task enable/disable via http commands #1185

jobst opened this issue Mar 28, 2018 · 6 comments
Labels
Category: Rules Related to the rule engine Type: Feature Request Add a completely new feature (e.g. controller/plugin)
Milestone

Comments

@jobst
Copy link

jobst commented Mar 28, 2018

It would be good to be able to turn off/on devices via a http command (Server -> Sonoff).

Say I have a number of (in my case) sonoff devices that control lights, and have on GPIO14 a PIR connected that drops the pulled up line to zero, which in turn is attached to Task 3, firing off a rule.

The motion sensor is not required during daylight hours that the server on the network "knows" through time zones. The server than could turn off the task in the morning, to turn it on again in the evening.

Suggested Command:

TaskEnable,<task "number">,<1 or 0>

Alternatively:

TaskEnable,<task "name">,<1 or 0>

IMHO the second one is prefered method.

@Grovkillen
Copy link
Member

Task number is the generic way and must be part of this command. The second suggestion using name is then built on top of that.

@Grovkillen Grovkillen added Type: Feature Request Add a completely new feature (e.g. controller/plugin) Category: Rules Related to the rule engine labels Mar 28, 2018
@Grovkillen Grovkillen added this to the 2.1.0 milestone Mar 28, 2018
@TD-er
Copy link
Member

TD-er commented Mar 28, 2018

Why not introduce a check for sunrise and sunset?
Then it can be used in rules.
I guess 16 bit for longitude and for latitude is resolution enough to compute it to almost seconds.

@TD-er
Copy link
Member

TD-er commented Mar 28, 2018

There is already a request to disable plugins, controller etc. Remotely, but that was meant for troubling code and/or settings which prevents the user to operate or change settings

@Grovkillen
Copy link
Member

I use a simple photo resistor to see the outside light level. But that doesn't mean that a theoretical sunrise/sunset is not needed.

@ostanki
Copy link

ostanki commented Apr 1, 2018

Very much want this feature !

Another usage example:
On Clock#Time=All,18:25 do // every day at 18:25 start HC-SR04 device to monitor water level
enable,1
endon
On Clock#Time=All,18:45 do
disable,1
endon

Because the HC-SR04 device might generate lots of traffic while refilling reservoir....

@TD-er
Copy link
Member

TD-er commented Apr 21, 2022

Is already fixed

@TD-er TD-er closed this as completed Apr 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Rules Related to the rule engine Type: Feature Request Add a completely new feature (e.g. controller/plugin)
Projects
None yet
Development

No branches or pull requests

4 participants