I’ve never done that but I think it should be easy enough with an automation. you could either use a timer entity and start the timer with the desired time duration and turn off the fan when the timer is finished.
Or you could do it with a delay in the automation but I think that needs to be hard coded into the automation. So option one would be better.
You could set the timer duration with an input datetime, input number or input slider. for the input number or input slider you will need two - one for hours and one for minutes since minutes can’t be more than 59 (I think…).
OK, looks like I’m back to the research but I figured it wouldn’t hurt to ask. I think I need to create something that has the timer entity and then change my existing automation to check that timer entity and if set run for that duration and then turn off.
I’ve just released an update to the plugin based ion this (very old ) issue. I’m really sorry about letting that one slip under the radar for so long…
But it fixes a bug from when I updated it to work with my iFan02 flashed with ESPHome which needed the state (on) to be sent along with the speed command.
I didn’t realize that it would break functionality for other fans,
This update adds an option “sendStateWithSpeed” (which defaults to false) to maintain that functionality for fans that still need it but should restore functionality to those that don’t.
If you update and everything still works then great! You have nothing else to do.
If you find your speed buttons don’t work (especially if you use ESPHome) try adding the new config option back in and everything should then work just like it did before the update.
I’m facing iFan03 problem with latest Tasmota (8.1.0) and MQTT
My OFF button is disabled and doesn’t send stat/RESULT = {“FanSpeed”:0}
All other buttons send correct speeds (1 for LOW, 2 for MID and 3 for HIGH)
When I try to set “off” from dropdown menu in entity view, works fine. The problem is only with button.
I was just on the verge of closing that other issue and didn’t want you problem to be lost.
But on to your issue…
I don’t know if tasmota has changed anything with the code (I use 6.1.1 I think) but I don’t think it should have changed the basic functionality of the iFan03.
Could you post your code that you have for the iFan03 from HA?
The plugin won’t send stat/RESULT when you click the button. It should send “fan.turn_off” service to your entity_id. Then HA will send a command with 0 in the payload to your speed topic (cmnd/YOUR_TOPIC/FanSpeed) via your MQTT broker. Then when the fan turns off the fan will send a response to the broker to the state topic (stat/YOUR_TOPIC/RESULT) with a {“FanSpeed”: 0} in the payload. and the HA receives that message and sets the state of the fan to off.
At least that’s how mine works.
Do you have an MQTT sniffer to see what the messages are that get sent around when you turn on & off your fan? if not I recommend MQTTFx.
Do you mind sharing your config to get this working with a Lutron fan switch? I’m struggling to understand which parts of the provided config I need to update.
Go into the view you want and create a new “Entities” card. Use this as the config but make sure to change your fan entity. You can customize it using the documented theming on the github page.
entities:
- customTheme: false
entity: fan.master_bedroom_ceiling_fan
name: Ceiling Fan
type: 'custom:fan-control-entity-row'
show_header_toggle: false
title: Fan
type: entities
I didn’t have much time to investigate but I was wondering if it’s easy to add another speed to the row? The lutron fan switch has speeds Low, Medium, Medium High, High.