Coder Social home page Coder Social logo

hubitat-gogogate2's Introduction

Composite Driver for GoGoGate2 management in Hubitat

This is a composite driver for GoGoGate2 management in Hubitat. Features are:

  • Parent driver installs for GoGoGate device endpoint itself This allows:
    • Multiple door devices to detected/installed for a single GoGoGate2 (up to the supported three)
    • The lights to be controlled
    • Minimizes http requests to the device for polling
  • One child device presents doors as both door controls and switch controls, making Alexa integration simplier
  • The other child device reports temperature and battery readings for each sensor

Installation

  1. Add the door child device driver to Drivers Code on your Hubitat hub from https://raw.githubusercontent.com/mgroeninger/Hubitat-gogogate2/master/GoGoGate_child_door_driver.groovy
  2. Add the temperature child device driver to Drivers Code on your Hubitat hub from https://raw.githubusercontent.com/mgroeninger/Hubitat-gogogate2/master/GoGoGate_child_temp_driver.groovy
  3. Add the parent device driver to Drivers Code on your Hubitat hub from https://raw.githubusercontent.com/mgroeninger/Hubitat-gogogate2/master/GoGoGate_parent_driver.groovy
  4. Create a Virtual Device (under devices) of type "GoGoGate 2 Parent"
  5. Fill in the ip address of your GoGoGate2 device, as well as the username and password you use to access it and save the preferences
  6. Optionally, change the child device labels to name you would like to use

Note: The driver simulates "opening" and "closing" states when a door is opened or closed using Hubitat but does not have any way to simulate those states when a door is opened or closed with the door button itself.

Credits/Development Progression:

hubitat-gogogate2's People

Contributors

mgroeninger avatar

Stargazers

 avatar

Watchers

 avatar  avatar

hubitat-gogogate2's Issues

Unable to Import Parent Driver in Latest Hubitat

Hubitat Version : 2.3.4.119

Error on Import
No signature of method: Script1.definition() is applicable for argument types: (java.util.LinkedHashMap) values: [[name:Environmental Comfort, namespace:env_comfort, author:Matt Groeninger, ...]] on line 19

Not quite sure what to do.

Looks great - iSmartGate support?

Hi,

UPDATE 2 Hi mate - I've done some very quick and dirty hacks to the files and have it working for me now - forked here: https://github.com/scrytch/Hubitat-iSmartGate

This looks great but wondering if it will work with the new iSmartGate from the same manufacturer (Remsol) ?

At the moment I install the parent driver, fill in the details etc it doesn't create the child devices.

Debug log looks like this - note the temperature sensor error is when I hit the "Recreate child devices" button in the parent driver.

UPDATE 1: I have wired door sensors not wireless - so they don't support temperature or battery - how can I remove this code?

`dev:4232019-09-06 11:45:49.644 am debugGoGoGate2 -- Raw status info is: '{"1":"0","2":"0","3":"0"}'

dev:4232019-09-06 11:45:49.643 am debugGoGoGate2 -- Response from GoGoGate 2 was: {"1":"0","2":"0","3":"0"}

dev:4232019-09-06 11:45:49.537 am debugGoGoGate2 -- Light status is off
dev:4232019-09-06 11:45:49.534 am debugGoGoGate2 -- Response from GoGoGate 2 was: 0
dev:4232019-09-06 11:45:49.464 am debugGoGoGate2 -- Refresh tick
dev:4232019-09-06 11:45:47.823 am warnGoGoGate2 -- Invalid sensor temperature of -1000.0 °C .

dev:4232019-09-06 11:45:47.821 am debugGoGoGate2 -- Raw sensor info is: ["-1000000","-1000000"]

dev:4232019-09-06 11:45:47.812 am debugGoGoGate2 -- Response from GoGoGate 2 was: ["-1000000","-1000000"]

dev:4232019-09-06 11:45:47.770 am warnGoGoGate2 -- Invalid sensor temperature of -1000.0 °C .

dev:4232019-09-06 11:45:47.769 am debugGoGoGate2 -- Raw sensor info is: ["-1000000","-1000000"]

dev:4232019-09-06 11:45:47.767 am debugGoGoGate2 -- Response from GoGoGate 2 was: ["-1000000","-1000000"]

dev:4232019-09-06 11:45:47.709 am warnGoGoGate2 -- Invalid sensor temperature of -1000.0 °C .

dev:4232019-09-06 11:45:47.706 am debugGoGoGate2 -- Raw sensor info is: ["-1000000","-1000000"]

dev:4232019-09-06 11:45:47.705 am debugGoGoGate2 -- Response from GoGoGate 2 was: ["-1000000","-1000000"]

dev:4232019-09-06 11:45:47.650 am debugGoGoGate2 -- Parent deleteChildren
dev:4232019-09-06 11:45:47.649 am debugGoGoGate2 -- Parent recreateChildDevices`

Thanks,
Shane.

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.