i am using modbus on. a flair unit.
i noticed that when i initiate a write it does not execute immediately but it waits until the update_interval kicks in.
for sensors an update interval of 15s is ok but when i change a register i want it to be executed at once instead of waiting for the update
Quite surely your write requests are executed immediately, but they are updated on esphome by read request eventually which goes by update interval.
You can see all this on esphome logs.
ok clear. thanks
i thought it was updated after the interval
Update:
knowing the the write is immediately i added optimistic: true to all those switches/settings.
now they indeed update instantly in the gui also
1 Like
Ok, but be aware that only the read request confirms that the write command was really received by slave. With optimistic approach you only have requested ,“expected” value.
yes i know.
however i can see if the writes has been succesfull.
eg i use it to change fan speeds so if the fanspeed did not change it did not work