switch.sh
Sun Dec 8 10:49:31 CET 2024
QUERY_STRING: shelly=shelly-24&id=0&generation=1&action=toggle&postAction=html
shelly: shelly-24
action: toggle
generation: 1
id: 0
postAction: html
shType: SHSW-1

http://192.168.12.124/relay/0?turn=toggle
  "ison": true,
  "has_timer": false,
  "timer_started": 0,
  "timer_duration": 0,
  "timer_remaining": 0,
  "source": "http"
http://192.168.12.124/status
  "wifi_sta": {
    "connected": true,
    "ssid": "viehai",
    "ip": "192.168.12.124",
    "rssi": -73
  },
  "cloud": {
    "enabled": false,
    "connected": false
  },
  "mqtt": {
    "connected": true
  },
  "time": "10:49",
  "unixtime": 1733651371,
  "serial": 1,
  "has_update": false,
  "mac": "98CDAC2DF411",
  "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": true
    }
  ],
  "inputs": [
    {
      "input": 0,
      "event": "",
      "event_cnt": 803
    }
  ],
  "ext_sensors": {},
  "ext_temperature": {},
  "ext_humidity": {},
  "update": {
    "status": "idle",
    "has_update": false,
    "new_version": "20230913-112003/v1.14.0-gcb84623",
    "old_version": "20230913-112003/v1.14.0-gcb84623",
    "beta_version": "20231107-162940/v1.14.1-rc1-g0617c15"
  },
  "ram_total": 51688,
  "ram_free": 39088,
  "fs_size": 233681,
  "fs_free": 150098,
  "uptime": 16499324