Newbie Question for Fibaro Motion Sensor - fgms001zw5

Hi All, being a newbie to HA, I’m really struggling to activate one of my first automations.
Problem I believe sits with Fibaro FGMS001zw5+.

Sorry cut/paste isn’t working out for me – any tips are appreciated.
Problem is that the sensor doesn’t seem to fire the trigger.

  • alias: FanOn
    trigger:
    platform: numeric_state
    entity_id: sensor.fibaro_system_fgms001zw5_motion_sensor_burglar
    state: ‘8’
    action:
    service: notify.pushbullet
    data_template:
    title: “Motion Triggered”
    message: “Motion Triggers in LR”

Thank you in advance for any guidance.

Can you format your YAML correctly, as explained in the big blue box at the top (select the YAML, press </>)

Your motion sensor also supports Binary reports, which will give you a binary_sensor.fibaro_system_fgms001zw5_motion_sensor node (probably), making this much easier. I believe that’s enabled by default.

That will allow you to do something much simpler, like:

  - alias: "Fan on"
    trigger:
      - platform: state
        entity_id: binary_sensor.fibaro_system_fgms001zw5_motion_sensor
        to: 'on'

That said:

  • If you’re using numeric_state, then the state options are above: and below:, not state: - state was removed some time ago. For platform: state then the options are from: and to:. See the documentation.
  • You can’t put quotes around the numbers for numeric_state

The state is in this case not numeric but state ‘8’ and like my previous speaker said: to and from is used now

Thank you. Worked perfectly.