AlexxIT / SonoffLAN

Control Sonoff Devices with eWeLink (original) firmware over LAN and/or Cloud from Home Assistant
https://github.com/AlexxIT/Blog
MIT License
2.68k stars 414 forks source link

NSPanel Pro device signature #984

Open blakadder opened 2 years ago

blakadder commented 2 years ago

Currently the integrations discovers only one entity image

Here's the diagnostics for NSPanel Pro when you want to implement the device

    "device": {
      "uiid": 195,
      "params": {
        "cityId": "117910",
        "dst": 1,
        "dstChange": "2022-10-30T01:00:00Z",
        "tempRange": "6.1,12.5",
        "temperature": 11.1,
        "timeZone": 1,
        "weather": 18,
        "version": 7,
        "appVersion": "1.3.0",
        "sysVersion": "1.3.0",
        "zigbeeVersion": "1.0.0",
        "securityType": 0,
        "subDevices": [],
        "buzzerAlarm": {
          "test": false,
          "mode": "stop"
        },
        "securitySetting1": {
          "name": "Home mode",
          "triggers": [
            "a480031ddc"
          ],
          "operation": {
            "buzzerAlarm": {
              "test": false,
              "mode": "keep",
              "fileName": "ring/ring5.mp3",
              "volume": 99,
              "duration": 10
            }
          }
        },
        "addSubDevState": "off",
        "addDevTime": 180,
        "fwVersion": "1.3.0",
        "temp_control": [
          {
            "id": "5ccef41e-f6c4-4fa5-8abb-ff087a1ff229",
            "name": "Testmostat",
            "enable": true,
            "trigger": "a480031de3",
            "operations": [
              "a480034de5"
            ],
            "triggerType": "manual",
            "type": "heat",
            "manualTemplate": 31,
            "precision": 1,
            "showChart": true
          },
          {
            "id": "0e1c23cc-ee51-42a5-9dc2-8de1c63a4345",
            "name": "Cooler",
            "enable": true,
            "trigger": "a480031de3",
            "operations": [
              "a480034de5"
            ],
            "triggerType": "manual",
            "type": "cold",
            "manualTemplate": 21,
            "precision": 1,
            "showChart": true,
            "autoPlans": [
              {
                "id": "95e15b9e-7bcb-4dc0-8ef8-876dc1411ff4",
                "temperature": 22,
                "dayOfWeeks": [
                  1,
                  2,
                  3,
                  4,
                  5,
                  6,
                  7
                ],
                "startTime": {
                  "hour": 0,
                  "minute": 0
                },
                "endTime": {
                  "hour": 1,
                  "minute": 0
                },
                "zone": 2,
                "allDay": true
              }
            ]
          }
        ],
        "geo": "25.81,25.952"
      },
      "model": "NSPanel86PB",
      "online": true,
      "localtype": null,
      "deviceid": "100177c47c"
    }
AlexxIT commented 1 year ago

I have added temperature sensor. It's hard to add anything else.

AlexxIT commented 1 year ago

https://github.com/AlexxIT/SonoffLAN/releases/tag/v3.5.2

vit-um commented 1 year ago

Hi After updating to v3.5.2 - 2023-07-27 or earlier in NSPanel86PW the security status attribute disappeared ;( And the NSPanel86PW sensor became unavailable.

This template is currently not working: {{ is_state_attr('sensor.sonoff_1001e0b12a', 'securityType', 2) }}

image