First attempt on writing a device driver for hubitat. In this case for the Modern Form Fans
Note: Setting the speed will not change the on/off of the Fan. You need to set the Speed to "on" to turn it on. This allows you to change the speed without affecting the state of the fan
To Install: You will need to install them in the Modern Forms app first as this will alow you to pair the fan with your WiFi network. This is cloud based but once that is done, further control through this driver will be local.
- In Hubtat --> Driver Code - New Driver
- Copy/Paste the ModernFormsFan.groovy content (RAW format)
- Click Save
- In Hubtat --> Devices --> Add Virtual Device
- Enter a Device Name (ie: Living Room Fan). This needs to be unique
- Select the Type --> (under user) Modern Forms Fan and pick the one you just installed.
Update 2019-12-11: I added two separate devices in case you just want the Fan or just the Light. This might make it possible to integrate it into Google Home (not tested yet). Both work as a dimmer with a level from 0-100 (0 turns the fan off but leaves the prior speed setting). For the fan speed, the calculation is speed / (100 / max speed )
. Thus setting speed to 33, sets the fan to speed 2 2 = 33 / (100 / 6)
as 6 is the max speed of the fans at the current time, and the answer is rounded down to the nearest integer.
Repeat the virtual device steps above for any additional fans
Please let me know how this works for you.