Thanks to those who replied.
The single quotes were inserted by HA not me in the Automationâs form so I am assuming they are correct and they are also in the Turn Off.
I have made a change that I am testing today.
I noted that the main difference between the âTurn Offâ to the âTurn Onâ was the conditional AND so included that just to test.
- id: '1621026002356'
alias: Master Bedroom Fan Turn-On
description: Turn on MB Fab when kitchen temp above 25C
trigger:
- platform: numeric_state
above: '25'
for: 00:01:00
entity_id: sensor.indoor_temperature
condition:
- condition: and
conditions:
- condition: state
entity_id: fan.sonoff_1000f6e1ca
state: 'off'
action:
- service: fan.turn_on
target:
entity_id: fan.sonoff_1000f6e1ca
data:
percentage: 33
If this change works then I will be happy but still confused.
If it does not then I will then try the 25.0 to test that suggestion.
hereâs hoping something does.
just so I donât have to wait until mid morning I have changed the Turn On temp trigger to 21 rather than 25. It should make no difference in logical terms, just quicker to test.
I can now report that the Automation did trigger at 25C. I cannot explain why adding the condition made it work but it did.
If someone can enlighten me then I would be grateful for the information.
I will leave it on the bench until my Hand Held Digital Tacho turns up so I can check RPM of the three speeds.
I want to be sure that the capacitors are working as they should.
Google Assistant works but is a bit tricky.
In order for GA to get it straight you must leave the word FAN out of the naming of the Light or in other words you must name it âMaster Bedroom Lightâ rather than âMaster Bedroom Fan Lightâ
If you donât and you ask GA if the MB Fan is on it will tell you the Light Status rather than the FAN.
Yeah GA is a bit dumb that way, maybe in the futureâŚ
Well I might have found a possible explanation.
Today I decided to move the iFan03 off my test bench to itâs real location on the Master Bedroom Ceiling Fan.
The automation had triggered for the day.
However when I connected the iFan03 to the Fan and switched the circuit breaker back on this is what I noticed.
Prior to the install I had disabled the turn on & off Automationâs.
After power reapplied
I tested the functionality with the 433MHz remote.
Fan speed 1, Fan Speed 2, Fan Speed 3 and stop fan. All Good here.
Light not used.
I then tested WiFi functionality with HA doing the same as above.
I also tested Google Assistant and it worked as it did on the bench.
I now re-enabled the automations for on/off.
Now it did not trigger!
I wonder if the single mode has anything to do with it?
I am not sure I understand this
What are your thoughts?
The âsingleâ mode just means that the automation can only run one thread at a time. I.E. if the automation gets triggered then while the automation actions are still running if another trigger occurs during that time the second trigger is ignored.
Usually this would only have any noticeable effect for automation actions that have built-in delays.
Since your automation is literally a milliseconds long action then the single mode wouldnât have any impact.
And, TBH, you wouldnât want this automation to run in any other mode.
You are sure that the automations states are indeed âonâ in the dev tools states page?
Also, Iâve seen some weirdness before using numeric state triggers. So much so that I tend to avoid them and just use template triggers instead.
You could try that and leave out the condition to see if it triggers that way.
OH, also, what size caps did you end up using and how were the speeds?
Thank you for explaining that. It was what I thought but was never sure.
Yes The Automation state is âOnâ in dev tools.
Templates are something that are foreign to me. I would like to learn them but never really found something that I could understand enough to try them.
Could you give me a âFor Exampleâ on this situation please. Once I get an idea in a practical sense I can usually learn from that. I would appreciate that.
I would like to try the templates and then remove the condition if possible.
Capacitors?
I did not have to adjust them as I am in Australia which uses 240V mains so the fitted capacitors were OK for me.
I also was using a ceiling fan that is 38 years old (original when we built the house) and itâs controller box was a transformer with a wafer switch, 5 speed settings and an off position. No Capacitors.
The fan motor was perfectly functional incl. bearings so did not see the need for a new fan. Maybe someday?
The controller was a bit sad due to UV effects on the plastic so hence the targeting.
I have even got Google Assistant to change speeds from Low to medium to high using voice commands on a Google Nest Hub Gen 2.
First Test select automation.trigger and that automation entity_id then click âcall serviceâ does the fan turn on?
Yes âskip conditionsâ box and turn the toggle to the right off then run the service again. Does the fan turn on?
Yes
OK, I really donât know what that means?
Some minutes later
BTW as the indoor temp is now 25.8 the turn off automation triggered
I am not quite sure what you mean you are seeing the temperature go below 26.0 and then above 26.0 and the fan does not turn on?
What I am seeing is that as the indoor temperature rises in the morning and goes above 26 for 1 minute the turn on Automation triggers and turns the fan on.
As the temperature goes down in the evening below 26 for 1 minute the turn off automation triggers.
However if, for whatever reason, I manually turn off the fan by 433MHz or in HA; then if the temperature is > 26 the turn on automation does not trigger. I am wondering if it should? Is this what itâs supposed to do and I am chasing my tail?
Yes the Turnoff was expected.
I wanted to have the fan turn on >26 and turn off < 26
26 is just a number I picked for testing. I will fine tune that number as time goes on.
In summer I run and air conditioner in the room set at 25. This works more efficiently if the fan is running on low speed.