bieniu / ha-shellies-discovery-gen2

Script that adds MQTT discovery support for Shellies Gen2 devices
Apache License 2.0
107 stars 20 forks source link

Add Support for the Shelly Dimmer 0-10V Gen 2 #495

Closed UMB8998 closed 1 month ago

UMB8998 commented 1 month ago

Hello,

Can you add support for the Shelly Dimmer 0-10V Gen 2? the model is: SNDM-00100WW if you need any help testing or with some info from the device, I will be happy to help.

Thank you!

bieniu commented 1 month ago

Show me the response to http://DEVICE_IP/rpc/Shelly.GetConfig and http://DEVICE_IP/rpc/Shelly.GetStatus

UMB8998 commented 1 month ago

This is the response for GetConfig

{
  "ble": {
    "enable": false,
    "rpc": {
      "enable": false
    },
    "observer": {
      "enable": false
    }
  },
  "cloud": {
    "enable": false,
    "server": "shelly-124-eu.shelly.cloud:6022/jrpc"
  },
  "input:0": {
    "id": 0,
    "name": null,
    "type": "button",
    "enable": true,
    "invert": false
  },
  "input:1": {
    "id": 1,
    "name": null,
    "type": "button",
    "enable": true,
    "invert": false
  },
  "light:0": {
    "id": 0,
    "name": null,
    "initial_state": "restore_last",
    "auto_on": false,
    "auto_on_delay": 60,
    "auto_off": false,
    "auto_off_delay": 60,
    "transition_duration": 3,
    "min_brightness_on_toggle": 3,
    "night_mode": {
      "enable": false,
      "brightness": 50,
      "active_between": []
    },
    "range_map": [
      0,
      100
    ],
    "button_fade_rate": 3,
    "button_presets": {
      "button_doublepush": {
        "brightness": 100
      }
    },
    "in_mode": "dim"
  },
  "mqtt": {
    "enable": true,
    "server": "10.0.0.10:1883",
    "client_id": "shellyplus010v-e86beae4b730",
    "user": "homeassistant",
    "ssl_ca": null,
    "topic_prefix": "shellyplus010v-e86beae4b730",
    "rpc_ntf": true,
    "status_ntf": true,
    "use_client_cert": false,
    "enable_rpc": true,
    "enable_control": true
  },
  "sys": {
    "device": {
      "name": null,
      "mac": "E86BEAE4B730",
      "fw_id": "20240819-074324/1.4.2-gc2639da",
      "discoverable": true,
      "addon_type": null
    },
    "location": {
      "tz": "America/Mexico_City",
      "lat": 19.4003,
      "lon": -99.2665
    },
    "debug": {
      "level": 2,
      "file_level": null,
      "mqtt": {
        "enable": false
      },
      "websocket": {
        "enable": false
      },
      "udp": {
        "addr": null
      }
    },
    "ui_data": {},
    "rpc_udp": {
      "dst_addr": null,
      "listen_port": null
    },
    "sntp": {
      "server": "time.google.com"
    },
    "cfg_rev": 14
  },
  "wifi": {
    "ap": {
      "ssid": "ShellyPlus010V-E86BEAE4B730",
      "is_open": true,
      "enable": false,
      "range_extender": {
        "enable": false
      }
    },
    "sta": {
      "ssid": "ExtraIoT438",
      "is_open": false,
      "enable": true,
      "ipv4mode": "dhcp",
      "ip": null,
      "netmask": null,
      "gw": null,
      "nameserver": null
    },
    "sta1": {
      "ssid": null,
      "is_open": true,
      "enable": false,
      "ipv4mode": "dhcp",
      "ip": null,
      "netmask": null,
      "gw": null,
      "nameserver": null
    },
    "roam": {
      "rssi_thr": -80,
      "interval": 60
    }
  },
  "ws": {
    "enable": false,
    "server": null,
    "ssl_ca": "ca.pem"
  }
}

And this is the response for GetStatus

{
  "ble": {},
  "cloud": {
    "connected": false
  },
  "input:0": {
    "id": 0,
    "state": null
  },
  "input:1": {
    "id": 1,
    "state": null
  },
  "light:0": {
    "id": 0,
    "source": "init",
    "output": true,
    "brightness": 86,
    "temperature": {
      "tC": 90.9,
      "tF": 195.6
    }
  },
  "mqtt": {
    "connected": true
  },
  "sys": {
    "mac": "E86BEAE4B730",
    "restart_required": true,
    "time": "15:18",
    "unixtime": 1729631908,
    "uptime": 623191,
    "ram_size": 253964,
    "ram_free": 141280,
    "fs_size": 393216,
    "fs_free": 102400,
    "cfg_rev": 14,
    "kvs_rev": 0,
    "schedule_rev": 0,
    "webhook_rev": 0,
    "available_updates": {
      "stable": {
        "version": "1.4.4"
      }
    },
    "reset_reason": 1
  },
  "wifi": {
    "sta_ip": "10.0.0.200",
    "status": "got ip",
    "ssid": "ExtraIoT438",
    "rssi": -56
  },
  "ws": {
    "connected": false
  }
}
UMB8998 commented 1 month ago

Amazing, thank you!