jmaferreira / homebridge-garage-door-shelly1

Homebridge plugin for a simple web-based garage
MIT License
9 stars 4 forks source link

Shelly UNI Extension #9

Closed 7weazel7 closed 2 years ago

7weazel7 commented 3 years ago

Hi, do you think you could extend the plugin with the Shelly UNI? :-) In principle, everything works now already. Only the polling of the status does not. Would be handy when you open the garage door times not via Homkit.

{
{
    "name": "Garage",
    "http_method": "GET",
    "openURL": "http://XXX.XXX.XXX.XXX/relay/1?turn=on",
    "closeURL": "http://XXX.XXX.XXX.XXX//relay/1?turn=on",
    "openTime": 17,
    "closeTime": 21,
    "autoLock": false,
    "autoLockDelay": 20,
    "polling": true,
    "pollInterval": 5,
    "statusURL": "http://XXX.XXX.XXX.XXX/status",
    "statusKey": "$.inputs[0].input",
    "statusValueOpen": "0",
    "statusValueClosed": "1",
    "statusValueOpening": "2",
    "statusValueClosing": "3",
    "debug": true,
    "accessory": "GarageDoorOpener"
}

Here the output of the status (http://XXX.XXX.XXX.XXX/status)

{
  "wifi_sta": {
    "connected": true,
    "ssid": "XXXXXX",
    "ip": "XXX.XXX.XXX.XXX",
    "rssi": -93
  },
  "cloud": {
    "enabled": false,
    "connected": false
  },
  "mqtt": {
    "connected": true
  },
  "time": "09:53",
  "unixtime": 1637398401,
  "serial": 3,
  "has_update": false,
  "mac": "XXXXXXXX",
  "cfg_changed_cnt": 0,
  "actions_stats": {
    "skipped": 0
  },
  "relays": [
    {
      "ison": false,
      "has_timer": false,
      "timer_started": 0,
      "timer_duration": 0,
      "timer_remaining": 0,
      "source": "input"
    },
    {
      "ison": false,
      "has_timer": false,
      "timer_started": 0,
      "timer_duration": 0,
      "timer_remaining": 0,
      "source": "input"
    }
  ],
  "inputs": [
    {
      "input": 1,
      "event": "",
      "event_cnt": 0
    },
    {
      "input": 0,
      "event": "",
      "event_cnt": 0
    }
  ],
  "adcs": [
    {
      "voltage": 0
    }
  ],
  "ext_sensors": {},
  "ext_temperature": {},
  "ext_humidity": {},
  "update": {
    "status": "idle",
    "has_update": false,
    "new_version": "20211109-131507/v1.11.7-g682a0db",
    "old_version": "20211109-131507/v1.11.7-g682a0db"
  },
  "ram_total": 49984,
  "ram_free": 36908,
  "fs_size": 233681,
  "fs_free": 146333,
  "uptime": 48743
}
7weazel7 commented 3 years ago

You can close this issue. The problem is fixed in this version: https://github.com/bydga/homebridge-garage-door-shelly1