add The Frame and w4000i integration

This commit is contained in:
2026-08-01 11:26:40 +02:00
parent e4c63e19a0
commit 736c03a034
6 changed files with 634 additions and 7 deletions
+96 -6
View File
@@ -109,12 +109,62 @@ bravia_theatre:
smart_conditions: binary_sensor.vertex2_has_input_signal
w4000i:
module: smartswitch
class: SmartSwitch
entity: media_player.benq_w4000i
# w4000i:
# module: smartswitch
# class: SmartSwitch
# entity: media_player.benq_w4000i
smart_conditions: binary_sensor.vertex2_has_input_signal
# smart_conditions: binary_sensor.vertex2_has_input_signal
w4000i:
module: smartprojector_benq_over_telnet
class: SmartProjector
entity: switch.projector
telnet_connection:
ip: 10.0.0.40
port: 8000
power_plug:
entity: switch.living_room_projector_plug
power_sensor: sensor.living_room_projector_plug_power
power_threeshold: 5
conditions:
trigger_conditions:
- binary_sensor.someone_home and not (binary_sensor.is_everybody_sleeping or binary_sensor.is_living_room_sleeping)
- sensor.living_room_projector_plug_power > 10 or binary_sensor.projector_on # don't remove this one or it will fry the projector
virtual_sensors:
sensors:
value_selector.projector_icon:
projector_off:
conditions: not super
value: "'mdi:projector-off'"
projector_on:
conditions: True
value: "'mdi:projector'"
continuous_condition.projector_ready:
conditions: switch.living_room_projector_plug
time: 30
attributes_override:
icon: sensor.projector_icon
friendly_name: Projecteur
press_enter_event: send_projector_enter
projector_ready_conditions: binary_sensor.projector_ready
#state_conditions: binary_sensor.projector_on
#cooling_down_sensor: binary_sensor.projector_cooling_down
smart_conditions:
trigger_conditions: binary_sensor.vertex2_has_input_signal
disable_conditions:
- self == 'unavailable'
#- not binary_sensor.projector_screen_down
#- binary_sensor.projector_cooling_down
- switch.projector.warming_up
mezzanine_curtains:
module: smartshutter
@@ -139,4 +189,44 @@ living_room_sleep_switch:
entity_id: event.living_room_bilresa_button_bouton_2
new_state:
attributes:
event_type: multi_press_1
event_type: multi_press_1
samsung_the_frame:
module: samsungtheframe
class: SamsungTheFrame
ip_address: 10.0.0.58
#broadcast_address: 10.0.0.255
#mac_address: 98:06:3C:85:93:38
#wol_switch: switch.theframewol
wake_up_service: "esphome/ir_bridge_turn_on_the_frame"
app_list: # https://github.com/tavicu/homebridge-samsung-tizen/issues/291
- 3201907018807 # Netflix
- 3201910019365 # Prime
virtual_sensors:
default_values:
binary_sensor.tv_auto_shutdown: false
binary_sensor.tv_on: false
sensors:
value_selector.samsung_the_frame_target_state:
power_off:
trigger_conditions:
- 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
#hdmi: binary_sensor.vertex2_has_input_signal and not binary_sensor.projector_screen_down
#manual: binary_sensor.tv_on and not binary_sensor.tv_auto_shutdown
manual: binary_sensor.tv_on #and not binary_sensor.tv_auto_shutdown
tv_off: not binary_sensor.living_room_occupancy
art_mode: True
tv_state: sensor.samsung_the_frame_target_state
output_sensors:
is_on: binary_sensor.tv_on
is_art_mode: binary_sensor.tv_in_art_mode
tv_auto_shutdown: binary_sensor.tv_auto_shutdown
input_sensors:
power_plug: switch.the_frame_power_plug
power_plug_power: sensor.the_frame_power_plug_power