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

Tesla Smart Sensor Temperature and Humidity #6922

Closed
kocicky opened this issue Apr 21, 2023 · 8 comments · Fixed by #6924
Closed

Tesla Smart Sensor Temperature and Humidity #6922

kocicky opened this issue Apr 21, 2023 · 8 comments · Fixed by #6924

Comments

@kocicky
Copy link

kocicky commented Apr 21, 2023

Device

  • Product name: Smart Sensor Temperature and Humidity
  • Manufacturer: Tesla Global Limited
  • Model identifier: TSL-SEN-TAH
  • Device type : Please remove all unrelated device types.
    • Sensor

Screenshots

clusterinfo

Basic

basic

Identify

identify

Alarms

Device Temperature

Groups

Scenes

On/Off

Level Control

Color Control

Simple Metering

Diagnostics

Other clusters that are not mentioned above

power

temperature

humidity

Snímek obrazovky 2023-04-21 v 18 28 08

https://www.teslasmart.com/tesla-smart-sensor-temperature-and-humidity

@BabaIsYou
Copy link
Contributor

Can you please stick to the template ? Add clusters list screenshot, click on "read" button before taking screenshot, etc ... Thx

@kocicky
Copy link
Author

kocicky commented Apr 21, 2023

Sorry, corrected.

@BabaIsYou
Copy link
Contributor

BabaIsYou commented Apr 21, 2023

Could you try this DDF ?

{
  "schema": "devcap1.schema.json",
  "manufacturername": "_TZ3000_j5fbnjeh",
  "modelid": "TS0201",
  "vendor": "Tesla Global Limited",
  "product": "TSL-SEN-TAH",
  "sleeper": true,
  "status": "Silver",
  "subdevices": [
    {
      "type": "$TYPE_TEMPERATURE_SENSOR",
      "restapi": "/sensors",
      "uuid": [
        "$address.ext",
        "0x01",
        "0x0402"
      ],
      "items": [
        {
          "name": "attr/id"
        },
        {
          "name": "attr/lastannounced"
        },
        {
          "name": "attr/lastseen"
        },
        {
          "name": "attr/manufacturername"
        },
        {
          "name": "attr/modelid"
        },
        {
          "name": "attr/name"
        },
        {
          "name": "attr/swversion"
        },
        {
          "name": "attr/type"
        },
        {
          "name": "attr/uniqueid"
        },
        {
          "name": "config/battery",
          "awake": true,
          "parse": {
            "at": "0x0021",
            "cl": "0x0001",
            "ep": 1,
            "eval": "Item.val = Attr.val / 2;",
            "fn": "zcl"
          },
          "default": 0
        },
        {
          "name": "config/offset",
          "default": 0
        },
        {
          "name": "config/on"
        },
        {
          "name": "config/reachable"
        },
        {
          "name": "state/lastupdated"
        },
        {
          "name": "state/temperature",
          "awake": true,
          "default": 0
        }
      ]
    },
    {
      "type": "$TYPE_HUMIDITY_SENSOR",
      "restapi": "/sensors",
      "uuid": [
        "$address.ext",
        "0x01",
        "0x0405"
      ],
      "items": [
        {
          "name": "attr/id"
        },
        {
          "name": "attr/lastannounced"
        },
        {
          "name": "attr/lastseen"
        },
        {
          "name": "attr/manufacturername"
        },
        {
          "name": "attr/modelid"
        },
        {
          "name": "attr/name"
        },
        {
          "name": "attr/swversion"
        },
        {
          "name": "attr/type"
        },
        {
          "name": "attr/uniqueid"
        },
        {
          "name": "config/battery",
          "awake": true,
          "parse": {
            "at": "0x0021",
            "cl": "0x0001",
            "ep": 1,
            "eval": "Item.val = Attr.val / 2;",
            "fn": "zcl"
          },
          "default": 0
        },
        {
          "name": "config/offset"
        },
        {
          "name": "config/on"
        },
        {
          "name": "config/reachable"
        },
        {
          "name": "state/humidity"
        },
        {
          "name": "state/lastupdated"
        }
      ]
    }
  ],
  "bindings": [
    {
      "bind": "unicast",
      "src.ep": 1,
      "cl": "0x0001",
      "report": [
        {
          "at": "0x0021",
          "dt": "0x20",
          "min": 3600,
          "max": 14400,
          "change": "0x00000001"
        }
      ]
    },
    {
      "bind": "unicast",
      "src.ep": 1,
      "cl": "0x0402",
      "report": [
        {
          "at": "0x0000",
          "dt": "0x29",
          "min": 60,
          "max": 300,
          "change": "0x00000064"
        }
      ]
    },
    {
      "bind": "unicast",
      "src.ep": 1,
      "cl": "0x0405",
      "report": [
        {
          "at": "0x0000",
          "dt": "0x21",
          "min": 60,
          "max": 300,
          "change": "0x00000064"
        }
      ]
    }
  ]
}

You have to change DDF level to Silver https://github.com/dresden-elektronik/deconz-rest-plugin/wiki/How-to-change-DDF-modes-and-enable-or-disable-DDF-levels

@kocicky
Copy link
Author

kocicky commented Apr 21, 2023

Thanks, but temperature doesn't seem right
Snímek obrazovky 2023-04-21 v 22 25 35

@BabaIsYou
Copy link
Contributor

BabaIsYou commented Apr 22, 2023

OK. Even if you force reading of cluster 0x0402 in Deconz-GUI this value stay to zero ?

Update : I think I see, just replace

        {
          "name": "state/temperature",
          "awake": true,
          "default": 0
        }

by

        {
          "name": "config/temperature"
        }

@BabaIsYou
Copy link
Contributor

@kocicky, Can you confirm that is ok after the changes ?

@kocicky
Copy link
Author

kocicky commented Apr 23, 2023

It seems allright now. But I cannot see the sensor entity in Phoscon-GW in Home Assistant.

@kocicky
Copy link
Author

kocicky commented Apr 23, 2023

Sorry, after core update sensor is on. Thanks for support.

@kocicky kocicky closed this as completed Apr 23, 2023
manup pushed a commit that referenced this issue May 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants