GithubHelp home page GithubHelp logo

hubitat-modernforms's Introduction

hubitat-ModernForms

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.
You now have a new device. In the device settings, enter the IP address of the fan as xxx.xxx.xxx.xxx. You can probably find this in your routers device list. Mine show up with a device name of MXCHIP. If you have the fans registered in the Modern Forms App, you can find the IP there as well under the fans properties. If you have the capability to assign a static mapping to the fan (instructions vary by router) it will make your integration more stable.

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.

hubitat-modernforms's People

Contributors

gjunky avatar apivzero avatar

Stargazers

 avatar Valdis Rigdon avatar  avatar Philip McGrath avatar Monty avatar Trey Keenon avatar Lars Plougmann avatar Manuel Philipose avatar Roy Ivy III avatar

Watchers

 avatar Monty avatar  avatar

hubitat-modernforms's Issues

Issue with google home

First of all, thank you for your work on this. I have this code installed and working with two fans. In fact, I made the decision to buy these fans based on the fact that this code existed, so thank you!

Here's where I'm having trouble: All control within hubitat works great. However, when I try to add these devices to the Google Home App or Assistant, I get this error in the Hubitat Logs: "The following devices are not supported by Google Home and will be removed from your device list:[Loft Fan]"

I've been trying to narrow down the issue on my own, but I'm a bit over my head. At first I thought it was the capabilities being presented by the driver, but I tried messing with different variations and still can't get it to be recognized.

I also tried to break the fan and light features apart into two separate drivers. However, this also still fails in google home.

I'm wondering if this is something you have the ability to test and troubleshoot?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.