We'd like to remind Forumites to please avoid political debate on the Forum... Read More »
Tapo p110 Switched on and off every 5 Minutes?


Such as if it is less than 20 deg C every 5 minutes a signal is sent to turn it on and if it is more than 20 deg C a signal is sent every is sent every 5 minutes to switch it off.
Since the propagator is indoors the temperature can be above 20 deg C for the whole day.
Will this cause any problems with the tapo p110 being told to switch off every 5 minutes even if it is off?
Comments
-
Can you not write into your code to check previous signal and only send a signal if the new signal is different to the previous one?1
-
Off when off, or on when on won't cause the hardware any problems.
As above my tapo 110's are connected using conditional statements,
ie.If temp > 20 degrees AND Tapo is on, then tapo = OFF
If temp < 20 degrees AND Tapo is off, then tapo = ON• The rich buy assets.
• The poor only have expenses.
• The middle class buy liabilities they think are assets.
Robert T. Kiyosaki0 -
vacheron said:Off when off, or on when on won't cause the hardware any problems.
As above my tapo 110's are connected using conditional statements,
ie.If temp > 20 degrees AND Tapo is on, then tapo = OFF
If temp < 20 degrees AND Tapo is off, then tapo = ONas at my age I can't code very well and usually get my son to do it but he is away at the moment, how do I convert your code so I can use it as I don't know how to get my pi to know whether the tapo is off or on?
This is what I have at presentif temperature >20p110.turnOff() #Sends the turn off requestsleep(600)else:p110.turnOn() #Sends the turn on requestsleep(600)
0 -
I think your using the wrong device. I think it's going to have a short lifespan because it uses a relay. Use a PID controller and an SSR instead.
I have the same setup for several hobby items, seed propogator, small toaster oven for fimo clay and low temperature enamel
and then upto the furnaces for melting metals that will reach 1800ºC.
The PID controllers are smart and over time they calculate how long it takes to heat back up to the set temperature and they keep the
temperature super stable. They are cheap also your only looking at low temperatures.Censorship Reigns Supreme in Troll City...0 -
forgotmyname said:I think your using the wrong device. I think it's going to have a short lifespan because it uses a relay. Use a PID controller and an SSR instead.
I have the same setup for several hobby items, seed propogator, small toaster oven for fimo clay and low temperature enamel
and then upto the furnaces for melting metals that will reach 1800ºC.
The PID controllers are smart and over time they calculate how long it takes to heat back up to the set temperature and they keep the
temperature super stable. They are cheap also your only looking at low temperatures.
However they are less than £10 so not all that expensive in the big picture and they tell me how much electricity I use.
Any suggestions for a replacement I can control with a raspberry pi and store electricity usage?0 -
Given at the Tapos are about £20 and a normal relay will act last for at least 100,000 cycles, Even 50 on-off cycles per day should still last about 6 years, then you just buy another one..
OP, does the thing that you’re measuring really have to be so accurate that you keep it within +/- half a degree of accuracy?
If you added some hysteresis (for example turning on below 18 and turning off above 22) You could hugely reduce the number of on off cycles per day?• The rich buy assets.
• The poor only have expenses.
• The middle class buy liabilities they think are assets.
Robert T. Kiyosaki0 -
The tapo's have a habit of failing after a year or so. SSR's are rated for millions of on/off cycles not 100,000's.
You can get the PID and SSR for under £20. You can control the SSR via an arduino or Pi also. Just removing the
Tapo from the circuit will increase reliability.
REX-C100's generally come in kits upto 400ºC and as I mentioned they are smart and can pulse the heat on and off
much faster than a relay without wear and tear issues whilst keeping the temperature exactly where you need it.
Use the Tapo but it stays on 24/7 and can measure the power used, best of both worlds and the Tapo not switching
on/off means it will last a lot longer.Censorship Reigns Supreme in Troll City...0 -
vacheron said:Given at the Tapos are about £20 and a normal relay will act last for at least 100,000 cycles, Even 50 on-off cycles per day should still last about 6 years, then you just buy another one..
If you added some hysteresis (for example turning on below 18 and turning off above 22) You could hugely reduce the number of on off cycles per day?They are currently £9.99 at Argos or £7.50 each in boxes of 4. The price of single p110s fluctuates a bit though, I got my last for £8.99.As regards the code I'd leave it. I does no harm and it's potentially a little more robust.0 -
I asked ChatGPT your question, and this is what it said:
To check whether the Tapo P110 is already on or off before sending a command, you need to:
- Retrieve the current state of the Tapo smart plug before issuing
turnOn()
orturnOff()
. - Only send a command if the state needs to change (i.e., avoid redundant API calls).
Assuming
p110.getState()
returnsTrue
if the plug is ON andFalse
if it's OFF, here's how you can modify your code:import time
while True:
current_state = p110.getState() # Check if the plug is on or off
if temperature > 20 and current_state:
print("Plug is already OFF, no action needed.")
elif temperature > 20 and not current_state:
print("Turning plug OFF...")
p110.turnOff()
elif temperature <= 20 and not current_state:
print("Plug is already ON, no action needed.")
elif temperature <= 20 and current_state:
print("Turning plug ON...")
p110.turnOn()
time.sleep(600) # Wait for 10 minutes before checking again
No reliance should be placed on the above! Absolutely none, do you hear?0 - Retrieve the current state of the Tapo smart plug before issuing
-
You could just try out ChatGPT's code and see whether it works. No guarantees, of course, but it's unlikely to cause a major calamity.
No reliance should be placed on the above! Absolutely none, do you hear?0
Confirm your email address to Create Threads and Reply

Categories
- All Categories
- 349.8K Banking & Borrowing
- 252.6K Reduce Debt & Boost Income
- 453K Spending & Discounts
- 242.7K Work, Benefits & Business
- 619.5K Mortgages, Homes & Bills
- 176.4K Life & Family
- 255.6K Travel & Transport
- 1.5M Hobbies & Leisure
- 16.1K Discuss & Feedback
- 15.1K Coronavirus Support Boards