Hey! I’m Home Motion Sensor (Tuya Integration)

Hi,
I am pretty new to HA and slowly working my way through things…
I have some Hey! I’m Home devices, which seem to be Tuya devices…

I have managed to set them up in the Tuya app, also setup a Tuya IoT account and get the Tuya Integration successfully set up on my Home Assistant setup.
HA finds my devices, and the power strip seems to fully work, but my motion sensor comes up as…

Hey! Motion Sensor (unsupported)
by Tuya

And shows no entities, is there anything I can do to get this recognised and working?

I have currently setup Alexa linking, so am running an Alexa Routine on motion to flick on a HA helper toggle which then runs my automation…
This works, but the time between motion and automation takes an age, so looking for how to do it more natively in HA…
I tried LocalTuya, but that seems to find the power strip but not sensor, also I have no idea how to find the “Local ID” for the devices :slight_smile:

Any guidance would be great!
Thanks
Mark

So currently, The only valid way i’ve been able to intergrate Hey! Motion Sensor is using a Ping Sensor.

Whenever the motion sensor detects motion, it comes online, grabs an IP address from your local DHCP server, and then sends of data. Ensuring that you set a static IP adrress on the Motion Sensor (this will need to be done on your router), you can setup a binary_sensor, - platform: ping, which will essentially translate as “when this device comes online, assume that it has detected motion.”

here is my config as an example:

binary_sensor:

  - platform: template

    sensors:

      hey_motion_sensor:

        friendly_name: "Hey! Motion Sensor"

        value_template: >-

          {{ as_timestamp(states.sensor.date_time.last_changed) - as_timestamp(states.binary_sensor.ping_hey_motion_sensor.last_changed) < states('input_number.motion_sensor_idle_secs')|int }}

Thanks @adzybee that is a bit more work then I was hoping :slight_smile:

With the ping, I assume you set a low scan_interval time (every second or two) to make it come on and ping in time, rather than waiting 5 mins after you walk in to next ping :slight_smile:

Thanks, I will give it a go and see how far I get…