Automations from Z-Wave Birary Sensor not triggering

I am trying to use a Dome Door Sensor (Pro) to trigger an automation for our camera system but I cannot get the sensors to fire off the automation when I include the true/false in the trigger. These are my automations can anyone see any reason that they are not being activated?

- id: 'xxx'
  alias: Remote Motion Arm
  trigger:
  - entity_id: binary_sensor.dome_doorwindow_sensor_pro_sensor_2
    platform: state
    to: 'false'
  condition: []
  action:
  - data:
      message: Armed - Remote
    service: notify.smtp

- id: 'xxx'
  alias: Remote Motion Disarm
  trigger:
  - entity_id: binary_sensor.dome_doorwindow_sensor_pro_sensor_2
    platform: state
    to: 'true'
  condition: []
  action:
  - data:
      message: Disarmed - Remote
    service: notify.smtp

From the z-wave log
2018-11-30 10:50:59.857 Detail, Node012, Refreshed Value: old value=false, new value=true, type=bool
2018-11-30 10:51:01.490 Detail, Node012, Refreshed Value: old value=true, new value=false, type=bool

Double check that the binary sensor actually changes. I’ve had Monoprice door/window sensors where the binary sensor never changed from 0. I had to make a template binary sensor using the sensor value (on = 255, off = 0). If this is the case, I can provide an example.

Also, try using a trigger state of ‘off’ and ‘on’ instead of ‘true’ and ‘false’.

Looks like it is changing. I will try trigger state now.

image

@gregg098 is correct. Use 'off' and 'on' instead of 'false' and 'true' in the triggers.

Ok perfect thanks @gregg098 and @pnbruckner, this works as expected now.

- id: 'xxx'
  alias: Remote Motion Arm
  trigger:
  - entity_id: binary_sensor.dome_doorwindow_sensor_pro_sensor_2
    platform: state
    to: 'off'
  condition: []
  action:
  - data:
      message: Armed - Remote
    service: notify.smtp
- id: 'xxx'
  alias: Remote Motion Disarm
  trigger:
  - entity_id: binary_sensor.dome_doorwindow_sensor_pro_sensor_2
    platform: state
    to: 'on'
  condition: []
  action:
  - data:
      message: Disarmed - Remote
    service: notify.smtp