I am about half way done and having lots of fun in learning and applying device handler code. I have just about finished with making all the changes that I was suggesting.
Update: My hub decided to āgo on vacationā this morning causing a little slow down in me getting the device handler finished. Tech Support is on it.
And Iām an idiotā¦ Thought I had tried that, but apparently not. Got it working now. Maybe Iāll get the hang of all this eventually and stop asking stupid questions.
When you press the tiles a second time it isnāt acting as you would think for the indications or the action controls.
@ranga I am needing some help on the zigbee commands please.
I see for example that you defined fanOne to be the command for low speed using the zigbee string with the final parameter being {01}. And each speed has its own parameter {02}, {03} etc.
You didnāt define {05} or {07} etc.?
I need to define a command that mimics when I press the On-Off button to toggle ON, the same for Dimming the light. I am guessing it is one of those? You defined one for OFF but not ON and nothing for changing the light levels. Sorry for any improper language but just trying to learn so I can add another function to the handler.
I guess it doesnāt hurt to experimentā¦ I can just define some new commands with those zigbee strings and see how the device responds.
Update: Just finishing up the rework on your device handler , Iām running down a little bug on the mobile appās nextState function I believe but it should be done in just a little bit here.
I am just about finished with my testing of the rework of @ranga original alpha device handler to make it more like the way I want to see and operate the fan. I added all my custom icons to match the wireless remote and the device handler is more of a match in operation like the wireless remote. Thanks to @ChadCK@johnconstantelo for their GE Smart Fan device code so I redid the main tile so itās primary function isnāt displaying the light now but it is all about the fan speeds indications with the slider only for control of the light. All these changes allowed it to not simply match the remote but it is more like what I have already with my other ceiling fan GE Smart Fan device handler.
So Iām having some issues still with this. The first day I hooked it up, everything worked fine, I could control from SmartThings perfectly fine.
Since then though Iām unable to control the fan and am getting very intermittent updates in SmartThings. I have another Zigbee device thatās about the same distance from the hub but has less walls/ceiling/insulation to travel through (fan is on a vaulted ceiling, other device is a contact sensor in the same room on a door).
Any ideas? Was going to try resetting the hub to rebuild the Zigbee mesh, but figured Iād ask if there were any other ideas.
@Fredbob711 can you send me the fan related logs from the IDE? Unfortunately there is no easy way to determine what the signal strength is. But if there is something apparent from the logs, I might be able to debug. To get info from the fan, hit the refresh button on the device handler and see what it produces in the log.
Try placing a powered zigbee device in between your ST and the fan and see if it helps.
If nothing else works, remove the fan from ST and re-add it.
I am looking forward to adding a device health capability as soon as ST releases some documentation on it.
Iāll send the logs once I get it added back into SmartThings.
I added an Iris Smart Plug in between the hub and the fan and no dice. I removed the fan from SmartThings, but now Iām having trouble getting it added back in. Iām wondering if the fan wiring has a loose connection. Tomorrow I might have a chance to pull the ladder back out and double check all the connections.
This is great @dalec! Your changes are perfectly inline with my interface/control preferences. I doesnāt look like @ranga has published your changes yet. Iād love to give them a try if youāre willing to PM me the code.
@ranga - Iām still having the same issues as @Fredbob711. Iāll dig up my logs and send them over to you also. My fan is a floor above my hub. But otherwise not terribly far away (probably no more than 25 ft).
Maybe itās me, as Iām far from well-versed in this, but it looks like the initial metadata/definition line and opening bracket are missing on the Github code? But again, I may just be doing it wrong