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

High-precision breath sensor (ijxvkhd0) seen as double swith from Home Assistant #104626

Closed
EnrLaz opened this issue Nov 27, 2023 · 4 comments
Closed

Comments

@EnrLaz
Copy link

EnrLaz commented Nov 27, 2023

The problem

High-precision breath sensor (ijxvkhd0) seen as double swith from Home Assistant
Model Wenzhi WZ-M100-24G

What version of Home Assistant Core has the issue?

Core 2023.11.3 Supervisor 2023.11.3 Operating System 11.1 Frontend 20231030.2

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Tuya

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2023.11.3",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.11.6",
    "docker": true,
    "arch": "armv7l",
    "timezone": "Europe/Rome",
    "os_name": "Linux",
    "os_version": "6.1.21-v7",
    "supervisor": "2023.11.3",
    "host_os": "Home Assistant OS 11.1",
    "docker_version": "24.0.6",
    "chassis": "embedded",
    "run_as_root": true
  },
  "custom_components": {
    "hacs": {
      "version": "1.33.0",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    },
    "smartir": {
      "version": "1.17.8",
      "requirements": [
        "aiofiles>=0.6.0"
      ]
    },
    "localtuya": {
      "version": "5.2.1",
      "requirements": []
    }
  },
  "integration_manifest": {
    "domain": "localtuya",
    "name": "LocalTuya integration",
    "codeowners": [
      "@rospogrigio",
      "@postlund"
    ],
    "config_flow": true,
    "dependencies": [],
    "documentation": "https://github.com/rospogrigio/localtuya/",
    "iot_class": "local_push",
    "issue_tracker": "https://github.com/rospogrigio/localtuya/issues",
    "requirements": [],
    "version": "5.2.1",
    "is_built_in": false
  },
  "data": {
    "region": "eu",
    "username": "localtuya",
    "no_cloud": false,
    "client_id": "ycn...epr",
    "client_secret": "102...6ed",
    "user_id": "eu1...VDU",
    "devices": {},
    "cloud_devices": {
      "bfbfaac2aadf5444b57ejq": {
        "active_time": 1699531766,
        "biz_type": 18,
        "category": "hps",
        "create_time": 1692020383,
        "icon": "smart/icon/ay15431316572284AcPZ/04758aeaab2a7a0d47facdfd7cbcf8d2.png",
        "id": "bfbfaac2aadf5444b57ejq",
        "ip": "2.39.33.98",
        "lat": "43.7000",
        "local_key": "'S*...t~f",
        "lon": "10.4000",
        "model": "1.0.1",
        "name": "Aria Presenza wifi",
        "online": true,
        "owner_id": "159857257",
        "product_id": "k2h8vkj98fhvnpiv",
        "product_name": "ZY-M100-WIFI\u5b58\u5728\u611f\u5e94\u5668",
        "status": [
          {
            "code": "presence_state",
            "value": "presence"
          },
          {
            "code": "sensitivity",
            "value": 6
          },
          {
            "code": "near_detection",
            "value": 100
          },
          {
            "code": "far_detection",
            "value": 250
          },
          {
            "code": "checking_result",
            "value": "check_success"
          },
          {
            "code": "target_dis_closest",
            "value": 233
          }
        ],
        "sub": false,
        "time_zone": "+01:00",
        "uid": "eu1688278712397IqVDU",
        "update_time": 1701088072,
        "uuid": "cd756f74859fb052"
      },
      "bfc6ec96bc353954e8z7sz": {
        "active_time": 1701035208,
        "biz_type": 18,
        "category": "kg",
        "create_time": 1701035208,
        "icon": "smart/icon/ay15431316572284AcPZ/7ab13514ffb9bb413bc00dcc68c4992a.png",
        "id": "bfc6ec96bc353954e8z7sz",
        "ip": "",
        "lat": "43.7000",
        "local_key": "VBW...d0+",
        "lon": "10.4000",
        "model": "",
        "name": "Test breath sensor",
        "node_id": "a4c13831bcee19c5",
        "online": true,
        "owner_id": "159857257",
        "product_id": "ijxvkhd0",
        "product_name": "High-precision breath sensor",
        "status": [
          {
            "code": "switch_1",
            "value": false
          },
          {
            "code": "switch_2",
            "value": false
          },
          {
            "code": "countdown_1",
            "value": 0
          },
          {
            "code": "countdown_2",
            "value": 0
          }
        ],
        "sub": true,
        "time_zone": "+01:00",
        "uid": "eu1688278712397IqVDU",
        "update_time": 1701087451,
        "uuid": "a4c13831bcee19c5"
      },
      "bfd4a97a8893006ba2l6du": {
        "active_time": 1700860995,
        "biz_type": 18,
        "category": "kg",
        "create_time": 1700679710,
        "icon": "smart/icon/ay15431316572284AcPZ/7ab13514ffb9bb413bc00dcc68c4992a.png",
        "id": "bfd4a97a8893006ba2l6du",
        "ip": "",
        "lat": "43.7000",
        "local_key": "VBW...d0+",
        "lon": "10.4000",
        "model": "",
        "name": "Fuoco breath sensor",
        "node_id": "a4c138dcd0051f30",
        "online": true,
        "owner_id": "159857257",
        "product_id": "ijxvkhd0",
        "product_name": "High-precision breath sensor",
        "status": [
          {
            "code": "switch_1",
            "value": false
          },
          {
            "code": "switch_2",
            "value": false
          },
          {
            "code": "countdown_1",
            "value": 0
          },
          {
            "code": "countdown_2",
            "value": 0
          }
        ],
        "sub": true,
        "time_zone": "+01:00",
        "uid": "eu1688278712397IqVDU",
        "update_time": 1701012653,
        "uuid": "a4c138dcd0051f30"
      },
      "bf5ca1e278b04117a9l05z": {
        "active_time": 1699471104,
        "biz_type": 18,
        "category": "wg2",
        "create_time": 1688650636,
        "icon": "smart/icon/ay1563458092241dQjBt/3689e769de18fef30ee56eaca7810025.png",
        "id": "bf5ca1e278b04117a9l05z",
        "ip": "2.39.33.98",
        "lat": "43.7000",
        "local_key": "VBW...d0+",
        "lon": "10.4000",
        "model": "ZHUB",
        "name": "Gateway ",
        "online": true,
        "owner_id": "159857257",
        "product_id": "5frmobbvbrgqkwzg",
        "product_name": "Wired Smart Gateway ",
        "status": [],
        "sub": false,
        "time_zone": "+01:00",
        "uid": "eu1688278712397IqVDU",
        "update_time": 1700996928,
        "uuid": "4995e6934c4083e1"
      }
    }
  }
}

