switch.sh
Fri Dec 13 16:25:26 CET 2024
QUERY_STRING: shelly=shelly-40&id=0&generation=1&action=toggle&postAction=html
shelly: shelly-40
action: toggle
generation: 1
id: 0
postAction: html
shType: SHSW-L

http://192.168.12.140/relay/0?turn=toggle
  "ison": true,
  "has_timer": false,
  "timer_started": 0,
  "timer_duration": 0,
  "timer_remaining": 0,
  "source": "http"
http://192.168.12.140/status
  "wifi_sta": {
    "connected": true,
    "ssid": "viehai",
    "ip": "192.168.12.140",
    "rssi": -68
  },
  "cloud": {
    "enabled": false,
    "connected": false
  },
  "mqtt": {
    "connected": true
  },
  "time": "16:25",
  "unixtime": 1734103526,
  "serial": 426,
  "has_update": false,
  "mac": "98CDAC307B4F",
  "cfg_changed_cnt": 0,
  "actions_stats": {
    "skipped": 0
  },
  "relays": [
    {
      "ison": true,
      "has_timer": false,
      "timer_started": 0,
      "timer_duration": 0,
      "timer_remaining": 0,
      "source": "http"
    }
  ],
  "meters": [
    {
      "power": 0,
      "is_valid": false,
      "timestamp": 1734107126,
      "counters": [
        0,
        0,
        0
      ],
      "total": 0
    }
  ],
  "inputs": [
    {
      "input": 0,
      "event": "",
      "event_cnt": 172
    },
    {
      "input": 0,
      "event": "",
      "event_cnt": 0
    }
  ],
  "temperature": 42.31,
  "overtemperature": false,
  "tmp": {
    "tC": 42.31,
    "tF": 108.16,
    "is_valid": true
  },
  "update": {
    "status": "idle",
    "has_update": false,
    "new_version": "20230913-112054/v1.14.0-gcb84623",
    "old_version": "20230913-112054/v1.14.0-gcb84623",
    "beta_version": "20231107-163031/v1.14.1-rc1-g0617c15"
  },
  "ram_total": 51912,
  "ram_free": 38708,
  "fs_size": 233681,
  "fs_free": 162648,
  "uptime": 3343104