the switch from projector to tv now rely on an input_boolean (instead of the position of the screen), this made the whole things more reactive
This commit is contained in:
1 parent
d79bba15b0
commit
8a8cb02296
1 file changed
+14
-17
+14
-17
@@ -25,7 +25,8 @@ samsung_the_frame:
|
|||||||
power_off:
|
power_off:
|
||||||
trigger_conditions:
|
trigger_conditions:
|
||||||
- binary_sensor.is_everybody_sleeping or binary_sensor.is_living_room_sleeping or not binary_sensor.someone_home
|
- binary_sensor.is_everybody_sleeping or binary_sensor.is_living_room_sleeping or not binary_sensor.someone_home
|
||||||
- binary_sensor.projector_on or binary_sensor.projector_screen_down
|
- binary_sensor.projector_screen_down
|
||||||
|
#hdmi: binary_sensor.vertex2_tx0_plus5_for_a_while and binary_sensor.vertex2_has_input_signal and not binary_sensor.projector_screen_down
|
||||||
hdmi: binary_sensor.vertex2_has_input_signal and not binary_sensor.projector_screen_down
|
hdmi: binary_sensor.vertex2_has_input_signal and not binary_sensor.projector_screen_down
|
||||||
manual: binary_sensor.is_tv_on and not binary_sensor.tv_auto_shutdown
|
manual: binary_sensor.is_tv_on and not binary_sensor.tv_auto_shutdown
|
||||||
tv_off: not binary_sensor.living_room_occupancy
|
tv_off: not binary_sensor.living_room_occupancy
|
||||||
@@ -74,7 +75,7 @@ w4000i:
|
|||||||
time: 30
|
time: 30
|
||||||
continuous_condition.has_allm_signal_for_a_while:
|
continuous_condition.has_allm_signal_for_a_while:
|
||||||
conditions: binary_sensor.vertex2_allm
|
conditions: binary_sensor.vertex2_allm
|
||||||
time: 5
|
time: 10
|
||||||
|
|
||||||
attributes_override:
|
attributes_override:
|
||||||
icon: sensor.projector_icon
|
icon: sensor.projector_icon
|
||||||
@@ -121,11 +122,10 @@ bravia_theatre:
|
|||||||
trigger_conditions: sensor.vertex2_output_selected == 'Projector' or input_boolean.use_bravia_theater_for_the_frame
|
trigger_conditions: sensor.vertex2_output_selected == 'Projector' or input_boolean.use_bravia_theater_for_the_frame
|
||||||
blocking_conditions: not binary_sensor.vertex2_has_input_signal
|
blocking_conditions: not binary_sensor.vertex2_has_input_signal
|
||||||
|
|
||||||
projection_screen:
|
projection_screen_switch:
|
||||||
module: smartshutter
|
module: smartswitch
|
||||||
class: SmartShutter
|
class: SmartSwitch
|
||||||
entity: cover.living_room_projection_screen
|
entity: input_boolean.projection_screen
|
||||||
close_position: 22
|
|
||||||
|
|
||||||
toggle_events:
|
toggle_events:
|
||||||
apple_tv_mute_long_press:
|
apple_tv_mute_long_press:
|
||||||
@@ -137,16 +137,13 @@ projection_screen:
|
|||||||
new_state:
|
new_state:
|
||||||
state: "on"
|
state: "on"
|
||||||
|
|
||||||
# close_conditions: # close mean screen down
|
projection_screen:
|
||||||
# # when the projector is turn back on, it can happen that this condition is evaluated before projector_off_for_a_while is updated
|
module: smartshutter
|
||||||
# # so I need to test both binary_sensor.projector_on and not binary_sensor.projector_off_for_a_while
|
class: SmartShutter
|
||||||
# trigger_conditions: binary_sensor.projector_on or not binary_sensor.projector_off_for_a_while
|
entity: cover.living_room_projection_screen
|
||||||
# disable_conditions:
|
close_position: 22
|
||||||
# - binary_sensor.day_interval_night and not binary_sensor.projector_on
|
|
||||||
# - binary_sensor.is_everybody_sleeping and not binary_sensor.projector_on
|
|
||||||
|
|
||||||
open_conditions: # close mean screen up
|
close_conditions: input_boolean.projection_screen
|
||||||
trigger_conditions: binary_sensor.projector_off_for_a_while
|
|
||||||
|
|
||||||
vertex_2:
|
vertex_2:
|
||||||
module: vertex2
|
module: vertex2
|
||||||
@@ -158,7 +155,7 @@ vertex_2:
|
|||||||
binary_sensor.is_tv_on: false
|
binary_sensor.is_tv_on: false
|
||||||
binary_sensor.vertex2_has_input_signal: false
|
binary_sensor.vertex2_has_input_signal: false
|
||||||
sensors:
|
sensors:
|
||||||
binary_sensor.projector_screen_down: cover.living_room_projection_screen.current_position < 90
|
binary_sensor.projector_screen_down: input_boolean.projection_screen
|
||||||
|
|
||||||
input_config:
|
input_config:
|
||||||
default:
|
default:
|
||||||
|
|||||||
Reference in new issue
Block a user