Anything in the logs that might be useful for us?

No response

Additional information

i have also a ZY-M100-WIFI and it come up on Home Assistant correctly with the follow YAML code:
{
"home_assistant": {
"installation_type": "Home Assistant OS",
"version": "2023.11.3",
"dev": false,
"hassio": true,
"virtualenv": false,
"python_version": "3.11.6",
"docker": true,
"arch": "armv7l",
"timezone": "Europe/Rome",
"os_name": "Linux",
"os_version": "6.1.21-v7",
"supervisor": "2023.11.3",
"host_os": "Home Assistant OS 11.1",
"docker_version": "24.0.6",
"chassis": "embedded",
"run_as_root": true
},
"custom_components": {
"hacs": {
"version": "1.33.0",
"requirements": [
"aiogithubapi>=22.10.1"
]
},
"smartir": {
"version": "1.17.8",
"requirements": [
"aiofiles>=0.6.0"
]
}
},
"integration_manifest": {
"domain": "tuya",
"name": "Tuya",
"codeowners": [
"@tuya",
"@zlinoliver",
"@frenck"
],
"config_flow": true,
"dependencies": [
"ffmpeg"
],
"dhcp": [
{
"macaddress": "105A17*"
},
{
"macaddress": "10D561*"
},
{
"macaddress": "1869D8*"
},
{
"macaddress": "381F8D*"
},
{
"macaddress": "508A06*"
},
{
"macaddress": "68572D*"
},
{
"macaddress": "708976*"
},
{
"macaddress": "7CF666*"
},
{
"macaddress": "84E342*"
},
{
"macaddress": "D4A651*"
},
{
"macaddress": "D81F12*"
}
],
"documentation": "https://www.home-assistant.io/integrations/tuya",
"integration_type": "hub",
"iot_class": "cloud_push",
"loggers": [
"tuya_iot"
],
"requirements": [
"tuya-iot-py-sdk==0.6.6"
],
"is_built_in": true
},
"data": {
"endpoint": "https://openapi.tuyaeu.com",
"auth_type": 0,
"country_code": "39",
"app_type": "smartlife",
"mqtt_connected": true,
"disabled_by": null,
"disabled_polling": false,
"name": "Aria Presenza wifi",
"model": "1.0.1",
"category": "hps",
"product_id": "k2h8vkj98fhvnpiv",
"product_name": "ZY-M100-WIFI\u5b58\u5728\u611f\u5e94\u5668",
"online": true,
"sub": false,
"time_zone": "+01:00",
"active_time": "2023-11-09T12:09:26+00:00",
"create_time": "2023-08-14T13:39:43+00:00",
"update_time": "2023-11-26T15:31:29+00:00",
"function": {
"sensitivity": {
"type": "Integer",
"value": {
"min": 0,
"max": 9,
"scale": 0,
"step": 1
}
},
"near_detection": {
"type": "Integer",
"value": {
"unit": "M",
"min": 0,
"max": 1000,
"scale": 2,
"step": 10
}
},
"far_detection": {
"type": "Integer",
"value": {
"unit": "M",
"min": 0,
"max": 1000,
"scale": 2,
"step": 10
}
}
},
"status_range": {
"presence_state": {
"type": "Enum",
"value": {
"range": [
"none",
"presence"
]
}
},
"sensitivity": {
"type": "Integer",
"value": {
"min": 0,
"max": 9,
"scale": 0,
"step": 1
}
},
"near_detection": {
"type": "Integer",
"value": {
"unit": "M",
"min": 0,
"max": 1000,
"scale": 2,
"step": 10
}
},
"far_detection": {
"type": "Integer",
"value": {
"unit": "M",
"min": 0,
"max": 1000,
"scale": 2,
"step": 10
}
},
"checking_result": {
"type": "Enum",
"value": {
"range": [
"checking",
"check_success",
"check_failure",
"others",
"comm_fault",
"radar_fault"
]
}
},
"target_dis_closest": {
"type": "Integer",
"value": {
"unit": "M",
"min": 0,
"max": 1000,
"scale": 2,
"step": 1
}
}
},
"status": {
"presence_state": "none",
"sensitivity": 6,
"near_detection": 100,
"far_detection": 250,
"checking_result": "check_success",
"target_dis_closest": 228
},
"home_assistant": {
"name": "Aria Presenza wifi",
"name_by_user": "Aria Presenza",
"disabled": false,
"disabled_by": null,
"entities": [
{
"disabled": false,
"disabled_by": null,
"entity_category": null,
"device_class": null,
"original_device_class": "motion",
"icon": null,
"original_icon": null,
"unit_of_measurement": null,
"state": {
"entity_id": "binary_sensor.aria_presenza_movimento",
"state": "on",
"attributes": {
"device_class": "motion",
"friendly_name": "Aria Presenza Movimento"
},
"last_changed": "2023-11-27T03:17:00.683469+00:00",
"last_updated": "2023-11-27T03:17:00.683469+00:00"
}
},
{
"disabled": false,
"disabled_by": null,
"entity_category": "config",
"device_class": null,
"original_device_class": null,
"icon": null,
"original_icon": "mdi:signal-distance-variant",
"unit_of_measurement": null,
"state": {
"entity_id": "number.aria_presenza_rilevamento_lontano",
"state": "2.5",
"attributes": {
"min": 0.0,
"max": 10.0,
"step": 0.1,
"mode": "auto",
"icon": "mdi:signal-distance-variant",
"friendly_name": "Aria Presenza Rilevamento lontano"
},
"last_changed": "2023-11-26T17:35:29.620649+00:00",
"last_updated": "2023-11-26T17:35:29.620649+00:00"
}
},
{
"disabled": false,
"disabled_by": null,
"entity_category": "config",
"device_class": null,
"original_device_class": null,
"icon": null,
"original_icon": "mdi:signal-distance-variant",
"unit_of_measurement": null,
"state": {
"entity_id": "number.aria_presenza_rilevamento_vicino",
"state": "1.0",
"attributes": {
"min": 0.0,
"max": 10.0,
"step": 0.1,
"mode": "auto",
"icon": "mdi:signal-distance-variant",
"friendly_name": "Aria Presenza Rilevamento vicino"
},
"last_changed": "2023-11-26T17:35:29.618908+00:00",
"last_updated": "2023-11-26T17:35:29.618908+00:00"
}
},
{
"disabled": false,
"disabled_by": null,
"entity_category": "config",
"device_class": null,
"original_device_class": null,
"icon": null,
"original_icon": null,
"unit_of_measurement": null,
"state": {
"entity_id": "number.aria_presenza_sensibilita",
"state": "6.0",
"attributes": {
"min": 0.0,
"max": 9.0,
"step": 1.0,
"mode": "auto",
"friendly_name": "Aria Presenza Sensibilit\u00e0"
},
"last_changed": "2023-11-26T17:35:29.600744+00:00",
"last_updated": "2023-11-26T17:35:29.600744+00:00"
}
}
]
}
}
}

