make-all / tuya-local

Local support for Tuya devices in Home Assistant
MIT License
1.42k stars 547 forks source link

Request support for Smoke Detector #2398

Closed markussiegert closed 1 month ago

markussiegert commented 1 month ago

Log message

Dieser Fehler wurde von einer benutzerdefinierten Integration verursacht

Logger: custom_components.tuya_local.device
Quelle: custom_components/tuya_local/device.py:451
Integration: Tuya Local (Dokumentation, Probleme)
Erstmals aufgetreten: 21:06:06 (31 Vorkommnisse)
Zuletzt protokolliert: 21:18:43

Test protocol error 905: Network Error: Device Unreachable
Test protocol error 901: Network Error: Unable to Connect
Test protocol error 904: Unexpected Payload from Device

DPS information

"documentation": "https://www.home-assistant.io/integrations/tuya",
    "integration_type": "hub",
    "iot_class": "cloud_push",
    "loggers": [
      "tuya_iot"
    ],
    "requirements": [
      "tuya-device-sharing-sdk==0.1.9"
    ],
    "is_built_in": true
  },
  "setup_times": {
    "null": {
      "setup": 2.4777022190392017e-05
    },
    "01J9SCBPQZGVP1SVXTWHWX75AM": {
      "wait_import_platforms": -1.2087732729269192,
      "wait_base_component": -0.002664861036464572,
      "config_entry_setup": 2.3495813510380685
    }
  },
  "data": {
    "endpoint": "https://apigw.tuyaeu.com",
    "terminal_id": "1728502422075TlyuHK",
    "mqtt_connected": true,
    "disabled_by": null,
    "disabled_polling": false,
    "id": "bf755d431ef915c108rkxx",
    "name": "Smoke Detector",
    "category": "ywbj",
    "product_id": "lsjnzox4skgduemo",
    "product_name": "Smoke Detector ",
    "online": true,
    "sub": false,
    "time_zone": "+02:00",
    "active_time": "2024-10-12T11:02:36+00:00",
    "create_time": "2024-10-12T11:02:36+00:00",
    "update_time": "2024-10-12T11:02:36+00:00",
    "function": {
      "muffling": {
        "type": "Boolean",
        "value": {}
      }
    },
    "status_range": {
      "smoke_sensor_status": {
        "type": "Enum",
        "value": {
          "range": [
            "alarm",
            "normal"
          ]
        }
      },
      "smoke_sensor_value": {
        "type": "Integer",
        "value": {
          "unit": "",
          "min": 0,
          "max": 100,
          "scale": 1,
          "step": 1
        }
      },
      "battery_state": {
        "type": "Enum",
        "value": {
          "range": [
            "low",
            "middle",
            "high"
          ]
        }
      },
      "battery_percentage": {
        "type": "Integer",
        "value": {
          "unit": "%",
          "min": 0,
          "max": 100,
          "scale": 0,
          "step": 1
        }
      },
      "muffling": {
        "type": "Boolean",
        "value": {}
      }
    },
    "status": {
      "smoke_sensor_status": "normal",
      "smoke_sensor_value": 0,
      "battery_state": "high",
      "battery_percentage": 100,
      "muffling": true
    },
    "home_assistant": {
      "name": "Smoke Detector",
      "name_by_user": null,
      "disabled": false,
      "disabled_by": null,
      "entities": [
        {
          "disabled": false,
          "disabled_by": null,
          "entity_category": null,
          "device_class": null,
          "original_device_class": "smoke",
          "icon": null,
          "original_icon": null,
          "unit_of_measurement": null,
          "state": {
            "entity_id": "binary_sensor.smoke_detector_rauch",
            "state": "off",
            "attributes": {
              "device_class": "smoke",
              "friendly_name": "Smoke Detector Rauch"
            },
            "last_changed": "2024-10-14T20:56:11.273233+00:00",
            "last_reported": "2024-10-14T20:56:11.273233+00:00",
            "last_updated": "2024-10-14T20:56:11.273233+00:00"
          }
        },
        {
          "disabled": false,
          "disabled_by": null,
          "entity_category": "diagnostic",
          "device_class": null,
          "original_device_class": null,
          "icon": null,
          "original_icon": null,
          "unit_of_measurement": "",
          "state": {
            "entity_id": "sensor.smoke_detector_rauchmenge",
            "state": "0.0",
            "attributes": {
              "state_class": "measurement",
              "unit_of_measurement": "",
              "friendly_name": "Smoke Detector Rauchmenge"
            },
            "last_changed": "2024-10-14T20:56:11.343009+00:00",
            "last_reported": "2024-10-14T20:56:11.343009+00:00",
            "last_updated": "2024-10-14T20:56:11.343009+00:00"
          }
        },
        {
          "disabled": false,
          "disabled_by": null,
          "entity_category": "diagnostic",
          "device_class": null,
          "original_device_class": "battery",
          "icon": null,
          "original_icon": null,
          "unit_of_measurement": "%",
          "state": {
            "entity_id": "sensor.smoke_detector_batterie",
            "state": "100.0",
            "attributes": {
              "state_class": "measurement",
              "unit_of_measurement": "%",
              "device_class": "battery",
              "friendly_name": "Smoke Detector Batterie"
            },
            "last_changed": "2024-10-14T20:56:11.343527+00:00",
            "last_reported": "2024-10-14T20:56:11.343527+00:00",
            "last_updated": "2024-10-14T20:56:11.343527+00:00"
          }
        },
        {
          "disabled": false,
          "disabled_by": null,
          "entity_category": "diagnostic",
          "device_class": null,
          "original_device_class": null,
          "icon": null,
          "original_icon": null,
          "unit_of_measurement": null,
          "state": {
            "entity_id": "sensor.smoke_detector_batteriestatus",
            "state": "high",
            "attributes": {
              "friendly_name": "Smoke Detector Batteriestatus"
            },
            "last_changed": "2024-10-14T20:56:11.345195+00:00",
            "last_reported": "2024-10-14T20:56:11.345195+00:00",
            "last_updated": "2024-10-14T20:56:11.345195+00:00"
          }
        }
      ]
    },
    "set_up": true,
    "support_local": true
  }
}

Product ID

lsjnzox4skgduemo

Product Name

Smoke Detector

Information about how the device functions

Wifi smoke detector with test button

make-all commented 1 month ago

As there is no local dps info in this report, nothing can be done.