home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
70.08k stars 29.15k forks source link

Tuya Wi-Fi Sensors not been picked up by HA #59326

Closed AngloYorkshire closed 2 years ago

AngloYorkshire commented 2 years ago

The problem

Tried my Calex (Tuya) Wifi Door/Window Sensor and also Kitchen Motion Sensor to make an announcement on my Google Display using TTS translator but it does not see the sensor. Tried it in a script and test run the script it is ok. So then tried the script in place in the automation and still not work. Then changed the sensor or motion sensor to turn on a light but nothing. Looked at trace and it didn'e even see the sensor working.

What version of Home Assistant Core has the issue?

2021.11

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Supervised

Integration causing the issue

Tuya

Link to integration documentation on our website

https://www.home-assistant.io/integrations/tuya/

Example YAML snippet

platform: state
entity_id: binary_sensor.back_door_sensor
id: Normal
to: 'On'

platform: state
entity_id: binary_sensor.back_door_sensor
id: Forgotten
to: 'On'
for:
  hours: 0
  minutes: 9
  seconds: 0
  milliseconds: 0

platform: state
entity_id: binary_sensor.back_door_sensor
to: 'On'
for:
  hours: 0
  minutes: 30
  seconds: 0
  milliseconds: 0
id: Still Open

choose:
  - conditions:
      - condition: trigger
        id: Normal
    sequence:
      - service: tts.google_translate_say
        data:
          entity_id: media_player.notification
          message: Welcome. Please close the door behind you.
  - conditions:
      - condition: trigger
        id: Forgotten
    sequence:
      - service: tts.google_translate_say
        data:
          entity_id: media_player.kitchen_display
          message: Has someone forgotten to close the door properly.
  - conditions:
      - condition: trigger
        id: Still Open
      - condition: zone
        entity_id: device_tracker.google_pixel_6_pro
        zone: zone.home
      - condition: zone
        entity_id: person.j_matthew_horton
        zone: zone.home
    sequence:
      - service: tts.google_translate_say
        data:
          entity_id: media_player.kitchen_display
          message: Are there some burgulars in the house?
default: []

Anything in the logs that might be useful for us?

No response

Additional information

Running on Vitual Box on a PC

probot-home-assistant[bot] commented 2 years ago

tuya documentation tuya source (message by IssueLinks)

probot-home-assistant[bot] commented 2 years ago

Hey there @tuya, @zlinoliver, @metisu, @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! (message by CodeOwnersMention)

buccaneeruk commented 2 years ago

Mine has done the same all my devices fail to connect to HA