Transitioning from HA to OH. I have Lutron Caseta switches installed, LEAP binding working fine with Smart Bridge 2. I have z-wave motion sensors installed in various locations, meant to turn on the lights in those areas when presence is detected.
All motion sensors are same brand, same config:
So, here we go. Motion detectors have the same items, channels, etc. as do the Lutron switches.
This one works:
configuration: {}
triggers:
- id: "1"
configuration:
itemName: Pantrymotionsensor_MotionAlarm
state: ON
type: core.ItemStateUpdateTrigger
conditions: []
actions:
- inputs: {}
id: "2"
configuration:
command: ON
itemName: KitchenPantry_SwitchState
type: core.ItemCommandAction
However, scripted the same, this one does not:
configuration: {}
triggers:
- id: "1"
configuration:
itemName: Halfbathmotionsensor_MotionAlarm
state: ON
type: core.ItemStateUpdateTrigger
conditions: []
actions:
- inputs: {}
id: "2"
configuration:
command: ON
itemName: HalfBathroomLights_SwitchState
type: core.ItemCommandAction