@home-assistant
Copy link

Hey there @tuya, @zlinoliver, @frenck, mind taking a look at this issue as it has been labeled with an integration (tuya) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of tuya can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign tuya Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


tuya documentation
tuya source
(message by IssueLinks)

@EnrLaz
Copy link
Author

EnrLaz commented Nov 28, 2023

hey I don't know anything here... I don't know any bots
I can help on this question of mine if some humans will answer me.
json file code is valid for ZY-M100-WIFI,
but the json code available for WZ-M100-24G is incorrect
why instead of making it available as a sensor
the code represents it as a double switch
Ask me if i am not so clear to help to solve

@kenni
Copy link

kenni commented Feb 12, 2024

@EnrLaz (or others who end up here looking for a solution):
I was not able to configure the M100-24G subdevice in the official Tuya integration, but FYI the Local Tuya integration forked by xZetsubou (https://github.com/xZetsubou/hass-localtuya/) works. It also detects the two useless switches by default, but it allows you to add additional entities. The following screenshot shows how to create a basic Home/Away presence entity in HA (all the other values from the M100-24G sensor can be added with similar approach):

image image

@issue-triage-workflows
Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@issue-triage-workflows issue-triage-workflows bot closed this as not planned Won't fix, can't repro, duplicate, stale May 19, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Jun 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants