core/homeassistant
Johan Bloemberg 64cfc4ff02 DSMR sensor (#4309)
* Initial implemenation of DSMR component.

* Fix linting

* Remove protocol V2.2 support until merged upstream.

* Generate requirements using script.

* Use updated dsmr-parser with protocol 2.2 support.

* Add tests.

* Isort and input validation.

* Add entities for gas and actual meter reading. Error handling. Use Throttle.

* Implement non-blocking serial reader.

* Improve logging.

* Merge entities into one, add icons, fix tests for asyncio.

* Add error logging for serial reader.

* Refactoring and documentation.

- refactor asyncio reader task to make sure it stops with HA
- document general principle of this component
- refactor entity reading to be more clear
- remove cruft from split entity implementation

* Use `port` configuration key.

* DSMR V2.2 seems to conflict in explaining which tariff is high and low.

http://www.netbeheernederland.nl/themas/hotspot/hotspot-documenten/?dossierid=11010056&title=Slimme%20meter&onderdeel=Documenten
> DSMR v2.2 Final P1
>> 6.1: table vs table note

    Meter Reading electricity delivered to client normal tariff) in 0,01 kWh - 1-0:1.8.1.255
    Meter Reading electricity delivered to client (low tariff) in 0,01 kWh - 1-0:1.8.2.255

    Note: Tariff code 1 is used for low tariff and tariff code 2 is used for normal tariff.

* Refactor to use asyncio.Protocol instead of loop+queue.

* Fix requirements

* Close transport when HA stops.

* Cleanup.

* Include as dependency for testing (until merged upstream.)

* Fix style.

* Update setup.cfg
2016-11-22 23:03:39 -08:00
..
components DSMR sensor (#4309) 2016-11-22 23:03:39 -08:00
helpers Entity and climate: do not convert temperature unnecessary (#4522) 2016-11-22 17:38:04 -08:00
scripts Disable too-many-* (#4107) 2016-10-30 22:18:53 +01:00
util Entity and climate: do not convert temperature unnecessary (#4522) 2016-11-22 17:38:04 -08:00
__init__.py Fix PEP257 issues 2016-03-08 00:06:04 +01:00
__main__.py Remove globally disabled pylint warnings (#4204) 2016-11-03 18:40:43 -07:00
bootstrap.py Better locking while setting up components + discovery (#4463) 2016-11-19 08:18:33 -08:00
config.py Upgrade linter (#4461) 2016-11-18 21:47:59 -08:00
const.py Version bump to 0.34.0.dev0 2016-11-19 16:06:42 -08:00
core.py Do not report on shutting down errors (#4431) 2016-11-17 12:02:43 -08:00
exceptions.py Do not report on shutting down errors (#4431) 2016-11-17 12:02:43 -08:00
loader.py fix some comments spell (#4082) 2016-10-28 21:26:52 +02:00
remote.py Change pending task sheduler to time based cleanup (#4324) 2016-11-09 08:41:17 -08:00