- This topic has 1 reply, 2 voices, and was last updated 2 years, 6 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Spread the love!
Community Home › Community › B-Hyve APP Forum › Plans opening an API to interact with the timer from external systems and sensor
Tagged: API
Hello support team,
I have been playing around with the current API used by the Orbit b-hyve timer in order to build a kind of IFTTT function as this kind of feature is not currently native part of the App.
I succeed with automatic activation of a delay based on the moisture sensors I have in my plants, using the websocket:
ws.send(JSON.stringify({
event: "rain_delay",
device_id: "5ae6cfe44f0c72d7d6273dda",
delay: 24,
timestamp: (new Date).toISOString()
}))
My problem is that I am not able to activate manually a watering remote cycle based on my sensors because the following message does not work:
ws.send(JSON.stringify({
event: "change_mode",
mode: "manual",
program: null,
stations: [ { station: 1, run_time: 10 } ],
device_id: "5ae6cfe44f0c72d7d6273dda",
timestamp: (new Date).toISOString(),
orbit_session_token: token
}))
I have tried with program: “A” and nothing.
Thanks in advance for your help.
If you want I can publish my code either in the forums or as a npm package so other advance users can use it.
I am sure this will improve significantly the market of this kind of devices as nowadays users are expecting much more customising options.
Best regards,
Jose
Did you ever find a solution to this problem? I’m looking to do the same thing.