Aeotec MultitSensor 6

Hi, New to HA.

I have a Aeotec MultitSensor 6 connected to a smarthings hub but I can get the motion sensor to work in HA. If i set up a routine in smarthings it notify’s me of motion but in HA nothing. I have connected smarthings to HA and the sensor shows as a device with entities etc. I created a simple automation (I thought) that if motion was detected it would turn on a WIFI plug, I run the actions manually and the plug does turn on!.

I have tried different configurations but nothing seems to work. Most likely my inexperience in HA but am not sure what to try next.

Any help appreciated.

Thanks

Darren

Please post the automation yaml. (as a code block)

Hi

Hopefully what you are need below.

Many thanks.

- id: '1644854277784'
  alias: Aeotec Sensor
  description: ''
  trigger:
  - platform: state
    entity_id: binary_sensor.aeotec_multipurpose_sensor_motion
    to: 'on'
    from: 'off'
  condition: []
  action:
  - type: turn_on
    device_id: cedb8b8efe8a9fd899007ccb4fecc804
    entity_id: switch.sensor_plug_mss210_main_channel
    domain: switch
  - delay:
      hours: 0
      minutes: 0
      seconds: 10
      milliseconds: 0
  - type: turn_off
    device_id: cedb8b8efe8a9fd899007ccb4fecc804
    entity_id: switch.sensor_plug_mss210_main_channel
    domain: switch
  mode: single

I have a ‘security_motion_detection’ binary sensor on mine I use for motion.