Trigger automation when sensor is read

Hi Koying, I found the problem. the script is correctly executed but the frontend doesn’t show the change since I return the same value. In the end homeassistant.update_entity works as expected.
thanks

1 Like