Check heating status and power plug

Hi everyone!

I’d like to do the following two things and can’t figure out how to do it. Maybe you guys here could help me?

  1. I’d like to check in a certain timeframe if my heating system (tado) is in away mode and send some actions to IFTTT. With my old home automation supplier (Conrad Connect) I had the possibility to use tado heating as a sensor to check if it is home or away mode at a certain time.

  2. Also in a certain time frame i would like to check if a certain power plug (myStrom) is on and then send some action to IFTTT. Same Problem here: I can’t figure out a way in Apilio to check if the power plug is on or off, maybe I’m overlooking something or is there a way in combination with a ohter service?

Thanks for any help and happy “Apilio”…

1 Like

If the plug is a Tuya device, define a condition that triggers when the device switches on, and another that triggers when it switches off. On switch on, implement a logicblock that sets a Boolean variable “plug_on” to TRUE; on switch off, trigger a second logicblock that sets the same variable to FALSE. You can set variables via a webhook call (come on Apilio–implement setting them direct soon!)–look at the “how to update this variable” in the variable definition to copy the required code).
If you then create a further condition to test if plug_on is TRUE, you can act on this as required–if you only want this to action events within a certain time window, create another condition that defines this time window and only action events if both conditions are true.

I don’t have a tado system, but looking at the IFTTT documentation for this, you can trigger IFTTT events when the system goes into away mode or home mode:

tadoº Heating works better with IFTTT

Create two IFTTT applets, one triggered when you go into each mode, and in the THEN definitions set an Apilio Boolean variable “away_mode” to TRUE or FALSE. You can then define a condition in Apilio to test the status of this variable, and act accordingly.

The other way of dealing with the smart plug is also to act on device status switching from IFTTT rather than from Apilio, so if you can get an ON/OFF trigger from this device with IFTTT, you can define an applet for each of ON and OFF, and use the THEN action to set an Apilio Boolean variable TRUE or FALSE from there. This would have the advantage of not needing to use slightly obscure webhook calls, but depends on what IFTTT support you have for your plug,

Good luck!

1 Like

I have a tado smart thermostat, and I use it to control presence at home. There is no direct integration with Apilio, so you need to use IFTTT.

I have two IFTTT applets:

  • IF “Tado switches to Home mode” THEN “Update Aplio boolean variable Tado_AwayMode to FALSE”
  • IF “Tado switches to Away mode” THEN “Update Aplio boolean variable Tado_AwayMode to TRUE”

(you can ignore Vybit, that is used to receive a notification)

In Apilio, I have 2 conditions based on that variable:

  • Condition Tado_AwayMode: Tado_AwayMode is TRUE (Trigger condition option unchecked)
  • Condition Tado_AwayMode _trigger: Tado_AwayMode is TRUE (Trigger condition option checked)

Now you can use those 2 conditions in your logicblocks easily to execute Apilio or IFTTT actions.

The ‘Tado_AwayMode_trigger’ condition lets you trigger a logicblock whenever Tado switches Home/Away (e.g. turn off all lights when Tado_AwayMode_trigger goes FALSE), while the Tado_AwayMode conditionn lets you control logicblocks based on presence (e.g. I only get motion notification in my mobile if Tado_AwayMode is True)


Thank you guys for the quick help, but I already knew that. Maybe I did not explain it good enough, sorry for that!

Again: What I would like to check is if tado already is in away mode rather than act upon the trigger “if tado switches to away mode”. For example: I’m already away from home and tado already is in away mode, so the trigger “if tado switches to away mode” in IFTTT is already “gone”. In Conrad Connect which I used to use to date I was able to check the status of tado and act upon it. That way I was able switch my hue lights off at certain times, if tado was in away mode…

Same Scenario goes with the power plug: I do not want to act on “if mystrom device switches to on”, I would like to check the status and act upon it. For example: If the wifi plug which powers my home entertainment system IS on, then switch off a specific hue light.

Many thanks for all your help!

1 Like

Have a look at what @teknofilo and I wrote. As suggested by each of us, the triggers are only used to set the status of Apilio variables. You then can read these at any time, not just when the status changes, and can act on them as required.

1 Like

I already explained that. Update a boolean variable in Apilio whenever Tado switches via IFTTT. That variable will obviously keep its value until next change. Check that boolean variable via a condition whenever you need to execute an action based on Tado being away or home.

1 Like

Thanks, now I understand