Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- platform: template
- sensors:
- ## Door/Windows - Back Door
- sensor_check_dws_back_door_no_activity:
- entity_id: sensor.time
- value_template: >
- {{ (now().timestamp() - as_timestamp(states.binary_sensor.openclose_19.last_changed)) | int //60 > 780 }}
- ## Door/Windows - Back Door
- sensor_check_dws_front_door_no_activity:
- entity_id: sensor.time
- value_template: >
- {{ (now().timestamp() - as_timestamp(states.binary_sensor.openclose_26.last_changed)) | int //60 > 780 }}
- ## Door/Windows - Snug Door
- sensor_check_dws_snug_door_no_activity:
- entity_id: sensor.time
- value_template: >
- {{ (now().timestamp() - as_timestamp(states.binary_sensor.openclose_30.last_changed)) | int //60 > 780 }}
- ## Door/Windows - Kitchen Door
- sensor_check_dws_kitchen_door_no_activity:
- entity_id: sensor.time
- value_template: >
- {{ (now().timestamp() - as_timestamp(states.binary_sensor.openclose_20.last_changed)) | int //60 > 780 }}
- ## Door/Windows - Guest Door
- sensor_check_dws_guest_door_no_activity:
- entity_id: sensor.time
- value_template: >
- {{ (now().timestamp() - as_timestamp(states.binary_sensor.openclose_22.last_changed)) | int //60 > 1440 }}
- ## Door/Windows - Office Door
- sensor_check_dws_office_door_no_activity:
- entity_id: sensor.time
- value_template: >
- {{ (now().timestamp() - as_timestamp(states.binary_sensor.openclose_21.last_changed)) | int //60 > 780 }}
- ## Door/Windows - Living Room Door
- sensor_check_dws_livingroom_door_no_activity:
- entity_id: sensor.time
- value_template: >
- {{ (now().timestamp() - as_timestamp(states.binary_sensor.window_door_sensor.last_changed)) | int //60 > 780 }}
- ## Door/Windows - Guest Bathroom Door
- sensor_check_dws_guestbathroom_door_no_activity:
- entity_id: sensor.time
- value_template: >
- {{ (now().timestamp() - as_timestamp(states.binary_sensor.window_door_sensor_2.last_changed)) | int //60 > 780 }}
- ## Door/Windows - Ensuite Door
- sensor_check_dws_ensuite_door_no_activity:
- entity_id: sensor.time
- value_template: >
- {{ (now().timestamp() - as_timestamp(states.binary_sensor.window_door_sensor_3.last_changed)) | int //60 > 780 }}
- ## Door/Windows - Master Bedroom Door
- sensor_check_dws_masterbedroom_door_no_activity:
- entity_id: sensor.time
- value_template: >
- {{ (now().timestamp() - as_timestamp(states.binary_sensor.window_door_sensor_4.last_changed)) | int //60 > 780 }}
- ## Door/Windows - Spare Room Door
- sensor_check_dws_spare_door_no_activity:
- entity_id: sensor.time
- value_template: >
- {{ (now().timestamp() - as_timestamp(states.binary_sensor.window_door_sensor_5.last_changed)) | int //60 > 1440 }}
- ## 433 PIR - Ground PIR
- sensor_check_pir_ground_no_activity:
- entity_id: sensor.time
- value_template: >
- {{ (now().timestamp() - as_timestamp(states.binary_sensor.ground_hallway_motion.last_changed)) | int //60 > 780 }}
- ## 433 PIR - First PIR
- sensor_check_pir_first_no_activity:
- entity_id: sensor.time
- value_template: >
- {{ (now().timestamp() - as_timestamp(states.binary_sensor.first_hallway_motion.last_changed)) | int //60 > 780 }}
- ## 433 Letter - Letterbox
- sensor_check_433_letter_no_activity:
- entity_id: sensor.time
- value_template: >
- {{ (now().timestamp() - as_timestamp(states.binary_sensor.letter_box.last_changed)) | int //60 > 780 }}
- ## 433 Doorbell - Doorbell
- sensor_check_433_doorbell_no_activity:
- entity_id: sensor.time
- value_template: >
- {{ (now().timestamp() - as_timestamp(states.binary_sensor.front_doorbell.last_changed)) | int //60 > 10080 }}
- ## 433 Smoke - Smoke Alarm
- sensor_check_smoke_no_activity:
- entity_id: sensor.time
- value_template: >
- {{ (now().timestamp() - as_timestamp(states.binary_sensor.fire_alarm.last_changed)) | int //60 > 10080 }}
- ## Zigbee PIR - Second Floor
- sensor_check_zigpir_secondfloor_no_activity:
- entity_id: sensor.time
- value_template: >
- {{ (now().timestamp() - as_timestamp(states.binary_sensor.tradfri_motion_sensor.last_changed)) | int //60 > 780 }}
- ## Zigbee PIR - Kitchen
- sensor_check_zigpir_kitchen_no_activity:
- entity_id: sensor.time
- value_template: >
- {{ (now().timestamp() - as_timestamp(states.binary_sensor.kitchen_motion_sensor2.last_changed)) | int //60 > 780 }}
- ## Zigbee Light - Living Room Lamp
- sensor_check_ziglight_livingroom_no_activity:
- entity_id: sensor.time
- value_template: >
- {{ (now().timestamp() - as_timestamp(states.light.living_room_lamp.last_changed)) | int //60 > 780 }}
- ## Zigbee Light - Second Floor Office Light
- sensor_check_ziglight_gu10office_no_activity:
- entity_id: sensor.time
- value_template: >
- {{ (now().timestamp() - as_timestamp(states.light.second_ceiling_office.last_changed)) | int //60 > 780 }}
- ## Zigbee Light - Second Floor Master Light
- sensor_check_ziglight_gu10master_no_activity:
- entity_id: sensor.time
- value_template: >
- {{ (now().timestamp() - as_timestamp(states.light.second_ceiling_master.last_changed)) | int //60 > 780 }}
- ## Zigbee Light - Office Light
- sensor_check_ziglight_office_no_activity:
- entity_id: sensor.time
- value_template: >
- {{ (now().timestamp() - as_timestamp(states.light.office_light.last_changed)) | int //60 > 780 }}
- ## Zigbee Temp - Ground Floor Temp
- sensor_check_zigtemp_ground_no_activity:
- entity_id: sensor.time
- value_template: >
- {{ (now().timestamp() - as_timestamp(states.light.sensor.temperature_27.last_changed)) | int //60 > 180 }}
- ## Zigbee Temp - First Floor Temp
- sensor_check_zigtemp_first_no_activity:
- entity_id: sensor.time
- value_template: >
- {{ (now().timestamp() - as_timestamp(states.light.sensor.temperature_23.last_changed)) | int //60 > 180 }}
- ## Zigbee Temp - Second Floor Temp
- sensor_check_zigtemp_second_no_activity:
- entity_id: sensor.time
- value_template: >
- {{ (now().timestamp() - as_timestamp(states.light.sensor.multi_sensor_2.last_changed)) | int //60 > 180 }}
- ## 433 Smoke - Smoke Alarm
- sensor_check_smoketest_no_activity:
- entity_id: sensor.time
- value_template: >
- {{ (now().timestamp() - as_timestamp(states.binary_sensor.fire_alarm.last_updated)) | int //60 > 5 }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement