Simple Automation triggers via hand but not in live mode

So,

i have a very simple automation, if I trigger it via the menu in hassio, it works fine, but for any reason it does not work in real time.

Before the update to 0.68, it worked.
I jumped from 0.66.x to 0.68 straight.

Again, if I trigger it via hand, it turns off the printer, so the command to turn off is working fine and the names are correct too.
The only think I can imagine is that the sensor.sensor.octoprint_job_percentage is not seen correctly, but in the UI I can see the same percentage as on the printer.

- alias: Printer done, turn off
  trigger:
  - platform: state
    entity_id: sensor.octoprint_job_percentage
    to: '100.0'
  action:
  - delay: 00:00:30
  - service: switch.turn_off
    entity_id: switch.tplink_switch 

Any ideas where to check why its not working.?
Oh, and the automation is enabled :smiley:

Regards
Crey

Does this work…

- alias: Printer done, turn off
  trigger:
  - platform: numeric_state
    entity_id: sensor.octoprint_job_percentage
    above: 99
  action:
  - delay: 00:00:30
  - service: switch.turn_off
    entity_id: switch.tplink_switch

Do not know yet, but will try this approach.

Will inform about the output asap

Regards
Crey

1 Like

Hi,

today I had time to check the new automation.

I changed the value to 99.9 just to be sure it does not got off to early.
This is working fine now.

Thank you very much.

Regards
Crey

1 Like