Enhance motion tracking and occupancy detection with new sensor configurations and improved logic
This commit is contained in:
14
apps/global/virtualsensors.yaml
Normal file
14
apps/global/virtualsensors.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
virtual_sensors:
|
||||
module: virtualsensors
|
||||
class: VirtualSensorsApp
|
||||
priority: 10 # default priority app is 50, since most of them require sensors created by virtual sensors, it's important that virtual_sensors start first
|
||||
|
||||
sensors:
|
||||
continuous_condition.is_apple_tv_idle:
|
||||
time: 5
|
||||
conditions: media_player.apple_tv == 'paused' or media_player.apple_tv == 'idle' or media_player.apple_tv == 'standby'
|
||||
|
||||
binary_sensor.is_apple_tv_on: media_player.apple_tv != 'off'
|
||||
binary_sensor.someone_home: person.maeva == 'home' or person.pierre == 'home'
|
||||
binary_sensor.is_everybody_sleeping: input_boolean.sleeping
|
||||
|
||||
Reference in New Issue
Block a user