hass-core/tests/components/dsmr/snapshots/test_diagnostics.ambr
Joakim Plate 42610f4e09
Add diagnostic information to DSMR (#122041)
* Add diagnostic information to DSMR

Switches to runtime_data to get access
to the last telegram received.

* Correct import of domain

* Apply suggestions from code review

Co-authored-by: G Johansson <goran.johansson@shiftit.se>

---------

Co-authored-by: G Johansson <goran.johansson@shiftit.se>
2024-07-18 11:57:11 +02:00

29 lines
649 B
Text

# serializer version: 1
# name: test_diagnostics
dict({
'data': dict({
'CURRENT_ELECTRICITY_USAGE': dict({
'unit': 'W',
'value': 0.0,
}),
'ELECTRICITY_ACTIVE_TARIFF': dict({
'unit': '',
'value': '0001',
}),
'GAS_METER_READING': dict({
'datetime': '2019-03-03T19:43:33+00:00',
'unit': 'm³',
'value': 745.695,
}),
}),
'entry': dict({
'data': dict({
'dsmr_version': '2.2',
'port': '/dev/ttyUSB0',
'serial_id': '1234',
'serial_id_gas': '5678',
}),
'unique_id': '/dev/ttyUSB0',
}),
})
# ---