Octopus Agile and Smart Energy (IFTTT or API?)

99 views
Skip to first unread message

Mike Seaman

unread,
Jul 19, 2020, 2:02:19 PM7/19/20
to Loxone English
Hi All,

I am slowly losing the plot on what to do.

So looking to read Smart Energy Tarrifs from Octopus Energy into Loxone. Is anyone doing this or experience of using API's or IFTTT ?

Basically Octopus Energy release daily pricing schemes on half hours readings via their API


I am looking to read these into Loxone and then figure out a way of comparing a number of periods to turn an output on if the energy price is low.

Looking IFTTT they have the ability to write outwards from Octopus API and thus utilising Webhooks i was thinking of writing into Loxone. Has anyone done this on other things?

Thanks

Mike

AaronP

unread,
Jul 19, 2020, 4:47:43 PM7/19/20
to Loxone English
Hi Mike

Have you ever used Integromat? Really good cloud based middleware platform that I’d recommend. You could read the values into Integromat and store within the data store there with the scenario having the calculation logic in it each time it receives new values and should the output of that equal a value that you want to trigger something in Loxone you could then have Loxone trigger the action.

Take a look and give me a shout if you think it’s viable for your situation and you’d like to discuss further - happy to help where I can.

An example of where I use this is certain members of our house are bad for locking the car when the arrive home so when they open the front door on the code touch Loxone polls our Integromat scenario which then goes out to Mercedes APi and checks if the car is locked, if not the kitchen AMP is turned on and the music server plays a sound file telling her to lock the bloody car! :) 

Cheers

Aaron

unread,
Jul 20, 2020, 4:20:53 AM7/20/20
to Loxone English
"An example of where I use this is certain members of our house are bad for locking the car when the arrive home so when they open the front door on the code touch Loxone polls our Integromat scenario which then goes out to Mercedes APi and checks if the car is locked, if not the kitchen AMP is turned on and the music server plays a sound file telling her to lock the bloody car! :) "
 
- I like this idea! :-)


Concerning Agile, I've had it for a few months and also looking to integrate it into Loxone. I started writing a picoC script to capture the current price and also the lowest price in the available dataset. I haven't made much progress but will share if/when I get it sorted.

The Integromat solution may prove better and easier so thank you for sharing.

On the topic of Agile, I saw the 'Octopus Watch' phone app recommended and can confirm its rather useful!

AaronP

unread,
Jul 22, 2020, 5:00:01 PM7/22/20
to Loxone English
Give me a shout if you do go Integromat and want any help along the way, used it for all sorts now and happy to assist where I can

Aaron

unread,
Jul 30, 2020, 7:40:20 AM7/30/20
to Loxone English
Thanks Aaron P - much appreciated. If you have any example Integromat configuration you can share demonstrating the linkage between Ocotopus and the Loxone MS, that would be greatly appreciated!

I feel obliged to use my RPi for this and brush up on Python, but after many months of not getting around to it, maybe a quicker to implement solution is the way forward; especially with so many other products now with their own API's.

cheers

Aaron

AaronP

unread,
Jul 31, 2020, 4:44:10 AM7/31/20
to Loxone English
Hi Aaron,

Just seen your other post around the actual charging point/cable etc. and your detailed response back to Rob.

If you have an RPi kicking about I'm not sure if you've heard of or used Node Red before but that could be a good solution and someone has already created the Loxone WS plugin/connector for Node Red. So you could make your API calls out to Octopus, on each returned response have some logic to calculate wether or not you want Loxone to turn on or off the car charger and dependent on the outcome the flow could trigger the API call to your Loxone miniserver to carry our the action accordingly. Would be worth making a quick call to the Miniserver to check the state of the outlet before carrying out any action and if the state = your desired state then do nothing, (i.e. if its already on then don't send the turn on command) else carry out the action

I don't have Octopus myself so I'm afraid I can't share any example configuration related to that but if you do get stuck at all give me a shout and I'm sure we could muddle through it together to achieve what you're looking for
Reply all
Reply to author
Forward
0 new messages