Shelly Motion to work with Shelly PM1

I have tried a few blueprints on motion with a light to get my Shelly Motion Sensor with an installed Shelly PM1 on a light switch. It was unsuccessful in getting it to work. I can see in HA that motion is being detected but it is not turning the light on. I have the Shelly PM1 set like I have in another area where a Echo Flex Motion turns it on and working. Now that is using an Alexa Routine since the Flex motion will not show up in HA at this time. I would prefer to use automation in HA vice Alexa. Any help would be appreciated.

I use a single automations to use my shelly motion sensors as trigger for my bar lighting. It has multiple triggers and multiple actions based on trigger id. These are z-wave lights but that shouldn’t matter. I have my motion sensors set up with motion blind time at 1 minute. My motion sensitivity is set to 9. My pulse count is set to 2. I have my motion detected and it sends to CoIoT address. I have enable the CoIoT and it sends to the same address. I needed to upgrade firmware to set CoIoT.

- id: '1630948539368'
  alias: Bar Lights - Turn on and off based on stairwell light.
  description: Turn on and off all the lights in the bar area
  trigger:
    - id: 'bar_on'
      platform: state
      entity_id: binary_sensor.bar_stairwell_motion_sensor_motion
      from: 'off'
      to: 'on'
    - id: 'bar_on'
      platform: state
      entity_id: binary_sensor.bar_main_motion_sensor_motion
      from: 'off'
      to: 'on'
    - id: 'bar_on'
      platform: state
      entity_id: switch.stairwell_light
      from: 'off'
      to: 'on'
    - id: 'bar_off'
      platform: state
      entity_id: binary_sensor.bar_main_motion_sensor_motion
      from: 'on'
      to: 'off'
      for: '00:01:30'
    - id: 'bar_off'
      platform: state
      entity_id: switch.stairwell_light
      from: 'on'
      to: 'off'
    - id: 'bar_off1'
      platform: state
      entity_id: binary_sensor.bar_stairwell_motion_sensor_motion
      from: 'on'
      to: 'off'
      for: '00:01:30'
  condition: []
  action:
  - choose:
    - conditions:
        - "{{ trigger.id == 'bar_on' }}"
      sequence:
        - service: switch.turn_on
          target:
            entity_id:
            - switch.area_cans
            - switch.bar_pool_table_light
            - switch.rope_lights
            - switch.bar_hall_to_media
            - switch.bar_landing
            - switch.stairwell_light
        - service: light.turn_on
          target:
            entity_id:
            - light.bar_pendant_light
            - light.bar_back_bar_cans
          data:
            brightness_pct: 50
    - conditions:
        - "{{ trigger.id == 'bar_off' }}"
      sequence:
        - service: switch.turn_off
          target:
            entity_id:
            - switch.area_cans
            - switch.bar_pool_table_light
            - switch.rope_lights
            - switch.bar_hall_to_media
            - switch.bar_landing
            - switch.stairwell_light
        - service: light.turn_off
          target:
            entity_id:
            - light.bar_back_bar_cans
            - light.bar_pendant_light
    - conditions:
        - "{{ trigger.id == 'bar_off1' }}"
        - "{{ states('binary_sensor.bar_main_motion_sensor_motion') == 'off' }}"
      sequence:
        - service: switch.turn_off
          target:
            entity_id:
            - switch.area_cans
            - switch.bar_pool_table_light
            - switch.rope_lights
            - switch.bar_hall_to_media
            - switch.bar_landing
            - switch.stairwell_light
        - service: light.turn_off
          target:
            entity_id:
            - light.bar_back_bar_cans
            - light.bar_pendant_light
    default: []
  mode: single

Hope this helps.

Yeah I would think if HA can see both devices then an automation should just work. Below is what I have but no joy in it working.

Both devices are working too from HA. I can see the motion detected and the light works with the controls, so that being said it should trigger the Shelly PM1 to turn on.