|
12 | 12 | _LOGGER = logging.getLogger(__name__) |
13 | 13 |
|
14 | 14 |
|
15 | | - |
16 | 15 | _config = { |
17 | 16 | PlugMeasurements.WATTS: { |
18 | 17 | "name": "Power", |
|
28 | 27 | "unit": UnitOfElectricPotential.VOLT, |
29 | 28 | "precision": 2, |
30 | 29 | 'event': 'average_power_components', |
31 | | - 'message_key': 'volts' |
| 30 | + 'message_key': 'volts', |
| 31 | + 'visible': False, |
32 | 32 | }, |
33 | 33 | PlugMeasurements.APPARENT_CURRENT: { |
34 | 34 | "name": "Apparent Current", |
35 | 35 | "device_class": SensorDeviceClass.CURRENT, |
36 | 36 | "unit": UnitOfElectricCurrent.AMPERE, |
37 | 37 | "precision": 2, |
38 | 38 | 'event': 'average_power_components', |
39 | | - 'message_key': 'apparent_current' |
| 39 | + 'message_key': 'apparent_current', |
| 40 | + 'visible': False, |
40 | 41 | }, |
41 | 42 | PlugMeasurements.ACTIVE_CURRENT: { |
42 | | - "name": "Current", #"Active Current" |
| 43 | + "name": "Active Current", |
43 | 44 | "device_class": SensorDeviceClass.CURRENT, |
44 | 45 | "unit": UnitOfElectricCurrent.AMPERE, |
45 | 46 | "precision": 2, |
46 | 47 | 'event': 'average_power_components', |
47 | | - 'message_key': 'active_current' |
| 48 | + 'message_key': 'active_current', |
| 49 | + 'visible': False, |
48 | 50 | }, |
49 | 51 | PlugMeasurements.REACTIVE_CURRENT: { |
50 | 52 | "name": "Reactive Current", |
51 | 53 | "device_class": SensorDeviceClass.CURRENT, |
52 | 54 | "unit": UnitOfElectricCurrent.AMPERE, |
53 | 55 | "precision": 2, |
54 | 56 | 'event': 'average_power_components', |
55 | | - 'message_key': 'reactive_current' |
| 57 | + 'message_key': 'reactive_current', |
| 58 | + 'visible': False, |
56 | 59 | }, |
57 | 60 | PlugMeasurements.SUMMATION_ENERGY: { |
58 | 61 | "name": "Total Energy", |
@@ -86,7 +89,6 @@ def device_info(self) -> DeviceInfo: |
86 | 89 | 'manufacturer': "Powersensor", |
87 | 90 | 'model': self._model, |
88 | 91 | 'name': self._device_name, |
89 | | - # "via_device": # if we use this, can it be updated dynamically? |
90 | 92 | } |
91 | 93 |
|
92 | 94 | def _default_device_name(self) -> str: |
|
0 commit comments