Z2M - Setting "Home Assistant legacy action sensors" failed with error

For my EnOcean PTM 215z switches I need to enable the setting “Home Assistant legacy action sensors” under Z2M->Settings-> Home Assistant integration, but when I do i get the error “Extension with name HomeAssistant already present.”
Screenshot:

I need to enable this setting or the EnOcean switches does not have any action entity, which in turn means I cannot add them to a blueprint and work as switches.

I can’t find any other posts dealing with this issue.
Any ideas on where to start?

Do you though?

Everything you can do with the legacy sensor you can do with the modern (aka experimental) sensors.

Either way you should be able to change it in config/zigbee2mqtt/configuration.yaml See: Home Assistant integration | Zigbee2MQTT

Thank you @tom_l , it worked setting it in yaml :slight_smile:
Action entity is showing on my switches now!

Great but they will be depreciated eventually.

Everything you can do with action (legacy) entities you can do with event (new) entities. e.g.

- id: 23cd99f6-6054-43cc-9fbe-a89570fb0bfa
  alias: Master Bed Button Events
  triggers:
  - trigger: state
    entity_id: event.master_bed_button_action
    to: ~
  conditions:
  - condition: template
    value_template: "{{trigger.from_state.state != 'unavailable'}}"
  actions:
  - choose:
    - conditions:
      - condition: template
        value_template: "{{trigger.to_state.attributes.event_type == 'single'}}"
      sequence:
      - action: light.toggle
        target:
          entity_id: 
          - light.lifx_mstr_bed_lamp_left
          - light.lifx_mstr_bed_lamp_right
      - action: lifx.set_state
        entity_id: 
        - light.lifx_mstr_bed_lamp_left
        - light.lifx_mstr_bed_lamp_right
        data:
          brightness: "{{ states('sensor.calculated_light_brightness_25pct_min')|int(0) }}"
          color_temp_kelvin: 2700
    - conditions:
      - condition: template
        value_template: "{{trigger.to_state.attributes.event_type == 'double'}}"
      sequence:
      - action: script.master_bed_close
    - conditions:
      - condition: template
        value_template: "{{trigger.to_state.attributes.event_type == 'triple'}}"
      sequence:
      - action: script.master_bed_east_open
    - conditions:
      - condition: template
        value_template: "{{trigger.to_state.attributes.event_type == 'hold'}}"
      sequence:
      - action: script.master_bed_favourite