uphillbattle / nettleieelvia Goto Github PK
View Code? Open in Web Editor NEWAppDaemon app that fetches Elvia grid tariff to Home Assistant
License: MIT License
AppDaemon app that fetches Elvia grid tariff to Home Assistant
License: MIT License
The app only checks if DST is applicable NOW. Should work well most of the time, but when the day on which DST goes either ON or OFF is either today or tomorrow, the app does not fetch the correct number of hours.
Code needs to be cleaned up…
Hi.
Found your code and wanted to test it out on my appdaemon, but I get the following error:
2022-07-09 18:53:52.199027 WARNING nettleie_elvia: ------------------------------------------------------------
--
2022-07-09 18:53:52.198939 WARNING nettleie_elvia: Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/appdaemon/threading.py", line 904, in worker funcref(self.AD.sched.sanitize_timer_kwargs(app, args["kwargs"])) File "/conf/apps/nettleie_elvia.py", line 22, in hourly_call self.set_states() File "/conf/apps/nettleie_elvia.py", line 91, in set_states self.priceInfo = self.maler_response["gridTariffCollections"][0]["gridTariff"]["tariffPrice"] TypeError: 'NoneType' object is not subscriptable
2022-07-09 18:53:52.198676 WARNING nettleie_elvia: ------------------------------------------------------------
2022-07-09 18:53:52.198496 WARNING nettleie_elvia: Worker Ags: {'id': '2cb9a4e24afa49339338e2c09b1c2af1', 'name': 'nettleie_elvia', 'objectid': '80efcaa027e447caa22fd0b3c3076cee', 'type': 'scheduler', 'function': <bound method NettleieElvia.hourly_call of <nettleie_elvia.NettleieElvia object at 0x14c33ba11be0>>, 'pin_app': True, 'pin_thread': 0, 'kwargs': {'__thread_id': 'thread-0'}}
2022-07-09 18:53:52.198343 WARNING nettleie_elvia: Unexpected error in worker for App nettleie_elvia:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.