Skip to content

Latest commit

 

History

History

aqara_h1_dimmer

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

Subscribe

☑️ Пакадж из обзора

aqara_h1:

    automation:
    
    - id: 'aqara_h1_light_toggle'
      alias: Aqara H1 light toggle
      description: Single click for on/off light
      trigger:
      - platform: state
        entity_id:
        - sensor.0x54ef4410007bb24e_action
        to: single
      condition: []
      action:
        - choose:
          - conditions:
              - condition: state
                entity_id: light.0x00158d0004282c21
                state: 'off'
            sequence:
              - service: light.turn_on
                entity_id:
                  - light.0x00158d0004282c21
                data_template:
                  brightness_pct: 60
                  kelvin: 4000
          - conditions:
              - condition: state
                entity_id: light.0x00158d0004282c21
                state: 'on'
            sequence:
              - service: light.turn_off
                entity_id:
                  - light.0x00158d0004282c21


    - id: 'aqara_h1_brightness_change_1'
      alias: Aqara H1 brightness change_1
      description: Change brightness no adjustments
      trigger:
      - platform: state
        entity_id:
          - sensor.0x54ef4410007bb24e_action_rotation_percent
        from: unknown
      condition: 
      - condition: state
        entity_id: light.0x00158d0004282c21
        state: 'on'
      action:
        - service: light.turn_on
          data_template:
            brightness: >-
              {{((state_attr('light.0x00158d0004282c21','brightness')|int(1))+(trigger.to_state.state|int(1)))}}
          target:
            entity_id: light.0x00158d0004282c21
          enabled: true


    - id: 'aqara_h1_brightness_change_2'
      alias: Aqara H1 brightness change_2
      description: Change brightness with adjustments - [2.55
      trigger:
      - platform: state
        entity_id:
          - sensor.0x54ef4410007bb24e_action_rotation_percent
        from: unknown
      condition: 
      - condition: state
        entity_id: light.0x00158d0004282c21
        state: 'on'
      action:
        - service: light.turn_on
          data_template:
            brightness: >-
              {{((state_attr('light.0x00158d0004282c21','brightness')|int(1))+(trigger.to_state.state|float(1))*2.55)|int(1)}}
          target:
            entity_id: light.0x00158d0004282c21
          enabled: true

Поддержать развитие проекта Умный дом с Alex Kvazis

Youtube Sponsorship Patreon Support Buy Me A Coffee PayPal Me

Или перевод любой суммы на -

  • Webmoney - Z243592584952
  • BTC - 1PAjXcNbLtUKLY8d5HDnfxRqc5Zchj1fU3
  • TON - UQBEShkfKCFhvqlTs_oIpa6kFIQJguJR30hDXany1cCAbCfe
  • USDT (TRON (TRC20)) - TEpnJcLDRbkwq5oQpjVET9NbPpHKB7QMrD