Default some entities to disabled (#42797)
This commit is contained in:
parent
2625a4dfdc
commit
c7cdad2b5a
3 changed files with 73 additions and 8 deletions
|
@ -45,44 +45,80 @@ DEVICE_SENSORS = {
|
|||
"path": "TAI8570/temperature",
|
||||
"name": "Temperature",
|
||||
"type": SENSOR_TYPE_TEMPERATURE,
|
||||
"default_disabled": True,
|
||||
},
|
||||
{
|
||||
"path": "TAI8570/pressure",
|
||||
"name": "Pressure",
|
||||
"type": SENSOR_TYPE_PRESSURE,
|
||||
"default_disabled": True,
|
||||
},
|
||||
{"path": "TAI8570/pressure", "name": "Pressure", "type": SENSOR_TYPE_PRESSURE},
|
||||
],
|
||||
"22": [
|
||||
{"path": "temperature", "name": "Temperature", "type": SENSOR_TYPE_TEMPERATURE}
|
||||
],
|
||||
"26": [
|
||||
{"path": "temperature", "name": "Temperature", "type": SENSOR_TYPE_TEMPERATURE},
|
||||
{"path": "humidity", "name": "Humidity", "type": SENSOR_TYPE_HUMIDITY},
|
||||
{
|
||||
"path": "humidity",
|
||||
"name": "Humidity",
|
||||
"type": SENSOR_TYPE_HUMIDITY,
|
||||
"default_disabled": True,
|
||||
},
|
||||
{
|
||||
"path": "HIH3600/humidity",
|
||||
"name": "Humidity HIH3600",
|
||||
"type": SENSOR_TYPE_HUMIDITY,
|
||||
"default_disabled": True,
|
||||
},
|
||||
{
|
||||
"path": "HIH4000/humidity",
|
||||
"name": "Humidity HIH4000",
|
||||
"type": SENSOR_TYPE_HUMIDITY,
|
||||
"default_disabled": True,
|
||||
},
|
||||
{
|
||||
"path": "HIH5030/humidity",
|
||||
"name": "Humidity HIH5030",
|
||||
"type": SENSOR_TYPE_HUMIDITY,
|
||||
"default_disabled": True,
|
||||
},
|
||||
{
|
||||
"path": "HTM1735/humidity",
|
||||
"name": "Humidity HTM1735",
|
||||
"type": SENSOR_TYPE_HUMIDITY,
|
||||
"default_disabled": True,
|
||||
},
|
||||
{
|
||||
"path": "B1-R1-A/pressure",
|
||||
"name": "Pressure",
|
||||
"type": SENSOR_TYPE_PRESSURE,
|
||||
"default_disabled": True,
|
||||
},
|
||||
{"path": "B1-R1-A/pressure", "name": "Pressure", "type": SENSOR_TYPE_PRESSURE},
|
||||
{
|
||||
"path": "S3-R1-A/illuminance",
|
||||
"name": "Illuminance",
|
||||
"type": SENSOR_TYPE_ILLUMINANCE,
|
||||
"default_disabled": True,
|
||||
},
|
||||
{
|
||||
"path": "VAD",
|
||||
"name": "Voltage VAD",
|
||||
"type": SENSOR_TYPE_VOLTAGE,
|
||||
"default_disabled": True,
|
||||
},
|
||||
{
|
||||
"path": "VDD",
|
||||
"name": "Voltage VDD",
|
||||
"type": SENSOR_TYPE_VOLTAGE,
|
||||
"default_disabled": True,
|
||||
},
|
||||
{
|
||||
"path": "IAD",
|
||||
"name": "Current",
|
||||
"type": SENSOR_TYPE_CURRENT,
|
||||
"default_disabled": True,
|
||||
},
|
||||
{"path": "VAD", "name": "Voltage VAD", "type": SENSOR_TYPE_VOLTAGE},
|
||||
{"path": "VDD", "name": "Voltage VDD", "type": SENSOR_TYPE_VOLTAGE},
|
||||
{"path": "IAD", "name": "Current", "type": SENSOR_TYPE_CURRENT},
|
||||
],
|
||||
"28": [
|
||||
{"path": "temperature", "name": "Temperature", "type": SENSOR_TYPE_TEMPERATURE}
|
||||
|
@ -247,6 +283,7 @@ def get_entities(onewirehub: OneWireHub, config):
|
|||
device_sensor["type"],
|
||||
device_sensor["name"],
|
||||
device_info,
|
||||
device_sensor.get("default_disabled", False),
|
||||
onewirehub.owproxy,
|
||||
)
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue