Help toggle light from Nextion display using esphome

Hi!
I am new to using displays to control Home Assistant, however I’ve used esphome succesfully before.
I now have hooked up a Nextion display to a D1 Mini V4, and everything seems to be working. The device is online, and when looking at the loggs the press and release of the buttons seem to be detected.
However, nothing happens.

I have used the esphome website as a reference just like I always do, but this time I can’t seem to figure out what I’m doing wrong.

Anyone have an idea what could be the problem?

It might be something really easy or stupid, I just don’t know.

binary_sensor:
  - platform: nextion
    name: "Ananas Toggle Button"   
    page_id: 0
    component_name: bAnanasToggle
    on_release:
      then:
        - homeassistant.service:
            service: light.toggle
            data:
              entity_id: light.ananas


Hi

Just checking have you enabled ‘Allow device to perform Home Assistant actions as detailed below. Also services are now called actions so would be worth changing as services will be deprecated at some point.