Skip to content
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

Mini R3 DIY Status #1158

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Mini R3 DIY Status #1158

wants to merge 4 commits into from

Conversation

sebcsaba
Copy link

@sebcsaba sebcsaba commented Apr 4, 2023

Implements status reading of switch, tested on Mini R3 DIY

@AlexxIT
Copy link
Owner

AlexxIT commented Apr 4, 2023

Not best idea implement one rare device and break all others :)
Please show device diagnostics.

@sebcsaba
Copy link
Author

sebcsaba commented Apr 4, 2023

Sure, I tried to keep compatibility.

  • 1618336 definitely should not make problem on any device (the defined time may be interesting, if we keep hardcoded)
  • 1872d46 yes, might be a breaker on some devices, needs more investigation - or rely on mDNS txt record?
  • 9595c61 iv key in response might be device specific, but I haven't seen in any of documented local APIs
  • 65b18da is failsafe change

Diagnostics:

  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2023.3.6",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.10.10",
    "docker": true,
    "arch": "aarch64",
    "timezone": "Europe/Budapest",
    "os_name": "Linux",
    "os_version": "5.15.84-v8",
    "supervisor": "2023.03.3",
    "host_os": "Home Assistant OS 9.5",
    "docker_version": "20.10.22",
    "chassis": "embedded",
    "run_as_root": true
  },
  "custom_components": {
    "sonoff": {
      "version": "3.5.1",
      "requirements": [
        "pycryptodome>=3.6.6"
      ]
    },
    "xiaomi_miot": {
      "version": "0.7.5",
      "requirements": [
        "construct==2.10.56",
        "python-miio>=0.5.6",
        "micloud>=0.3"
      ]
    },
    "tapo": {
      "version": "1.4.0",
      "requirements": [
        "plugp100==2.4.1"
      ]
    },
    "hacs": {
      "version": "1.31.0",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    }
  },
  "integration_manifest": {
    "domain": "sonoff",
    "name": "Sonoff",
    "config_flow": true,
    "documentation": "https://github.com/AlexxIT/SonoffLAN",
    "issue_tracker": "https://github.com/AlexxIT/SonoffLAN/issues",
    "codeowners": [
      "@AlexxIT"
    ],
    "dependencies": [
      "http",
      "zeroconf"
    ],
    "requirements": [
      "pycryptodome>=3.6.6"
    ],
    "version": "3.5.1",
    "iot_class": "local_push",
    "is_built_in": false
  },
  "data": {
    "version": "c5c72c4",
    "cloud_auth": false,
    "config": null,
    "options": {},
    "errors": [],
    "device": {
      "uiid": 138,
      "params": {
        "switches": [
          {
            "switch": "on",
            "outlet": 0
          },
          {
            "switch": "on",
            "outlet": 1
          },
          {
            "switch": "on",
            "outlet": 2
          },
          {
            "switch": "on",
            "outlet": 3
          }
        ],
        "configure": [
          {
            "startup": "on",
            "outlet": 0
          },
          {
            "startup": "on",
            "outlet": 1
          },
          {
            "startup": "on",
            "outlet": 2
          },
          {
            "startup": "on",
            "outlet": 3
          }
        ],
        "pulses": [
          {
            "pulse": "off",
            "switch": "off",
            "outlet": 0,
            "width": 0
          },
          {
            "pulse": "off",
            "switch": "off",
            "outlet": 1,
            "width": 0
          },
          {
            "pulse": "off",
            "switch": "off",
            "outlet": 2,
            "width": 0
          },
          {
            "pulse": "off",
            "switch": "off",
            "outlet": 3,
            "width": 0
          }
        ],
        "sledOnline": "on",
        "fwVersion": "1.4.3",
        "staMac": "***"
      },
      "model": "MINI DIY",
      "online": null,
      "local": true,
      "localtype": "diy_plug",
      "host": "192.168.1.200:8081",
      "deviceid": "1001439f62"
    }
  }
}```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants