Sonoff iFan04-L (and probably iFan03): slight improvement #2056
Replies: 4 comments 3 replies
-
Version with all whitespace removed: {"c":{"io":[[[9,12,14,15,13],2],[[0],6]],"z":12,"r":[{"n":10,"s":9600,"l":[8,8]}],"l":13,"b":[{"g":0,"t":5}]},"a":[{"t":65,"e":3,"0":{"r":[{"g":15},{"g":12},{"g":14}]},"y0":[{"v":1,"0":{"r":[{"g":15,"v":1,"i":0.5},{"g":12},{"g":14,"i":0.6}]}},{"v":2,"0":{"r":[{"g":15,"v":1,"i":0.5},{"g":12,"i":0.6},{"g":14,"i":0.6}]}},{"v":3,"0":{"r":[{"g":15,"v":1},{"g":12},{"g":14,"v":1}]}}],"es":[{"s":1,"1":{"r":[{"g":9}]},"0":{"r":[{"g":9,"v":1}]},"b":[{"g":0}]}]},{"t":80,"h":0,"n":24,"pt":[["AA",5]],"dt":[2,0],"y0":[{"v":260,"r":1,"0":{"m":[[7002,1]]}},{"v":517,"r":1,"0":{"m":[[7002,1]]}},{"v":6,"r":1,"0":{"m":[[7001,1],[-2]]}},{"v":263,"r":1,"0":{"m":[[7001,1],[-2,1],[-2,101]]}},{"v":520,"r":1,"0":{"m":[[7001,1],[-2,2],[-2,101]]}},{"v":777,"r":1,"0":{"m":[[7001,1],[-2,3],[-2,101]]}},{"v":1034,"r":1,"0":{"m":[[7001,1],[-1,4]]}},{"v":265,"r":1,"0":{"m":[[7004,1]]}},{"v":266,"r":1,"0":{"m":[[7003,1]]}}]},{"h":0,"i":0.1,"1":{"u":[{"v":"AA550104000005"}]}},{"h":0,"i":0.1,"1":{"u":[{"v":"AA550101000002"}]}},{"h":0,"i":0.1,"1":{"u":[{"v":"AA550107000008"}]}},{"h":0,"i":0.1,"1":{"u":[{"v":"AA550106000007"}]}}]} |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
My only modifications to the script in the Devices Database page are:
Everything else is unchanged from the previous script, including whatever behavior those buttons have/had. I actually don't know what those buttons do, except for (I believe) the bottom left one which you marked as "doble press", which disassociates the remote from the RF controller in the unit, necessitating pairing it again after killing power to the iFan04-L. (This is especially painful for the two units I have on our second floor, which are on the same breaker.) |
Beta Was this translation helpful? Give feedback.
-
Hi @mruffalo, I'm new to the HAA, I not even install any device yet but I'm a Apple Home user and I want to flash my iFan-04L, but I did not find any tutorial or guide on how to do it, do you know any? I was very confuse with the tasmota an ESP firmware and I was afraid to brick the device but seems posible to do it. I have 2 devices working with AMZ Alexa, but I hate that it does not have multi home for the same account, the worst. And google Home its not very useful in my country. Thanks, I would really appreciate your help. |
Beta Was this translation helpful? Give feedback.
-
Hello-
First, thank you @RavenSystem for the fantastic firmware; I've installed it on four iFan04-L devices and it works perfectly; it's great to have native HomeKit control of a ceiling fan and light without pulling new wire through walls and ceilings.
I made a slight improvement to the iFan03/iFan04 script listed under the Devices Database page, and wanted to share.
This adds the
"e"
option to set the total number of speed steps to 3, and adjusts both mappings:to use values 0 → 3 instead of 0 → 100. In my opinion this is a much better user experience than allowing any value from 0 → 100 with "hidden" thresholds corresponding to the three actual speeds implemented in the device's hardware.
I've tested this on the four iFan04-L devices I've installed, under firmware 12.4.4, and it works very well from both Apple Home and the RF remotes. I did have to reset the HomeKit ID, delete the devices from Home, and re-add them though -- otherwise the Home app still considered the devices to have 100 breakpoints, with 1%, 2%, and 3% corresponding to the three fan speeds 😅
Beta Was this translation helpful? Give feedback.
All reactions