Advertisement
pqpxoxa

Sensor Check Checker

Sep 7th, 2020
297
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.18 KB | None | 0 0
  1. platform: template
  2. sensors:
  3. ## Door/Windows - Back Door
  4. sensor_check_dws_back_door_no_activity:
  5. entity_id: sensor.time
  6. value_template: >
  7. {{ (now().timestamp() - as_timestamp(states.binary_sensor.openclose_19.last_changed)) | int //60 > 780 }}
  8.  
  9. ## Door/Windows - Back Door
  10. sensor_check_dws_front_door_no_activity:
  11. entity_id: sensor.time
  12. value_template: >
  13. {{ (now().timestamp() - as_timestamp(states.binary_sensor.openclose_26.last_changed)) | int //60 > 780 }}
  14.  
  15. ## Door/Windows - Snug Door
  16. sensor_check_dws_snug_door_no_activity:
  17. entity_id: sensor.time
  18. value_template: >
  19. {{ (now().timestamp() - as_timestamp(states.binary_sensor.openclose_30.last_changed)) | int //60 > 780 }}
  20.  
  21. ## Door/Windows - Kitchen Door
  22. sensor_check_dws_kitchen_door_no_activity:
  23. entity_id: sensor.time
  24. value_template: >
  25. {{ (now().timestamp() - as_timestamp(states.binary_sensor.openclose_20.last_changed)) | int //60 > 780 }}
  26.  
  27. ## Door/Windows - Guest Door
  28. sensor_check_dws_guest_door_no_activity:
  29. entity_id: sensor.time
  30. value_template: >
  31. {{ (now().timestamp() - as_timestamp(states.binary_sensor.openclose_22.last_changed)) | int //60 > 1440 }}
  32.  
  33. ## Door/Windows - Office Door
  34. sensor_check_dws_office_door_no_activity:
  35. entity_id: sensor.time
  36. value_template: >
  37. {{ (now().timestamp() - as_timestamp(states.binary_sensor.openclose_21.last_changed)) | int //60 > 780 }}
  38.  
  39. ## Door/Windows - Living Room Door
  40. sensor_check_dws_livingroom_door_no_activity:
  41. entity_id: sensor.time
  42. value_template: >
  43. {{ (now().timestamp() - as_timestamp(states.binary_sensor.window_door_sensor.last_changed)) | int //60 > 780 }}
  44.  
  45. ## Door/Windows - Guest Bathroom Door
  46. sensor_check_dws_guestbathroom_door_no_activity:
  47. entity_id: sensor.time
  48. value_template: >
  49. {{ (now().timestamp() - as_timestamp(states.binary_sensor.window_door_sensor_2.last_changed)) | int //60 > 780 }}
  50.  
  51. ## Door/Windows - Ensuite Door
  52. sensor_check_dws_ensuite_door_no_activity:
  53. entity_id: sensor.time
  54. value_template: >
  55. {{ (now().timestamp() - as_timestamp(states.binary_sensor.window_door_sensor_3.last_changed)) | int //60 > 780 }}
  56.  
  57. ## Door/Windows - Master Bedroom Door
  58. sensor_check_dws_masterbedroom_door_no_activity:
  59. entity_id: sensor.time
  60. value_template: >
  61. {{ (now().timestamp() - as_timestamp(states.binary_sensor.window_door_sensor_4.last_changed)) | int //60 > 780 }}
  62.  
  63. ## Door/Windows - Spare Room Door
  64. sensor_check_dws_spare_door_no_activity:
  65. entity_id: sensor.time
  66. value_template: >
  67. {{ (now().timestamp() - as_timestamp(states.binary_sensor.window_door_sensor_5.last_changed)) | int //60 > 1440 }}
  68.  
  69. ## 433 PIR - Ground PIR
  70. sensor_check_pir_ground_no_activity:
  71. entity_id: sensor.time
  72. value_template: >
  73. {{ (now().timestamp() - as_timestamp(states.binary_sensor.ground_hallway_motion.last_changed)) | int //60 > 780 }}
  74.  
  75.  
  76. ## 433 PIR - First PIR
  77. sensor_check_pir_first_no_activity:
  78. entity_id: sensor.time
  79. value_template: >
  80. {{ (now().timestamp() - as_timestamp(states.binary_sensor.first_hallway_motion.last_changed)) | int //60 > 780 }}
  81.  
  82. ## 433 Letter - Letterbox
  83. sensor_check_433_letter_no_activity:
  84. entity_id: sensor.time
  85. value_template: >
  86. {{ (now().timestamp() - as_timestamp(states.binary_sensor.letter_box.last_changed)) | int //60 > 780 }}
  87.  
  88. ## 433 Doorbell - Doorbell
  89. sensor_check_433_doorbell_no_activity:
  90. entity_id: sensor.time
  91. value_template: >
  92. {{ (now().timestamp() - as_timestamp(states.binary_sensor.front_doorbell.last_changed)) | int //60 > 10080 }}
  93.  
  94. ## 433 Smoke - Smoke Alarm
  95. sensor_check_smoke_no_activity:
  96. entity_id: sensor.time
  97. value_template: >
  98. {{ (now().timestamp() - as_timestamp(states.binary_sensor.fire_alarm.last_changed)) | int //60 > 10080 }}
  99.  
  100. ## Zigbee PIR - Second Floor
  101. sensor_check_zigpir_secondfloor_no_activity:
  102. entity_id: sensor.time
  103. value_template: >
  104. {{ (now().timestamp() - as_timestamp(states.binary_sensor.tradfri_motion_sensor.last_changed)) | int //60 > 780 }}
  105.  
  106. ## Zigbee PIR - Kitchen
  107. sensor_check_zigpir_kitchen_no_activity:
  108. entity_id: sensor.time
  109. value_template: >
  110. {{ (now().timestamp() - as_timestamp(states.binary_sensor.kitchen_motion_sensor2.last_changed)) | int //60 > 780 }}
  111.  
  112. ## Zigbee Light - Living Room Lamp
  113. sensor_check_ziglight_livingroom_no_activity:
  114. entity_id: sensor.time
  115. value_template: >
  116. {{ (now().timestamp() - as_timestamp(states.light.living_room_lamp.last_changed)) | int //60 > 780 }}
  117.  
  118. ## Zigbee Light - Second Floor Office Light
  119. sensor_check_ziglight_gu10office_no_activity:
  120. entity_id: sensor.time
  121. value_template: >
  122. {{ (now().timestamp() - as_timestamp(states.light.second_ceiling_office.last_changed)) | int //60 > 780 }}
  123.  
  124. ## Zigbee Light - Second Floor Master Light
  125. sensor_check_ziglight_gu10master_no_activity:
  126. entity_id: sensor.time
  127. value_template: >
  128. {{ (now().timestamp() - as_timestamp(states.light.second_ceiling_master.last_changed)) | int //60 > 780 }}
  129.  
  130. ## Zigbee Light - Office Light
  131. sensor_check_ziglight_office_no_activity:
  132. entity_id: sensor.time
  133. value_template: >
  134. {{ (now().timestamp() - as_timestamp(states.light.office_light.last_changed)) | int //60 > 780 }}
  135.  
  136.  
  137. ## Zigbee Temp - Ground Floor Temp
  138. sensor_check_zigtemp_ground_no_activity:
  139. entity_id: sensor.time
  140. value_template: >
  141. {{ (now().timestamp() - as_timestamp(states.light.sensor.temperature_27.last_changed)) | int //60 > 180 }}
  142.  
  143. ## Zigbee Temp - First Floor Temp
  144. sensor_check_zigtemp_first_no_activity:
  145. entity_id: sensor.time
  146. value_template: >
  147. {{ (now().timestamp() - as_timestamp(states.light.sensor.temperature_23.last_changed)) | int //60 > 180 }}
  148.  
  149. ## Zigbee Temp - Second Floor Temp
  150. sensor_check_zigtemp_second_no_activity:
  151. entity_id: sensor.time
  152. value_template: >
  153. {{ (now().timestamp() - as_timestamp(states.light.sensor.multi_sensor_2.last_changed)) | int //60 > 180 }}
  154.  
  155.  
  156.  
  157. ## 433 Smoke - Smoke Alarm
  158. sensor_check_smoketest_no_activity:
  159. entity_id: sensor.time
  160. value_template: >
  161. {{ (now().timestamp() - as_timestamp(states.binary_sensor.fire_alarm.last_updated)) | int //60 > 5 }}
  162.  
  163.  
  164.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement