Achronite / energenie-ener314rt

Node module for RaspberryPi energenie ener314-rt board, used by node-red-contrib-energenie-ener314rt
MIT License
4 stars 2 forks source link

Return command=0 and retries=0 on success for cached Commands #26

Closed Achronite closed 1 year ago

Achronite commented 1 year ago

When a cached command has been successful the code stops retrying a command. However, it does not return the reset command or retries values to the client. This can cause issue where a client (for example Home Assistant) is monitoring these specific values so that it knows when to send the next request to the device.

This change would return the command and retries as 0 in the first response message when the cached command is cleared.