Files
core/tests/fixtures/p1_monitor/smartmeter.json
Klaas Schoute 68fbc0792a Add P1 Monitor integration (#54738)
* Init integration P1 Monitor

* Fix build error

* Add quality scale

* Remove last_reset and icon

* Change list to tuple

* Close client on connection exception

* Change min value to 5 (seconds)

* the used python package will close it

* Remove the options flow

* Add session and close client

* Smash to a single DataUpdateCoordinator

* Make a custom update coordinator class

* await the coordinator close

* Add second await the coordinator close

* Close when exit scope

* Removed unused code

* Fix test_sensor on entity_id change

* Fix test on test_sensor

* Transfer SENSOR dict to sensor platform

* device class for cost entity update entity_name

* Revert name in unique id and update sensor test

* Update code based on suggestions

* Fix typing

* Change code to fix mypy errors

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-08-20 08:45:04 +02:00

15 lines
422 B
JSON

[
{
"CONSUMPTION_GAS_M3": 2273.447,
"CONSUMPTION_KWH_HIGH": 2770.133,
"CONSUMPTION_KWH_LOW": 4988.071,
"CONSUMPTION_W": 877,
"PRODUCTION_KWH_HIGH": 3971.604,
"PRODUCTION_KWH_LOW": 1432.279,
"PRODUCTION_W": 0,
"RECORD_IS_PROCESSED": 0,
"TARIFCODE": "P",
"TIMESTAMP_UTC": 1629134632,
"TIMESTAMP_lOCAL": "2021-08-16 19:23:52"
}
]