2024年11月24日星期日 上午1:08:52

automation turn on light on book bedroom

7 个月 前
#30857 引用
Book Room | A - turn on  input  only when  multi motion Aqara Motion Sensor CN
  Version (RTCGQ11LM) with script by homekit contreller  in  Bedroom

nightlight mode or day mode
0
7 个月 前
#30858 引用
Script- turn on yeelink.ceil26 with nightlight mode or day mode

http://192.168.2.50:8123/config/script/edit/script_set_to_nightlight_mode2



alias: Script- turn on yeelink.ceil26 with  nightlight mode or day mode
sequence:
  - choose:
      - conditions:
          - condition: state
            entity_id: input_select.input_select_husband_book_room_status_dropdown
            state: Sleep mode
        sequence:
          - service: light.turn_on
            metadata: {}
            data: {}
            target:
              entity_id: >-
                light.yeelight_ceil26_0x1c5c4959_by_yeelight_integration_nightlight
      - conditions:
          - condition: state
            entity_id: input_select.input_select_husband_book_room_status_dropdown
            state: Work
        sequence:
          - service: light.turn_on
            metadata: {}
            data: {}
            target:
              entity_id: light.yeelight_ceil26_0x1c5c4959
mode: single


0
7 个月 前
#30859 引用
http://192.168.2.50:8123/config/script/edit/script_turn_off_yeelink_ceil26_with_nightlight_mode_an_day_mode

alias: Script- turn off yeelink.ceil26 with nightlight mode an day mode
sequence:
  - service: light.turn_off
    metadata: {}
    data: {}
    target:
      entity_id:
        - light.yeelight_ceil26_0x1c5c4959_by_yeelight_integration_nightlight
        - light.yeelight_ceil26_0x1c5c4959
mode: single
0
7 个月 前
#30860 引用

http://192.168.2.50:8123/config/automation/edit/1711468855169





alias: >-
  Book Room | A - turn on  input  only when  multi motion Aqara Motion Sensor CN
  Version (RTCGQ11LM) with script by homekit contreller  in  Bedroom
description: >-
  http://localhost:4999/boards/topic/14409/automation-turn-on-light-on-book-bedroom/page/2#30858
  http://192.168.2.50:8123/config/automation/edit/1711468855169
trigger:
  - platform: state
    entity_id:
      - binary_sensor.motion_sensor_4
      - binary_sensor.aqara_motion_sensor_e1_cn_version_rtcgq15lm_no1_7
      - binary_sensor.aqara_motion_sensor_p1_cn_version_rtcgq14lm_3
condition:
  - condition: state
    entity_id: input_boolean.input_boolean_dark
    state: "on"
action:
  - service: input_boolean.turn_on
    data: {}
    target:
      entity_id: input_boolean.input_boolean_husband
  - service: script.script_set_to_nightlight_mode2
    data: {}
  - delay:
      hours: 0
      minutes: 1
      seconds: 0
      milliseconds: 0
  - service: input_boolean.turn_off
    data: {}
    target:
      entity_id: input_boolean.input_boolean_husband
  - service: script.script_turn_off_yeelink_ceil26_with_nightlight_mode_an_day_mode
    data: {}
mode: restart


0