core/tests/components/sensor
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
..
__init__.py Fix PEP257 issues 2016-03-09 10:25:50 +01:00
test_api_streams.py Add sensor to show how many clients are connected. (#4430) 2016-11-17 21:54:47 -08:00
test_command_line.py Optimize template 2 (#3521) 2016-09-27 21:29:55 -07:00
test_darksky.py Continue on invalid platforms and new setup_component unit tests (#3736) 2016-10-08 11:27:35 -07:00
test_dsmr.py DSMR sensor (#4309) 2016-11-22 23:03:39 -08:00
test_imap_email_content.py Lazy initialise the worker pool (#4110) 2016-10-31 08:47:29 -07:00
test_mfi.py Removing calls to mock.assert_called_once_with (#3896) 2016-10-16 16:13:27 -07:00
test_min_max.py New config parameter for min_max sensor to specify number of digits for rounding mean value (#4237) 2016-11-22 15:36:29 +01:00
test_moldindicator.py Use setup_component in tests (#3414) 2016-09-17 10:29:58 -07:00
test_mqtt.py Async bootstrap / component init (#3991) 2016-10-27 00:16:23 -07:00
test_mqtt_room.py Use setup_component in tests (#3414) 2016-09-17 10:29:58 -07:00
test_pilight.py Use voluptuous for Pilight switch (#3819) 2016-10-31 13:18:47 +01:00
test_random.py Lazy initialise the worker pool (#4110) 2016-10-31 08:47:29 -07:00
test_rest.py Added tests for REST sensors (#4115) 2016-10-30 21:51:03 -07:00
test_rfxtrx.py Lazy initialise the worker pool (#4110) 2016-10-31 08:47:29 -07:00
test_sleepiq.py Continue on invalid platforms and new setup_component unit tests (#3736) 2016-10-08 11:27:35 -07:00
test_sonarr.py Skip broken tests (#4543) 2016-11-22 22:58:14 -08:00
test_statistics.py Statistics sensor (#3513) 2016-10-04 01:04:00 -07:00
test_tcp.py Migrate to voluptuous (#3748) 2016-10-21 21:14:35 -07:00
test_template.py Continue on invalid platforms and new setup_component unit tests (#3736) 2016-10-08 11:27:35 -07:00
test_worldclock.py Add test (#3999) 2016-10-24 22:01:38 -07:00
test_wunderground.py Added some extra options to Weather Underground component (#4306) 2016-11-10 23:01:20 -08:00
test_yahoo_finance.py Allow multiple symbols (sensor.yahoo_finance) (#4126) 2016-10-31 13:31:09 +01:00
test_yr.py Async version of Yr.no (#4158) 2016-11-02 19:34:12 -07:00