Notes to self (others: feel absolutely free to correct if there I have misunderstood something)
-
Code can be found here: openhab-addons/bundles/org.openhab.binding.awattar at main · openhab/openhab-addons · GitHub
- Needs update if other countries / bidding zones would be supported
- Add a new bridge type called for example bridge-type:awattar:entsoe-bridge
- Strings seem to go here so that they can be translated
- Reflect the new entsoe-brigde type also here
- This seems like a good candidate for date helper methods for preparing the date input arguments in the format Entso API expectes them
- No changes should be needed, the Prices that Entso-E provides can be saved to the same data model
- Need to implement same kind of class for Entso-E Bridge configurations
- Factory class for creating new instances of the Handler classes
- See next points
- This contains the data refresh logic, will probably require some changes when there will be other Bridges
- This is where the prices are fetched from the current data source.
- This class needs some love when there will be another data source as there is also a lot of other logic in this class which should not be duplicated.
- These are for converting JSON to Java structures
- Entso-E responses are XML so needs to be handled differently