Yeelight problem light.toggle in automation

hello, i have 2 yeelight (rgb bulb first model) i’ve added

yeelight:
devices:
192.168.1.8:
name: Luce Salotto
192.168.1.11:
name: Luce Camera

on the configuration file, that is working from almost 2 years now, but a few months now i have some issue in the automation, i have a button that execute an automation, that just execute a light.toggle on the yeelight device, the strange thing is that it does not work, but if i change the automation to light.turn_off o light.turn_on it work, but i don’t want to create 2 automation for every light?

any idea why is that ?