iBoolean Not Working

Hello
I’m trying to use iboolean but it never works from UI frontend. Here is my code:

configuration.yaml
input_boolean:
test:
` initial: off

automation.yaml

  • alias: salida test
    trigger:

    • platform: state
      entity_id: input_boolean.test
      from: ‘off’
      to: ‘on’
      action:
    • service: notify.telegram
      data:
      message: “Test ON”
  • alias: llegada test
    trigger:

    • platform: state
      entity_id: input_boolean.test
      from: ‘on’
      to: ‘off’
      action:
    • service: notify.telegram
      data:
      message: “Test OFF”

Syntaxys is ok but i can’t post right here… any errors on log

I’ll take your word for it that you syntax is OK.
I’ll also have to assume that you have tested your notification system, and that it works.
I can tell you that you a ‘back-tick’ character at the end of your quotes ‘on’ and ‘off’ in both automations.
If you have this character in your actual yaml files, that will cause the automations to fail, (but also causes the config to fail the startup tests.

I can tell you that I copied your automation into my test system, and once I fixed the formatting, and fixed the back-tic issues, the automation worked as expected. I used persistent notification instead of notify, because I don’t have any notify components set up in my test system. Here is my modified code:

- alias: llegada test
  trigger:
    platform: state
    entity_id: input_boolean.attic_fan
    from: 'on'
    to: 'off'

  action:
    service: persistent_notification.create
    data:
      message: "test fired"
      title: "test"

Hello!

First of all, thanks for reply, back-tick is a bug of write code on forum. here you have code without modiboolean_code_test.yaml (413 Bytes)