|
|
@ -232,7 +232,10 @@
|
|
|
|
# name: test_controlling_state_via_mqtt[sensor_config2-entity_ids2-messages2]
|
|
|
|
# name: test_controlling_state_via_mqtt[sensor_config2-entity_ids2-messages2]
|
|
|
|
StateSnapshot({
|
|
|
|
StateSnapshot({
|
|
|
|
'attributes': ReadOnlyDict({
|
|
|
|
'attributes': ReadOnlyDict({
|
|
|
|
|
|
|
|
'device_class': 'energy',
|
|
|
|
'friendly_name': 'Tasmota ENERGY TotalTariff 0',
|
|
|
|
'friendly_name': 'Tasmota ENERGY TotalTariff 0',
|
|
|
|
|
|
|
|
'state_class': <SensorStateClass.TOTAL: 'total'>,
|
|
|
|
|
|
|
|
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
'context': <ANY>,
|
|
|
|
'context': <ANY>,
|
|
|
|
'entity_id': 'sensor.tasmota_energy_totaltariff_0',
|
|
|
|
'entity_id': 'sensor.tasmota_energy_totaltariff_0',
|
|
|
@ -247,7 +250,9 @@
|
|
|
|
'aliases': set({
|
|
|
|
'aliases': set({
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
'area_id': None,
|
|
|
|
'area_id': None,
|
|
|
|
'capabilities': None,
|
|
|
|
'capabilities': dict({
|
|
|
|
|
|
|
|
'state_class': <SensorStateClass.TOTAL: 'total'>,
|
|
|
|
|
|
|
|
}),
|
|
|
|
'config_entry_id': <ANY>,
|
|
|
|
'config_entry_id': <ANY>,
|
|
|
|
'device_class': None,
|
|
|
|
'device_class': None,
|
|
|
|
'device_id': <ANY>,
|
|
|
|
'device_id': <ANY>,
|
|
|
@ -264,7 +269,7 @@
|
|
|
|
'name': None,
|
|
|
|
'name': None,
|
|
|
|
'options': dict({
|
|
|
|
'options': dict({
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
'original_device_class': None,
|
|
|
|
'original_device_class': <SensorDeviceClass.ENERGY: 'energy'>,
|
|
|
|
'original_icon': None,
|
|
|
|
'original_icon': None,
|
|
|
|
'original_name': 'ENERGY TotalTariff 0',
|
|
|
|
'original_name': 'ENERGY TotalTariff 0',
|
|
|
|
'platform': 'tasmota',
|
|
|
|
'platform': 'tasmota',
|
|
|
@ -272,13 +277,16 @@
|
|
|
|
'supported_features': 0,
|
|
|
|
'supported_features': 0,
|
|
|
|
'translation_key': None,
|
|
|
|
'translation_key': None,
|
|
|
|
'unique_id': '00000049A3BC_sensor_sensor_ENERGY_TotalTariff_0',
|
|
|
|
'unique_id': '00000049A3BC_sensor_sensor_ENERGY_TotalTariff_0',
|
|
|
|
'unit_of_measurement': None,
|
|
|
|
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
# ---
|
|
|
|
# ---
|
|
|
|
# name: test_controlling_state_via_mqtt[sensor_config2-entity_ids2-messages2].2
|
|
|
|
# name: test_controlling_state_via_mqtt[sensor_config2-entity_ids2-messages2].2
|
|
|
|
StateSnapshot({
|
|
|
|
StateSnapshot({
|
|
|
|
'attributes': ReadOnlyDict({
|
|
|
|
'attributes': ReadOnlyDict({
|
|
|
|
|
|
|
|
'device_class': 'energy',
|
|
|
|
'friendly_name': 'Tasmota ENERGY TotalTariff 1',
|
|
|
|
'friendly_name': 'Tasmota ENERGY TotalTariff 1',
|
|
|
|
|
|
|
|
'state_class': <SensorStateClass.TOTAL: 'total'>,
|
|
|
|
|
|
|
|
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
'context': <ANY>,
|
|
|
|
'context': <ANY>,
|
|
|
|
'entity_id': 'sensor.tasmota_energy_totaltariff_1',
|
|
|
|
'entity_id': 'sensor.tasmota_energy_totaltariff_1',
|
|
|
@ -293,7 +301,9 @@
|
|
|
|
'aliases': set({
|
|
|
|
'aliases': set({
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
'area_id': None,
|
|
|
|
'area_id': None,
|
|
|
|
'capabilities': None,
|
|
|
|
'capabilities': dict({
|
|
|
|
|
|
|
|
'state_class': <SensorStateClass.TOTAL: 'total'>,
|
|
|
|
|
|
|
|
}),
|
|
|
|
'config_entry_id': <ANY>,
|
|
|
|
'config_entry_id': <ANY>,
|
|
|
|
'device_class': None,
|
|
|
|
'device_class': None,
|
|
|
|
'device_id': <ANY>,
|
|
|
|
'device_id': <ANY>,
|
|
|
@ -310,7 +320,7 @@
|
|
|
|
'name': None,
|
|
|
|
'name': None,
|
|
|
|
'options': dict({
|
|
|
|
'options': dict({
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
'original_device_class': None,
|
|
|
|
'original_device_class': <SensorDeviceClass.ENERGY: 'energy'>,
|
|
|
|
'original_icon': None,
|
|
|
|
'original_icon': None,
|
|
|
|
'original_name': 'ENERGY TotalTariff 1',
|
|
|
|
'original_name': 'ENERGY TotalTariff 1',
|
|
|
|
'platform': 'tasmota',
|
|
|
|
'platform': 'tasmota',
|
|
|
@ -318,13 +328,16 @@
|
|
|
|
'supported_features': 0,
|
|
|
|
'supported_features': 0,
|
|
|
|
'translation_key': None,
|
|
|
|
'translation_key': None,
|
|
|
|
'unique_id': '00000049A3BC_sensor_sensor_ENERGY_TotalTariff_1',
|
|
|
|
'unique_id': '00000049A3BC_sensor_sensor_ENERGY_TotalTariff_1',
|
|
|
|
'unit_of_measurement': None,
|
|
|
|
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
# ---
|
|
|
|
# ---
|
|
|
|
# name: test_controlling_state_via_mqtt[sensor_config2-entity_ids2-messages2].4
|
|
|
|
# name: test_controlling_state_via_mqtt[sensor_config2-entity_ids2-messages2].4
|
|
|
|
StateSnapshot({
|
|
|
|
StateSnapshot({
|
|
|
|
'attributes': ReadOnlyDict({
|
|
|
|
'attributes': ReadOnlyDict({
|
|
|
|
|
|
|
|
'device_class': 'energy',
|
|
|
|
'friendly_name': 'Tasmota ENERGY TotalTariff 0',
|
|
|
|
'friendly_name': 'Tasmota ENERGY TotalTariff 0',
|
|
|
|
|
|
|
|
'state_class': <SensorStateClass.TOTAL: 'total'>,
|
|
|
|
|
|
|
|
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
'context': <ANY>,
|
|
|
|
'context': <ANY>,
|
|
|
|
'entity_id': 'sensor.tasmota_energy_totaltariff_0',
|
|
|
|
'entity_id': 'sensor.tasmota_energy_totaltariff_0',
|
|
|
@ -337,7 +350,10 @@
|
|
|
|
# name: test_controlling_state_via_mqtt[sensor_config2-entity_ids2-messages2].5
|
|
|
|
# name: test_controlling_state_via_mqtt[sensor_config2-entity_ids2-messages2].5
|
|
|
|
StateSnapshot({
|
|
|
|
StateSnapshot({
|
|
|
|
'attributes': ReadOnlyDict({
|
|
|
|
'attributes': ReadOnlyDict({
|
|
|
|
|
|
|
|
'device_class': 'energy',
|
|
|
|
'friendly_name': 'Tasmota ENERGY TotalTariff 1',
|
|
|
|
'friendly_name': 'Tasmota ENERGY TotalTariff 1',
|
|
|
|
|
|
|
|
'state_class': <SensorStateClass.TOTAL: 'total'>,
|
|
|
|
|
|
|
|
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
'context': <ANY>,
|
|
|
|
'context': <ANY>,
|
|
|
|
'entity_id': 'sensor.tasmota_energy_totaltariff_1',
|
|
|
|
'entity_id': 'sensor.tasmota_energy_totaltariff_1',
|
|
|
@ -350,7 +366,10 @@
|
|
|
|
# name: test_controlling_state_via_mqtt[sensor_config2-entity_ids2-messages2].6
|
|
|
|
# name: test_controlling_state_via_mqtt[sensor_config2-entity_ids2-messages2].6
|
|
|
|
StateSnapshot({
|
|
|
|
StateSnapshot({
|
|
|
|
'attributes': ReadOnlyDict({
|
|
|
|
'attributes': ReadOnlyDict({
|
|
|
|
|
|
|
|
'device_class': 'energy',
|
|
|
|
'friendly_name': 'Tasmota ENERGY TotalTariff 0',
|
|
|
|
'friendly_name': 'Tasmota ENERGY TotalTariff 0',
|
|
|
|
|
|
|
|
'state_class': <SensorStateClass.TOTAL: 'total'>,
|
|
|
|
|
|
|
|
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
'context': <ANY>,
|
|
|
|
'context': <ANY>,
|
|
|
|
'entity_id': 'sensor.tasmota_energy_totaltariff_0',
|
|
|
|
'entity_id': 'sensor.tasmota_energy_totaltariff_0',
|
|
|
@ -363,7 +382,10 @@
|
|
|
|
# name: test_controlling_state_via_mqtt[sensor_config2-entity_ids2-messages2].7
|
|
|
|
# name: test_controlling_state_via_mqtt[sensor_config2-entity_ids2-messages2].7
|
|
|
|
StateSnapshot({
|
|
|
|
StateSnapshot({
|
|
|
|
'attributes': ReadOnlyDict({
|
|
|
|
'attributes': ReadOnlyDict({
|
|
|
|
|
|
|
|
'device_class': 'energy',
|
|
|
|
'friendly_name': 'Tasmota ENERGY TotalTariff 1',
|
|
|
|
'friendly_name': 'Tasmota ENERGY TotalTariff 1',
|
|
|
|
|
|
|
|
'state_class': <SensorStateClass.TOTAL: 'total'>,
|
|
|
|
|
|
|
|
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
'context': <ANY>,
|
|
|
|
'context': <ANY>,
|
|
|
|
'entity_id': 'sensor.tasmota_energy_totaltariff_1',
|
|
|
|
'entity_id': 'sensor.tasmota_energy_totaltariff_1',
|
|
|
|