home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.53k stars 29.91k forks source link

BTHome Multibutton device action as Trigger got‘s malformed #120127

Closed Devil-of-Chaos closed 1 week ago

Devil-of-Chaos commented 2 months ago

The problem

You get an malformed response if you try to add an Automation Trigger from Multibutton BTHome device.

IMG_7080 IMG_7082

There are no debug logs because pre validation prevents if you try to save.

What version of Home Assistant Core has the issue?

core-2024.6.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

BTHome

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 1 month ago

Hey there @ernst79, mind taking a look at this issue as it has been labeled with an integration (bthome) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `bthome` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign bthome` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


bthome documentation bthome source (message by IssueLinks)

motababravo commented 3 weeks ago

Same for the "Shelly BLU RC Button 4", which makes it unusable. Any Updates on the issue ? This happens only for the sensors that contains "_" in the trigger's names.

Devil-of-Chaos commented 3 weeks ago

This Report is for both Shelly Blu 4 devices.

But you can currently use this for custom usage:


platform: event
event_type: bthome_ble_event
event_data:
  event_type: press
  event_class: button_3
  device_id: fbc8eXXXXXXXXXXXXXXXXXXXX
enabled: true
motababravo commented 3 weeks ago
trigger:
  - platform: event
    event_type: bthome_ble_event
    event_data:
      event_type: press
      event_class: button_1
      device_id: 8f976f4af4f3228e57e9bf2b961791fc
    id: b1press
  - platform: event
    event_type: bthome_ble_event
    event_data:
      event_type: double_press
      event_class: button_1
      device_id: 8f976f4af4f3228e57e9bf2b961791fc
    id: b1double

Amazing !!! It works !!! 10q so much !

skoog84 commented 1 week ago

Got the same issue with Shelly BLU RC Button 4. Homeassistant Core 2024.9.0

Message malformed: extra keys not allowed @ data['type']

description: ""
mode: single
trigger:
  - platform: device
    device_id: b41ad6e42a97dd211def0341607d0f47
    domain: bthome
    type: button_1
    subtype: press
condition: []
action:
  - action: light.toggle
    metadata: {}
    data: {}
    target:
      entity_id: light.soffa_1
alias: New automation
Ernst79 commented 1 week ago

This issue is is a duplicate of #124851

This issue is fixed in #125183, which will be included in one of the following releases.