Hi, I’m doing some coding in Homeyscript and I’m running in to an issue I hope someone can help me with. The situation is pretty straightforward, I have Ralf van Dooren’s EvoHome app installed and it works perfectly. I use flows to either set the target temp for a few hours, or to cancel what I set up, so the normal program kicks back in.
I want to do the same in Homeyscript, but I’ve noticed the capabilities that the flow-cards offer are not al straight-forward capabilities for Homeyscript. Basically, controlling the device is just setting a capability: Homey.devices.getDevice({id: 123-ABC}).setCapabilityValue('target_temperature', 20); which works as it should. The only issue is it sets the new temperature indefinitely. As I have a program running on the EvoHome itself, I want Homey to set the new temperature for a few hours, and then back to normal programming.
This is possible in the flows:
(setting temp for 2 hours, and also simply cancelling the setting al together)
but I only have the 'target_temperature' capability in HomeyScript. Is there something I’m missing in the capabilities, or am I just out-of-luck? Obviously this is possible, as the flow-cards can do it, I just can’t seem to find how.
Afaik all you need is in that script, there is no need to have a flow. As I understand it the script just inputs the parameters to the EvoHome app in the same way that it would normally handle a flow card.
Oh, I didn’t notice that at all! I though the ‘run flowcard’ script did just that, simply call an (existing/regularly made in the Homey interface) flow-card from Homeyscript. This changes things, I’ll have to look in to how to send the correct arguments. thanks!
Just in case others run into the samen problem, what @Edwin_D said works! the run_flowcard method can be used: the easy way is to go to your own API playground, and run Homey.flow.getFlows();. Find your flow, and take the needed info from there.
For the current EvoHome version, the code is as follows: (just change the device_id 123456 to your device of course)