Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blueprint IKEA Remote does not work with Core Release 2021.4.5 #49343

Closed
Petervanoos opened this issue Apr 17, 2021 · 5 comments
Closed

Blueprint IKEA Remote does not work with Core Release 2021.4.5 #49343

Petervanoos opened this issue Apr 17, 2021 · 5 comments

Comments

@Petervanoos
Copy link

The problem

Remote does not respond after upgrading.

What is version of Home Assistant Core has the issue?

2021.4.5

What was the last working version of Home Assistant Core?

2021.4.4

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Blueprint 'Z2M - IKEA five button remote for lights'

Link to integration documentation on our website

No response

Example YAML snippet

blueprint:
  name: Z2M - IKEA five button remote for lights
  description: |
    Control lights with an IKEA five button remote (the round ones).

    The middle "on" button, toggle the lights on/off to the last set brightness
    (unless the force brightness is toggled on in the blueprint).

    Dim up/down buttons will change the brightness smoothly and can be pressed
    and hold until the brightness is satisfactory.

    The "left" and "right" buttons can be assigned to a short and long button
    press action. This allows you to assign, e.g., a scene or anything else.

    This is a fork of @Frenck's blueprint for ZHA found here https://community.home-assistant.io/t/zha-ikea-five-button-remote-for-lights/253804

  domain: automation
  input:
    remote:
      name: Remote
      description: IKEA remote to use
      selector:
        entity:
          domain: sensor
    light:
      name: Light(s)
      description: The light(s) to control
      selector:
        target:
          entity:
            domain: light
    force_brightness:
      name: Force turn on brightness
      description: >
        Force the brightness to the set level below, when the "on" button on
        the remote is pushed and lights turn on.
      default: false
      selector:
        boolean:
    brightness:
      name: Brightness
      description: Brightness of the light(s) when turning on
      default: 50
      selector:
        number:
          min: 0
          max: 100
          mode: slider
          step: 1
          unit_of_measurement: "%"
    button_left_short:
      name: Left button - short press
      description: Action to run on short left button press
      default: []
      selector:
        action:
    button_left_long:
      name: Left button - long press
      description: Action to run on long left button press
      default: []
      selector:
        action:
    button_right_short:
      name: Right button - short press
      description: Action to run on short right button press
      default: []
      selector:
        action:
    button_right_long:
      name: Right button - long press
      description: Action to run on long right button press
      default: []
      selector:
        action:

mode: restart
max_exceeded: silent

variables:
  force_brightness: !input force_brightness

trigger:
  - platform: state
    entity_id: !input remote
    attribute: action

action:
  - variables:
      command: "{{ trigger.to_state.state }}"
  - choose:
      - conditions:
          - "{{ command == 'toggle' }}"
        sequence:
          - choose:
              - conditions: "{{ force_brightness }}"
                sequence:
                  - service: light.toggle
                    target: !input light
                    data:
                      transition: 1
                      brightness_pct: !input brightness
            default:
              - service: light.toggle
                target: !input light
                data:
                  transition: 1

      - conditions:
          - "{{ command == 'brightness_up_click' }}"
        sequence:
          - service: light.turn_on
            target: !input light
            data:
              brightness_step_pct: 10
              transition: 1

      - conditions:
          - "{{ command == 'brightness_up_hold' }}"
        sequence:
          - repeat:
              until:
                - condition: state
                  entity_id: !input remote
                  state: brightness_up_release
                  attribute: action
              sequence:
                - service: light.turn_on
                  data:
                    brightness_step_pct: 10
                    transition: 1
                  target: !input light
                - delay: '1'

      - conditions:
          - "{{ command == 'brightness_down_click' }}"
        sequence:
          - service: light.turn_on
            target: !input light
            data:
              brightness_step_pct: -10
              transition: 1

      - conditions:
          - "{{ command == 'brightness_down_hold' }}"
        sequence:
          - repeat:
              until:
                - condition: state
                  entity_id: !input remote
                  state: brightness_down_release
                  attribute: action
              sequence:
                - service: light.turn_on
                  data:
                    brightness_step_pct: -10
                    transition: 1
                  target: !input light
                - delay: '1'

      - conditions:
          - "{{ command == 'arrow_left_click' }}"
        sequence: !input button_left_short

      - conditions:
          - "{{ command == 'arrow_left_hold' }}"
        sequence: !input button_left_long

      - conditions:
          - "{{ command == 'arrow_right_click' }}"
        sequence: !input button_right_short

      - conditions:
          - "{{ command == 'arrow_right_hold' }}"
        sequence: !input button_right_long

Anything in the logs that might be useful for us?

Nothing found.

Additional information

Ikea Remote via Z2M.

Zigbee light group via Configuration in configuration.yaml:

  • platform: mqtt
    schema: json
    name: Zigbee Keuken Extra Lichten
    command_topic: "zigbee2mqtt/Zigbee Keuken Extra Lichten/set"
    state_topic: "zigbee2mqtt/Zigbee Keuken Extra Lichten"
    brightness: true
    color_temp: true

After Rollback (to Core 2021.4.4) via Snapshot remote responds again.

@fabir-git
Copy link

I have the same Problem with my Hue Dimmer Switches. The Entity of the switch shows the action in HomeAssistant but the automation (blueprint) does not fire.

@ssiergl
Copy link

ssiergl commented Apr 17, 2021

should be related to this

#49247

@probot-home-assistant
Copy link

blueprint documentation
blueprint source
(message by IssueLinks)

@probot-home-assistant
Copy link

Hey there @home-assistant/core, mind taking a look at this issue as its been labeled with an integration (blueprint) you are listed as a codeowner for? Thanks!
(message by CodeOwnersMention)

@Petervanoos
Copy link
Author

Solved with Core Release 2021.4.6

@github-actions github-actions bot locked and limited conversation to collaborators May 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants