Releases: gurrier/localvolts
Added the 'demandInterval' attribute to CostsFlexUp Sensor
Deprecated function fixed plus code cleanup and improved error handling
Minor improvements
Addressed warning about deprecated function async_forward_entry_setup by replacing with async_forward_entry_setups
Improved error handling when no data returned from Localvolts API e.g. when incorrect NMI is supplied
Additional minor code cleanup
BUGFIX : NMI can be alphanumeric
Oops.
Code was validating NMI to be ONLY numeric. Now Alphanumeric.
bugfix : config flow enabled
The mainfest.json was missing "config_flow": true
This prevented the setup dialogs from appearing.
Setup dialog added
Some code refactoring and have added a setup dialog.
May be breaking change for some people. In which case, the integration can be safely removed and setup again.
The configuration.yaml fields are no longer required from prior releases. Instead the user will be queried for config parameters for the three fields
api_key: "abc123abc123abc123abc123abc123ab"
partner_id: "12345"
nmi_id: "1234567890"
Now using async operation for better performance. Also datalag sensor added.
Breaking change here is that the attribute previously used for indicating the data lag of getting data from Localvolts API is now removed in favour of a new sensor.
Use the new datalag sensor to monitor how far into each 5 minute interval it takes to get the latest prices data from Localvolts.
Update sensor.py - API check more efficient
The integration only polls once to retrieve both sensors now rather than once EACH previously.
The default polling period has also been adjusted from every 15 seconds to 10 seconds.
Some other minor changes.
Attribute improvements for timing
For consistency with Localvolts naming of the field, "last_interval" attribute is now named "intervalEnd"
A new attribute "lastUpdate" has been added which indicates what time the most recent data was successfully retrieved.
This is useful in determining how far into the interval the new price data has been retrieved.
Run update check every 15 seconds now
Changed from the default of running the update code every 30 seconds to now every 15 seconds.
This will make a small improvement in the likelhood of catching the update pricing earlier.
Fixes for periodic missing of interval updates
Minor tweaks to avoid missing interval updates