Enable "Set Previous Value" via MQTT for Home Assistant
The Feature
As a Home Assistant user, I would like to be able to execute the "Set Previous Value" function via MQTT, so that I can update and correct the previous value directly from Home Assistant, similar to how the "Start Round" function can already be triggeredfrom Home Assistant.
This would be especially useful when I am away from home for an extended period and encounter incorrect readings. Currently, correcting these values requires in my setup access to the local network. By exposing the "Set Previous Value" functionality through MQTT, I could securely adjust erroneous readings remotely via Home Assistant, without needing direct local network access.
Acceptance Criteria
- The "Set Previous Value" function can be triggered via MQTT.
- Home Assistant can publish a value through MQTT to update the previous value.
- The implementation follows the same integration concept as the existing "Start Round" MQTT functionality.
- Changes are applied immediately and reflected in the device/system state.
- The feature works remotely through Home Assistant, provided MQTT connectivity is available.
Business Value -Enables remote correction of faulty readings.
- Improves usability for Home Assistant users.
Source: jomjol/AI-on-the-edge-device