query: office lamp

domain_filter: light


alias: Office Lamp On at 6PM

description: Turn on the office lamp every day at 6:00 PM

mode: single

trigger: time


query: entryway motion


query: entryway motion


python_transform:
config['triggers'].append({'trigger': 'state', 'entity_id': ['binary_sensor.entryway'], 'to': ['on'], 'id': 'entryway_motion'})
config['description'] = 'Turn on the office lamp every day at 6:00 PM, or whenever motion is detected in the entryway'