We'd like to remind Forumites to please avoid political debate on the Forum. This is to keep it a safe and useful space for MoneySaving discussions. Threads that are - or become - political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.

Home automation for Agile

Archerychick
Archerychick Posts: 323 Forumite
Eighth Anniversary 100 Posts Name Dropper Combo Breaker
Hello!

I’ve ended up down a rabbit hole 😂.

Ive got an oil filled radiator which is in a smart plug, I’ve been using the Alexa re outlines to set a time for this to go on and off based on energy prices, which got me to thinking.

can I automatically have it switching on when energy reaches a certain cost and off when it rises above a set cost. I have found  https://ifttt.com/explore but I can’t for the life of me work out how I would do this integrating with my smart plug which is an Amazon Alexa device.

has anyone done this? If so how? Thank you!

Comments

  • FreeBear
    FreeBear Posts: 16,777 Forumite
    Ninth Anniversary 10,000 Posts Name Dropper Photogenic
    edited 13 April at 9:31PM
    A couple of links for you...

    If you want another rabbit hole to disappear down, I can recommend Home Assistant. I'm using it with a bunch of smart home stuff based on the ESP32 chipset which is found in a lot of smarts. Light switches was the first to get flashed, and now I've gone and bought some mains powered boards with 10A relays attached. Sonoff Basic is also a neat little product if you just want a relay and no IO.
    HA has an integration for Agile, so would be trivial to set up an automation that is triggered with a fall in price. And having everything in-house, you are not reliant on continued support from the likes of Google or Amazon.


    Her courage will change the world.

    Treasure the moments that you have. Savour them for as long as you can for they will never come back again.
  • Archerychick
    Archerychick Posts: 323 Forumite
    Eighth Anniversary 100 Posts Name Dropper Combo Breaker
    FreeBear said:
    A couple of links for you...

    If you want another rabbit hole to disappear down, I can recommend Home Assistant. I'm using it with a bunch of smart home stuff based on the ESP32 chipset which is found in a lot of smarts. Light switches was the first to get flashed, and now I've gone and bought some mains powered boards with 10A relays attached. Sonoff Basic is also a neat little product if you just want a relay and no IO.
    HA has an integration for Agile, so would be trivial to set up an automation that is triggered with a fall in price. And having everything in-house, you are not reliant on continued support from the likes of Google or Amazon.


    Thank you! I found that one but I guess I couldn’t get it to work because Alexa support has been removed. I’ll take a read of the other link in more detail tomorrow, and yes thanks for the other potential rabbit hole 😆🫣
  • FreeBear
    FreeBear Posts: 16,777 Forumite
    Ninth Anniversary 10,000 Posts Name Dropper Photogenic
    edited 15 April at 9:11AM
    Archerychick said: thanks for the other potential rabbit hole 😆🫣
    About to order a natty little 4" LCD display with an ESP32 inside - Going to use it as a graphical front end for thermostat control linked to my Home Assistant system. A couple more rabbit holes to jump down if you want to follow...
    https://www.openhasp.com - For the display.
    https://esphome.io/index.html - For all your other smart sensors & controls.
    https://github.com/FreeBear-nc/esphome-opentherm - Gratuitous plug for an ESP32 based boiler control  :)




    Her courage will change the world.

    Treasure the moments that you have. Savour them for as long as you can for they will never come back again.
  • wrf12345
    wrf12345 Posts: 666 Forumite
    Sixth Anniversary 500 Posts
    I had an electric heater that switched on and off via relays (three levels of heat), the relays powered by a small solar panel on the outside wall (12V relay for turning on and off a 240V switch), to roughly match the then free solar on the roof that had been fitted, so when the sun shone the heater came on. Worked but the relays turned off at a different voltage so it was still running when there was not enough electric for free heat. No circuits just the heater rewired with the relays inline. All good fun.
  • mmmmikey
    mmmmikey Posts: 2,002 Forumite
    Part of the Furniture 1,000 Posts Homepage Hero Name Dropper
    Hi - another Home Assistant fan here - hours of fun or frustration depending on your mindset. I've just reconfigured my installation based on the experience of using it for a year or so to control heating, hot water, curtains, blinds, lights and Sonos speakers. The more I automate with it the more I want to. 

    I'm not on Agile at the moment - Tracker was better for me over the winter because of the need for peak time electricity for heating, and Flux is better for me than Agile over the summer because I import very little and export loads. I have solar panels and a battery system upgrade means I can export when the rates are best.

    I did have Agile rates controlling things like water heating times last year, and expect to go back to it next winter now I have enough battery capacity to avoid peak time imports. I started using IFTTT but found that it wasn't really responsive or robust enough to rely on to control all my heating / hot water. So I wrote my own Python scripts to get the Agile data directly from Octopus and put it into Home Assistant using webhooks. This resolved the problems of using IFTTT and worked flawlessly once it was all set up and working.

    My current project involves setting up a separate Raspberry Pi running Node Red, Mosquitto, Influxdb and ESPHome for energy and tariff monitoring. I'll use that to generate an optimised schedule for the following day and load it into Home Assistant each evening. Not doing anything I couldn't do in Home Assistant directly. I'm doing it that way to keep Home Assistant simple and robust as it now forms a critical part of my home heating system and I don't want to break it whilst playing with home made sensors and the like. I'm also in the final stages of making my solar generation meter provide the same data as my smart meter, using an ESP32 board and pulse counter. The good news is it's raining heavily here today so I have a good excuse to play with it rather than do anything useful.

    Hours of fun - and should all pay for itself just in time for my 122nd birthday :-) :-) :-)

    @Archerychick a suggestion would be to invest a tenner or so in a Tapo P110 smart plug which you can control easily from IFTTT. If you get bitten by the bug you'll find it easy to integrate into pretty much any smart home automation system, and if not it's handy anyway as a robust and reliable timeswitch / energy monitor :-)

    @FreeBear have just bookmarked your GitHub page and will explore with interest later :-)
  • FreeBear
    FreeBear Posts: 16,777 Forumite
    Ninth Anniversary 10,000 Posts Name Dropper Photogenic
    mmmmikey said: My current project involves setting up a separate Raspberry Pi running Node Red, Mosquitto, Influxdb and ESPHome for energy and tariff monitoring.
    Tip, do not use SDHC for the databases - I found the cards lasting a matter of months before dying. Now use a dedicated low power x86 box as a data store. Will eventually migrate HA across to it once I'm shot of some Nexus 433MHz sensors.
    Her courage will change the world.

    Treasure the moments that you have. Savour them for as long as you can for they will never come back again.
  • Archerychick
    Archerychick Posts: 323 Forumite
    Eighth Anniversary 100 Posts Name Dropper Combo Breaker
    mmmmikey said:


    @Archerychick a suggestion would be to invest a tenner or so in a Tapo P110 smart plug which you can control easily from IFTTT. If you get bitten by the bug you'll find it easy to integrate into pretty much any smart home automation system, and if not it's handy anyway as a robust and reliable timeswitch / energy monitor :-)

    Thank you! I have some other Tapo devices (cameras) and they have always been robust, thanks for the suggestion 
  • mmmmikey
    mmmmikey Posts: 2,002 Forumite
    Part of the Furniture 1,000 Posts Homepage Hero Name Dropper
    FreeBear said:
    mmmmikey said: My current project involves setting up a separate Raspberry Pi running Node Red, Mosquitto, Influxdb and ESPHome for energy and tariff monitoring.
    Tip, do not use SDHC for the databases - I found the cards lasting a matter of months before dying. Now use a dedicated low power x86 box as a data store. Will eventually migrate HA across to it once I'm shot of some Nexus 433MHz sensors.

    Thanks :-) I'm using SSDs for the Pi's which are cheap as chips now. I have 3 Pi's - one running Home Assistant, another running Open Media Vault and the one that I'm building at the moment for Node Red etc. All powered by a couple of mobility scooter batteries which get charged up each night, and all backed up daily. So should be suitably resilient. All good fun!
Meet your Ambassadors

Categories

  • All Categories
  • 347.2K Banking & Borrowing
  • 251.6K Reduce Debt & Boost Income
  • 451.8K Spending & Discounts
  • 239.5K Work, Benefits & Business
  • 615.3K Mortgages, Homes & Bills
  • 175.1K Life & Family
  • 252.8K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16K Discuss & Feedback
  • 15.1K Coronavirus Support Boards

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.