Skip to content

feat: Add Siguro SGR-FN-U32xx #3155

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 25, 2025

Conversation

shadowkora
Copy link
Contributor

@shadowkora shadowkora commented Apr 16, 2025

Adds support for this fan: https://www.siguro.net/en/products/siguro-fn-u320w-ionic-super-silent-wifi/

Edit: Forgot to mention that the device controls already function in my HA instance with this .yaml file

For a sanity check

DPS:

{
  "result": {
    "properties": [
      {
        "code": "switch",
        "custom_name": "",
        "dp_id": 1,
        "time": 1744826781065,
        "type": "bool",
        "value": false
      },
      {
        "code": "fan_speed",
        "custom_name": "",
        "dp_id": 2,
        "time": 1744826736775,
        "type": "value",
        "value": 12
      },
      {
        "code": "mode",
        "custom_name": "",
        "dp_id": 3,
        "time": 1744826762309,
        "type": "enum",
        "value": "ordinary"
      },
      {
        "code": "switch_horizontal",
        "custom_name": "",
        "dp_id": 5,
        "time": 1744826776971,
        "type": "bool",
        "value": false
      },
      {
        "code": "anion",
        "custom_name": "",
        "dp_id": 8,
        "time": 1744823661287,
        "type": "bool",
        "value": false
      },
      {
        "code": "light",
        "custom_name": "",
        "dp_id": 12,
        "time": 1744823721269,
        "type": "bool",
        "value": true
      },
      {
        "code": "countdown_left",
        "custom_name": "",
        "dp_id": 14,
        "time": 1744823661287,
        "type": "value",
        "value": 0
      },
      {
        "code": "on_set",
        "custom_name": "",
        "dp_id": 102,
        "time": 1744823661287,
        "type": "value",
        "value": 0
      },
      {
        "code": "off_set",
        "custom_name": "",
        "dp_id": 103,
        "time": 1744823661287,
        "type": "value",
        "value": 0
      }
    ]
  },
}

Properties:

{
  "result": {
    "category": "ks",
    "functions": [
      {
        "code": "switch",
        "desc": "{}",
        "name": "开关",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "fan_speed",
        "desc": "{\"unit\":\"\",\"min\":1,\"max\":12,\"scale\":0,\"step\":1}",
        "name": "风速",
        "type": "Integer",
        "values": "{\"unit\":\"\",\"min\":1,\"max\":12,\"scale\":0,\"step\":1}"
      },
      {
        "code": "mode",
        "desc": "{\"range\":[\"ordinary\",\"nature\",\"sleep\"]}",
        "name": "风速模式",
        "type": "Enum",
        "values": "{\"range\":[\"ordinary\",\"nature\",\"sleep\"]}"
      },
      {
        "code": "switch_horizontal",
        "desc": "{}",
        "name": "左右摆风开关",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "anion",
        "desc": "{}",
        "name": "负离子",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "light",
        "desc": "{}",
        "name": "灯光",
        "type": "Boolean",
        "values": "{}"
      }
    ],
    "status": [
      {
        "code": "switch",
        "name": "开关",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "fan_speed",
        "name": "风速",
        "type": "Integer",
        "values": "{\"unit\":\"\",\"min\":1,\"max\":12,\"scale\":0,\"step\":1}"
      },
      {
        "code": "mode",
        "name": "风速模式",
        "type": "Enum",
        "values": "{\"range\":[\"ordinary\",\"nature\",\"sleep\"]}"
      },
      {
        "code": "switch_horizontal",
        "name": "左右摆风开关",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "anion",
        "name": "负离子",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "light",
        "name": "灯光",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "countdown_left",
        "name": "倒计时剩余时间",
        "type": "Integer",
        "values": "{\"unit\":\"min\",\"min\":0,\"max\":721,\"scale\":0,\"step\":1}"
      }
    ]
  },
}

@github-project-automation github-project-automation bot moved this to 👀 In review in Tuya Local Apr 16, 2025
shadowkora and others added 2 commits April 17, 2025 17:15
- use translations where available
- merge oscillation switch into fan entity

PR make-all#3155
@make-all make-all merged commit 9cdac9e into make-all:main Apr 25, 2025
4 checks passed
@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Done in Tuya Local Apr 25, 2025
make-all added a commit that referenced this pull request Apr 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

2 participants