So I finally got my Schlage deadbolt to work thanks to some folks here, and now I’m trying to set it up to turn on the lights when the bolt unlocks. I have a rule that initiates to turn on the lights. But I can’t figure out how to “lock” it in with the deadbolt action. I’ve tried several different callouts from the lock, including:
triggers:
- id: "2"
configuration:
itemName: SchlageTouchpadDeadbolt_DoorLock
state: OFF
previousState: ON
type: core.ItemStateChangeTrigger
conditions: []
actions:
- inputs: {}
id: "1"
configuration:
considerConditions: false
ruleUIDs:
- 1a3d25cc65
type: core.RunRuleAction
triggers:
- id: "2"
configuration:
state: OFF
itemName: SchlageTouchpadDeadbolt_DoorLock
type: core.ItemStateUpdateTrigger
conditions: []
actions:
- inputs: {}
id: "1"
configuration:
considerConditions: false
ruleUIDs:
- 1a3d25cc65
type: core.RunRuleAction
triggers:
- id: "2"
configuration:
command: OFF
itemName: SchlageTouchpadDeadbolt_DoorLock
type: core.ItemCommandTrigger
conditions: []
actions:
- inputs: {}
id: "1"
configuration:
considerConditions: false
ruleUIDs:
- 1a3d25cc65
type: core.RunRuleAction
None seem to work. It does work if I manually initiate the command within OpenHab, just not when using the deadbolt or the lock keypad. Any thoughts on how to initiate this?
The rule I’m asking to run after the unlock is:
triggers: []
conditions: []
actions:
- inputs: {}
id: "1"
configuration:
itemName: DiningRoomDimmerSwitch_Dimmer
command: "100"
type: core.ItemCommandAction
- inputs: {}
id: "2"
configuration:
itemName: FoyerLight_Switch
command: ON
type: core.ItemCommandAction
- inputs: {}
id: "3"
configuration:
itemName: KitchenCabinetsDimmerSwitch_Dimmer
command: "100"
type: core.ItemCommandAction
- inputs: {}
id: "4"
configuration:
itemName: KitchenDimmerSwitch_Dimmer
command: "100"
type: core.ItemCommandAction
- inputs: {}
id: "5"
configuration:
command: "100"
itemName: LivingRoomDimmerSwitch_Dimmer
type: core.ItemCommandAction