2021-04-01 13:06:47 +00:00
|
|
|
"""Constants for 1-Wire integration."""
|
|
|
|
from pi1wire import InvalidCRCException, UnsupportResponseException
|
2020-10-14 08:19:12 +00:00
|
|
|
from pyownet.protocol import Error as ProtocolError
|
|
|
|
|
2021-10-27 10:02:07 +00:00
|
|
|
from homeassistant.components.onewire.const import (
|
|
|
|
DOMAIN,
|
|
|
|
MANUFACTURER_EDS,
|
|
|
|
MANUFACTURER_HOBBYBOARDS,
|
|
|
|
MANUFACTURER_MAXIM,
|
2021-12-03 17:25:22 +00:00
|
|
|
Platform,
|
2021-10-27 10:02:07 +00:00
|
|
|
)
|
2021-08-24 08:37:59 +00:00
|
|
|
from homeassistant.components.sensor import (
|
|
|
|
ATTR_STATE_CLASS,
|
2021-12-01 16:33:26 +00:00
|
|
|
SensorDeviceClass,
|
2021-12-01 16:42:08 +00:00
|
|
|
SensorStateClass,
|
2021-08-24 08:37:59 +00:00
|
|
|
)
|
2020-10-24 18:56:41 +00:00
|
|
|
from homeassistant.const import (
|
2021-08-24 08:37:59 +00:00
|
|
|
ATTR_DEVICE_CLASS,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID,
|
2021-07-30 11:35:49 +00:00
|
|
|
ATTR_IDENTIFIERS,
|
|
|
|
ATTR_MANUFACTURER,
|
|
|
|
ATTR_MODEL,
|
|
|
|
ATTR_NAME,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_STATE,
|
2021-08-24 08:37:59 +00:00
|
|
|
ATTR_UNIT_OF_MEASUREMENT,
|
2021-10-25 13:42:40 +00:00
|
|
|
ATTR_VIA_DEVICE,
|
2021-07-20 18:06:23 +00:00
|
|
|
ELECTRIC_POTENTIAL_VOLT,
|
2020-10-24 18:56:41 +00:00
|
|
|
LIGHT_LUX,
|
|
|
|
PERCENTAGE,
|
2021-11-10 08:44:05 +00:00
|
|
|
PRESSURE_CBAR,
|
2020-10-24 18:56:41 +00:00
|
|
|
PRESSURE_MBAR,
|
2020-11-08 02:42:20 +00:00
|
|
|
STATE_OFF,
|
|
|
|
STATE_ON,
|
2021-10-19 19:41:01 +00:00
|
|
|
STATE_UNKNOWN,
|
2020-10-24 18:56:41 +00:00
|
|
|
TEMP_CELSIUS,
|
|
|
|
)
|
2021-12-03 17:20:00 +00:00
|
|
|
from homeassistant.helpers.entity import EntityCategory
|
2020-10-14 08:19:12 +00:00
|
|
|
|
2021-10-19 07:10:26 +00:00
|
|
|
ATTR_DEFAULT_DISABLED = "default_disabled"
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_DEVICE_FILE = "device_file"
|
|
|
|
ATTR_DEVICE_INFO = "device_info"
|
2021-12-03 17:20:00 +00:00
|
|
|
ATTR_ENTITY_CATEGORY = "entity_category"
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_INJECT_READS = "inject_reads"
|
|
|
|
ATTR_UNIQUE_ID = "unique_id"
|
2021-11-09 17:30:05 +00:00
|
|
|
ATTR_UNKNOWN_DEVICE = "unknown_device"
|
2021-10-19 07:10:26 +00:00
|
|
|
|
2021-10-20 09:43:59 +00:00
|
|
|
FIXED_ATTRIBUTES = (
|
|
|
|
ATTR_DEVICE_CLASS,
|
|
|
|
ATTR_STATE_CLASS,
|
|
|
|
ATTR_UNIT_OF_MEASUREMENT,
|
|
|
|
)
|
|
|
|
|
2021-07-30 11:35:49 +00:00
|
|
|
|
2021-04-01 13:06:47 +00:00
|
|
|
MOCK_OWPROXY_DEVICES = {
|
2020-10-25 17:05:02 +00:00
|
|
|
"00.111111111111": {
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_INJECT_READS: [
|
2020-10-25 17:05:02 +00:00
|
|
|
b"", # read device type
|
|
|
|
],
|
2021-11-09 17:30:05 +00:00
|
|
|
ATTR_UNKNOWN_DEVICE: True,
|
2020-10-25 17:05:02 +00:00
|
|
|
},
|
2021-05-20 15:02:25 +00:00
|
|
|
"05.111111111111": {
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_INJECT_READS: [
|
2021-05-20 15:02:25 +00:00
|
|
|
b"DS2405", # read device type
|
|
|
|
],
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_DEVICE_INFO: {
|
2021-07-30 11:35:49 +00:00
|
|
|
ATTR_IDENTIFIERS: {(DOMAIN, "05.111111111111")},
|
2021-10-27 10:02:07 +00:00
|
|
|
ATTR_MANUFACTURER: MANUFACTURER_MAXIM,
|
2021-07-30 11:35:49 +00:00
|
|
|
ATTR_MODEL: "DS2405",
|
|
|
|
ATTR_NAME: "05.111111111111",
|
2021-05-20 15:02:25 +00:00
|
|
|
},
|
2021-12-03 17:25:22 +00:00
|
|
|
Platform.SWITCH: [
|
2021-05-20 15:02:25 +00:00
|
|
|
{
|
2021-10-19 07:10:26 +00:00
|
|
|
ATTR_DEFAULT_DISABLED: True,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "switch.05_111111111111_pio",
|
|
|
|
ATTR_INJECT_READS: b" 1",
|
|
|
|
ATTR_STATE: STATE_ON,
|
|
|
|
ATTR_UNIQUE_ID: "/05.111111111111/PIO",
|
2021-05-20 15:02:25 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2020-10-14 08:19:12 +00:00
|
|
|
"10.111111111111": {
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_INJECT_READS: [
|
2020-10-25 17:05:02 +00:00
|
|
|
b"DS18S20", # read device type
|
|
|
|
],
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_DEVICE_INFO: {
|
2021-07-30 11:35:49 +00:00
|
|
|
ATTR_IDENTIFIERS: {(DOMAIN, "10.111111111111")},
|
2021-10-27 10:02:07 +00:00
|
|
|
ATTR_MANUFACTURER: MANUFACTURER_MAXIM,
|
2021-07-30 11:35:49 +00:00
|
|
|
ATTR_MODEL: "DS18S20",
|
|
|
|
ATTR_NAME: "10.111111111111",
|
2020-10-25 17:05:02 +00:00
|
|
|
},
|
2021-12-03 17:25:22 +00:00
|
|
|
Platform.SENSOR: [
|
2020-10-14 08:19:12 +00:00
|
|
|
{
|
2021-12-01 16:33:26 +00:00
|
|
|
ATTR_DEVICE_CLASS: SensorDeviceClass.TEMPERATURE,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "sensor.my_ds18b20_temperature",
|
|
|
|
ATTR_INJECT_READS: b" 25.123",
|
|
|
|
ATTR_STATE: "25.1",
|
2021-12-01 16:42:08 +00:00
|
|
|
ATTR_STATE_CLASS: SensorStateClass.MEASUREMENT,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_UNIQUE_ID: "/10.111111111111/temperature",
|
|
|
|
ATTR_UNIT_OF_MEASUREMENT: TEMP_CELSIUS,
|
2020-10-14 08:19:12 +00:00
|
|
|
},
|
2020-10-25 17:05:02 +00:00
|
|
|
],
|
2020-10-14 08:19:12 +00:00
|
|
|
},
|
2020-10-24 18:56:41 +00:00
|
|
|
"12.111111111111": {
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_INJECT_READS: [
|
2020-10-25 17:05:02 +00:00
|
|
|
b"DS2406", # read device type
|
|
|
|
],
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_DEVICE_INFO: {
|
2021-07-30 11:35:49 +00:00
|
|
|
ATTR_IDENTIFIERS: {(DOMAIN, "12.111111111111")},
|
2021-10-27 10:02:07 +00:00
|
|
|
ATTR_MANUFACTURER: MANUFACTURER_MAXIM,
|
2021-07-30 11:35:49 +00:00
|
|
|
ATTR_MODEL: "DS2406",
|
|
|
|
ATTR_NAME: "12.111111111111",
|
2020-10-25 17:05:02 +00:00
|
|
|
},
|
2021-12-03 17:25:22 +00:00
|
|
|
Platform.BINARY_SENSOR: [
|
2020-11-08 02:42:20 +00:00
|
|
|
{
|
2021-10-19 07:10:26 +00:00
|
|
|
ATTR_DEFAULT_DISABLED: True,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "binary_sensor.12_111111111111_sensed_a",
|
|
|
|
ATTR_INJECT_READS: b" 1",
|
|
|
|
ATTR_STATE: STATE_ON,
|
|
|
|
ATTR_UNIQUE_ID: "/12.111111111111/sensed.A",
|
2020-11-08 02:42:20 +00:00
|
|
|
},
|
|
|
|
{
|
2021-10-19 07:10:26 +00:00
|
|
|
ATTR_DEFAULT_DISABLED: True,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "binary_sensor.12_111111111111_sensed_b",
|
|
|
|
ATTR_INJECT_READS: b" 0",
|
|
|
|
ATTR_STATE: STATE_OFF,
|
|
|
|
ATTR_UNIQUE_ID: "/12.111111111111/sensed.B",
|
2020-11-08 02:42:20 +00:00
|
|
|
},
|
|
|
|
],
|
2021-12-03 17:25:22 +00:00
|
|
|
Platform.SENSOR: [
|
2020-10-24 18:56:41 +00:00
|
|
|
{
|
2021-10-19 07:10:26 +00:00
|
|
|
ATTR_DEFAULT_DISABLED: True,
|
2021-12-01 16:33:26 +00:00
|
|
|
ATTR_DEVICE_CLASS: SensorDeviceClass.TEMPERATURE,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "sensor.12_111111111111_temperature",
|
|
|
|
ATTR_INJECT_READS: b" 25.123",
|
|
|
|
ATTR_STATE: "25.1",
|
2021-12-01 16:42:08 +00:00
|
|
|
ATTR_STATE_CLASS: SensorStateClass.MEASUREMENT,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_UNIQUE_ID: "/12.111111111111/TAI8570/temperature",
|
|
|
|
ATTR_UNIT_OF_MEASUREMENT: TEMP_CELSIUS,
|
2020-10-24 18:56:41 +00:00
|
|
|
},
|
|
|
|
{
|
2021-10-19 07:10:26 +00:00
|
|
|
ATTR_DEFAULT_DISABLED: True,
|
2021-12-01 16:33:26 +00:00
|
|
|
ATTR_DEVICE_CLASS: SensorDeviceClass.PRESSURE,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "sensor.12_111111111111_pressure",
|
|
|
|
ATTR_INJECT_READS: b" 1025.123",
|
|
|
|
ATTR_STATE: "1025.1",
|
2021-12-01 16:42:08 +00:00
|
|
|
ATTR_STATE_CLASS: SensorStateClass.MEASUREMENT,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_UNIQUE_ID: "/12.111111111111/TAI8570/pressure",
|
|
|
|
ATTR_UNIT_OF_MEASUREMENT: PRESSURE_MBAR,
|
2020-10-24 18:56:41 +00:00
|
|
|
},
|
2020-10-25 17:05:02 +00:00
|
|
|
],
|
2021-12-03 17:25:22 +00:00
|
|
|
Platform.SWITCH: [
|
2020-11-08 18:06:41 +00:00
|
|
|
{
|
2021-10-19 07:10:26 +00:00
|
|
|
ATTR_DEFAULT_DISABLED: True,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "switch.12_111111111111_pio_a",
|
|
|
|
ATTR_INJECT_READS: b" 1",
|
|
|
|
ATTR_STATE: STATE_ON,
|
|
|
|
ATTR_UNIQUE_ID: "/12.111111111111/PIO.A",
|
2020-11-08 18:06:41 +00:00
|
|
|
},
|
|
|
|
{
|
2021-10-19 07:10:26 +00:00
|
|
|
ATTR_DEFAULT_DISABLED: True,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "switch.12_111111111111_pio_b",
|
|
|
|
ATTR_INJECT_READS: b" 0",
|
|
|
|
ATTR_STATE: STATE_OFF,
|
|
|
|
ATTR_UNIQUE_ID: "/12.111111111111/PIO.B",
|
2020-11-08 18:06:41 +00:00
|
|
|
},
|
|
|
|
{
|
2021-10-19 07:10:26 +00:00
|
|
|
ATTR_DEFAULT_DISABLED: True,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "switch.12_111111111111_latch_a",
|
|
|
|
ATTR_INJECT_READS: b" 1",
|
|
|
|
ATTR_STATE: STATE_ON,
|
|
|
|
ATTR_UNIQUE_ID: "/12.111111111111/latch.A",
|
2020-11-08 18:06:41 +00:00
|
|
|
},
|
|
|
|
{
|
2021-10-19 07:10:26 +00:00
|
|
|
ATTR_DEFAULT_DISABLED: True,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "switch.12_111111111111_latch_b",
|
|
|
|
ATTR_INJECT_READS: b" 0",
|
|
|
|
ATTR_STATE: STATE_OFF,
|
|
|
|
ATTR_UNIQUE_ID: "/12.111111111111/latch.B",
|
2020-11-08 18:06:41 +00:00
|
|
|
},
|
|
|
|
],
|
2020-10-24 18:56:41 +00:00
|
|
|
},
|
2020-10-14 08:19:12 +00:00
|
|
|
"1D.111111111111": {
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_INJECT_READS: [
|
2020-10-25 17:05:02 +00:00
|
|
|
b"DS2423", # read device type
|
|
|
|
],
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_DEVICE_INFO: {
|
2021-07-30 11:35:49 +00:00
|
|
|
ATTR_IDENTIFIERS: {(DOMAIN, "1D.111111111111")},
|
2021-10-27 10:02:07 +00:00
|
|
|
ATTR_MANUFACTURER: MANUFACTURER_MAXIM,
|
2021-07-30 11:35:49 +00:00
|
|
|
ATTR_MODEL: "DS2423",
|
|
|
|
ATTR_NAME: "1D.111111111111",
|
2020-10-25 17:05:02 +00:00
|
|
|
},
|
2021-12-03 17:25:22 +00:00
|
|
|
Platform.SENSOR: [
|
2020-10-14 08:19:12 +00:00
|
|
|
{
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "sensor.1d_111111111111_counter_a",
|
|
|
|
ATTR_INJECT_READS: b" 251123",
|
|
|
|
ATTR_STATE: "251123",
|
2021-12-01 16:42:08 +00:00
|
|
|
ATTR_STATE_CLASS: SensorStateClass.TOTAL_INCREASING,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_UNIQUE_ID: "/1D.111111111111/counter.A",
|
|
|
|
ATTR_UNIT_OF_MEASUREMENT: "count",
|
2020-10-14 08:19:12 +00:00
|
|
|
},
|
|
|
|
{
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "sensor.1d_111111111111_counter_b",
|
|
|
|
ATTR_INJECT_READS: b" 248125",
|
|
|
|
ATTR_STATE: "248125",
|
2021-12-01 16:42:08 +00:00
|
|
|
ATTR_STATE_CLASS: SensorStateClass.TOTAL_INCREASING,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_UNIQUE_ID: "/1D.111111111111/counter.B",
|
|
|
|
ATTR_UNIT_OF_MEASUREMENT: "count",
|
2020-10-14 08:19:12 +00:00
|
|
|
},
|
2020-10-25 17:05:02 +00:00
|
|
|
],
|
2020-10-14 08:19:12 +00:00
|
|
|
},
|
2020-12-07 01:09:32 +00:00
|
|
|
"1F.111111111111": {
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_INJECT_READS: [
|
2020-12-07 01:09:32 +00:00
|
|
|
b"DS2409", # read device type
|
|
|
|
],
|
2021-10-22 09:45:40 +00:00
|
|
|
ATTR_DEVICE_INFO: [
|
|
|
|
{
|
|
|
|
ATTR_IDENTIFIERS: {(DOMAIN, "1F.111111111111")},
|
2021-10-27 10:02:07 +00:00
|
|
|
ATTR_MANUFACTURER: MANUFACTURER_MAXIM,
|
2021-10-22 09:45:40 +00:00
|
|
|
ATTR_MODEL: "DS2409",
|
|
|
|
ATTR_NAME: "1F.111111111111",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
ATTR_IDENTIFIERS: {(DOMAIN, "1D.111111111111")},
|
2021-10-27 10:02:07 +00:00
|
|
|
ATTR_MANUFACTURER: MANUFACTURER_MAXIM,
|
2021-10-22 09:45:40 +00:00
|
|
|
ATTR_MODEL: "DS2423",
|
|
|
|
ATTR_NAME: "1D.111111111111",
|
2021-10-25 13:42:40 +00:00
|
|
|
ATTR_VIA_DEVICE: (DOMAIN, "1F.111111111111"),
|
2021-10-22 09:45:40 +00:00
|
|
|
},
|
|
|
|
],
|
2021-04-01 13:06:47 +00:00
|
|
|
"branches": {
|
|
|
|
"aux": {},
|
|
|
|
"main": {
|
|
|
|
"1D.111111111111": {
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_INJECT_READS: [
|
2021-04-01 13:06:47 +00:00
|
|
|
b"DS2423", # read device type
|
|
|
|
],
|
2021-12-03 17:25:22 +00:00
|
|
|
Platform.SENSOR: [
|
2021-04-01 13:06:47 +00:00
|
|
|
{
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_DEVICE_FILE: "/1F.111111111111/main/1D.111111111111/counter.A",
|
|
|
|
ATTR_ENTITY_ID: "sensor.1d_111111111111_counter_a",
|
|
|
|
ATTR_INJECT_READS: b" 251123",
|
|
|
|
ATTR_STATE: "251123",
|
2021-12-01 16:42:08 +00:00
|
|
|
ATTR_STATE_CLASS: SensorStateClass.TOTAL_INCREASING,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_UNIQUE_ID: "/1D.111111111111/counter.A",
|
|
|
|
ATTR_UNIT_OF_MEASUREMENT: "count",
|
2021-04-01 13:06:47 +00:00
|
|
|
},
|
|
|
|
{
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_DEVICE_FILE: "/1F.111111111111/main/1D.111111111111/counter.B",
|
|
|
|
ATTR_ENTITY_ID: "sensor.1d_111111111111_counter_b",
|
|
|
|
ATTR_INJECT_READS: b" 248125",
|
|
|
|
ATTR_STATE: "248125",
|
2021-12-01 16:42:08 +00:00
|
|
|
ATTR_STATE_CLASS: SensorStateClass.TOTAL_INCREASING,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_UNIQUE_ID: "/1D.111111111111/counter.B",
|
|
|
|
ATTR_UNIT_OF_MEASUREMENT: "count",
|
2021-04-01 13:06:47 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2020-12-07 01:09:32 +00:00
|
|
|
},
|
2020-10-14 08:19:12 +00:00
|
|
|
"22.111111111111": {
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_INJECT_READS: [
|
2020-10-25 17:05:02 +00:00
|
|
|
b"DS1822", # read device type
|
|
|
|
],
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_DEVICE_INFO: {
|
2021-07-30 11:35:49 +00:00
|
|
|
ATTR_IDENTIFIERS: {(DOMAIN, "22.111111111111")},
|
2021-10-27 10:02:07 +00:00
|
|
|
ATTR_MANUFACTURER: MANUFACTURER_MAXIM,
|
2021-07-30 11:35:49 +00:00
|
|
|
ATTR_MODEL: "DS1822",
|
|
|
|
ATTR_NAME: "22.111111111111",
|
2020-10-25 17:05:02 +00:00
|
|
|
},
|
2021-12-03 17:25:22 +00:00
|
|
|
Platform.SENSOR: [
|
2020-10-14 08:19:12 +00:00
|
|
|
{
|
2021-12-01 16:33:26 +00:00
|
|
|
ATTR_DEVICE_CLASS: SensorDeviceClass.TEMPERATURE,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "sensor.22_111111111111_temperature",
|
|
|
|
ATTR_INJECT_READS: ProtocolError,
|
|
|
|
ATTR_STATE: STATE_UNKNOWN,
|
2021-12-01 16:42:08 +00:00
|
|
|
ATTR_STATE_CLASS: SensorStateClass.MEASUREMENT,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_UNIQUE_ID: "/22.111111111111/temperature",
|
|
|
|
ATTR_UNIT_OF_MEASUREMENT: TEMP_CELSIUS,
|
2020-10-14 08:19:12 +00:00
|
|
|
},
|
2020-10-25 17:05:02 +00:00
|
|
|
],
|
2020-10-14 08:19:12 +00:00
|
|
|
},
|
2020-10-24 18:56:41 +00:00
|
|
|
"26.111111111111": {
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_INJECT_READS: [
|
2020-10-25 17:05:02 +00:00
|
|
|
b"DS2438", # read device type
|
|
|
|
],
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_DEVICE_INFO: {
|
2021-07-30 11:35:49 +00:00
|
|
|
ATTR_IDENTIFIERS: {(DOMAIN, "26.111111111111")},
|
2021-10-27 10:02:07 +00:00
|
|
|
ATTR_MANUFACTURER: MANUFACTURER_MAXIM,
|
2021-07-30 11:35:49 +00:00
|
|
|
ATTR_MODEL: "DS2438",
|
|
|
|
ATTR_NAME: "26.111111111111",
|
2020-10-25 17:05:02 +00:00
|
|
|
},
|
2021-12-03 17:25:22 +00:00
|
|
|
Platform.SENSOR: [
|
2020-10-24 18:56:41 +00:00
|
|
|
{
|
2021-12-01 16:33:26 +00:00
|
|
|
ATTR_DEVICE_CLASS: SensorDeviceClass.TEMPERATURE,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "sensor.26_111111111111_temperature",
|
|
|
|
ATTR_INJECT_READS: b" 25.123",
|
|
|
|
ATTR_STATE: "25.1",
|
2021-12-01 16:42:08 +00:00
|
|
|
ATTR_STATE_CLASS: SensorStateClass.MEASUREMENT,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_UNIQUE_ID: "/26.111111111111/temperature",
|
|
|
|
ATTR_UNIT_OF_MEASUREMENT: TEMP_CELSIUS,
|
2020-10-24 18:56:41 +00:00
|
|
|
},
|
|
|
|
{
|
2021-10-19 07:10:26 +00:00
|
|
|
ATTR_DEFAULT_DISABLED: True,
|
2021-12-01 16:33:26 +00:00
|
|
|
ATTR_DEVICE_CLASS: SensorDeviceClass.HUMIDITY,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "sensor.26_111111111111_humidity",
|
|
|
|
ATTR_INJECT_READS: b" 72.7563",
|
|
|
|
ATTR_STATE: "72.8",
|
2021-12-01 16:42:08 +00:00
|
|
|
ATTR_STATE_CLASS: SensorStateClass.MEASUREMENT,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_UNIQUE_ID: "/26.111111111111/humidity",
|
|
|
|
ATTR_UNIT_OF_MEASUREMENT: PERCENTAGE,
|
2020-10-24 18:56:41 +00:00
|
|
|
},
|
|
|
|
{
|
2021-10-19 07:10:26 +00:00
|
|
|
ATTR_DEFAULT_DISABLED: True,
|
2021-12-01 16:33:26 +00:00
|
|
|
ATTR_DEVICE_CLASS: SensorDeviceClass.HUMIDITY,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "sensor.26_111111111111_humidity_hih3600",
|
|
|
|
ATTR_INJECT_READS: b" 73.7563",
|
|
|
|
ATTR_STATE: "73.8",
|
2021-12-01 16:42:08 +00:00
|
|
|
ATTR_STATE_CLASS: SensorStateClass.MEASUREMENT,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_UNIQUE_ID: "/26.111111111111/HIH3600/humidity",
|
|
|
|
ATTR_UNIT_OF_MEASUREMENT: PERCENTAGE,
|
2020-10-24 18:56:41 +00:00
|
|
|
},
|
|
|
|
{
|
2021-10-19 07:10:26 +00:00
|
|
|
ATTR_DEFAULT_DISABLED: True,
|
2021-12-01 16:33:26 +00:00
|
|
|
ATTR_DEVICE_CLASS: SensorDeviceClass.HUMIDITY,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "sensor.26_111111111111_humidity_hih4000",
|
|
|
|
ATTR_INJECT_READS: b" 74.7563",
|
|
|
|
ATTR_STATE: "74.8",
|
2021-12-01 16:42:08 +00:00
|
|
|
ATTR_STATE_CLASS: SensorStateClass.MEASUREMENT,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_UNIQUE_ID: "/26.111111111111/HIH4000/humidity",
|
|
|
|
ATTR_UNIT_OF_MEASUREMENT: PERCENTAGE,
|
2020-10-24 18:56:41 +00:00
|
|
|
},
|
|
|
|
{
|
2021-10-19 07:10:26 +00:00
|
|
|
ATTR_DEFAULT_DISABLED: True,
|
2021-12-01 16:33:26 +00:00
|
|
|
ATTR_DEVICE_CLASS: SensorDeviceClass.HUMIDITY,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "sensor.26_111111111111_humidity_hih5030",
|
|
|
|
ATTR_INJECT_READS: b" 75.7563",
|
|
|
|
ATTR_STATE: "75.8",
|
2021-12-01 16:42:08 +00:00
|
|
|
ATTR_STATE_CLASS: SensorStateClass.MEASUREMENT,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_UNIQUE_ID: "/26.111111111111/HIH5030/humidity",
|
|
|
|
ATTR_UNIT_OF_MEASUREMENT: PERCENTAGE,
|
2020-10-24 18:56:41 +00:00
|
|
|
},
|
|
|
|
{
|
2021-10-19 07:10:26 +00:00
|
|
|
ATTR_DEFAULT_DISABLED: True,
|
2021-12-01 16:33:26 +00:00
|
|
|
ATTR_DEVICE_CLASS: SensorDeviceClass.HUMIDITY,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "sensor.26_111111111111_humidity_htm1735",
|
|
|
|
ATTR_INJECT_READS: ProtocolError,
|
|
|
|
ATTR_STATE: STATE_UNKNOWN,
|
2021-12-01 16:42:08 +00:00
|
|
|
ATTR_STATE_CLASS: SensorStateClass.MEASUREMENT,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_UNIQUE_ID: "/26.111111111111/HTM1735/humidity",
|
|
|
|
ATTR_UNIT_OF_MEASUREMENT: PERCENTAGE,
|
2020-10-24 18:56:41 +00:00
|
|
|
},
|
|
|
|
{
|
2021-10-19 07:10:26 +00:00
|
|
|
ATTR_DEFAULT_DISABLED: True,
|
2021-12-01 16:33:26 +00:00
|
|
|
ATTR_DEVICE_CLASS: SensorDeviceClass.PRESSURE,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "sensor.26_111111111111_pressure",
|
|
|
|
ATTR_INJECT_READS: b" 969.265",
|
|
|
|
ATTR_STATE: "969.3",
|
2021-12-01 16:42:08 +00:00
|
|
|
ATTR_STATE_CLASS: SensorStateClass.MEASUREMENT,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_UNIQUE_ID: "/26.111111111111/B1-R1-A/pressure",
|
|
|
|
ATTR_UNIT_OF_MEASUREMENT: PRESSURE_MBAR,
|
2020-10-24 18:56:41 +00:00
|
|
|
},
|
|
|
|
{
|
2021-10-19 07:10:26 +00:00
|
|
|
ATTR_DEFAULT_DISABLED: True,
|
2021-12-01 16:33:26 +00:00
|
|
|
ATTR_DEVICE_CLASS: SensorDeviceClass.ILLUMINANCE,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "sensor.26_111111111111_illuminance",
|
|
|
|
ATTR_INJECT_READS: b" 65.8839",
|
|
|
|
ATTR_STATE: "65.9",
|
2021-12-01 16:42:08 +00:00
|
|
|
ATTR_STATE_CLASS: SensorStateClass.MEASUREMENT,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_UNIQUE_ID: "/26.111111111111/S3-R1-A/illuminance",
|
|
|
|
ATTR_UNIT_OF_MEASUREMENT: LIGHT_LUX,
|
2020-10-24 18:56:41 +00:00
|
|
|
},
|
|
|
|
{
|
2021-10-19 07:10:26 +00:00
|
|
|
ATTR_DEFAULT_DISABLED: True,
|
2021-12-01 16:33:26 +00:00
|
|
|
ATTR_DEVICE_CLASS: SensorDeviceClass.VOLTAGE,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "sensor.26_111111111111_voltage_vad",
|
|
|
|
ATTR_INJECT_READS: b" 2.97",
|
|
|
|
ATTR_STATE: "3.0",
|
2021-12-01 16:42:08 +00:00
|
|
|
ATTR_STATE_CLASS: SensorStateClass.MEASUREMENT,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_UNIQUE_ID: "/26.111111111111/VAD",
|
|
|
|
ATTR_UNIT_OF_MEASUREMENT: ELECTRIC_POTENTIAL_VOLT,
|
2020-10-24 18:56:41 +00:00
|
|
|
},
|
|
|
|
{
|
2021-10-19 07:10:26 +00:00
|
|
|
ATTR_DEFAULT_DISABLED: True,
|
2021-12-01 16:33:26 +00:00
|
|
|
ATTR_DEVICE_CLASS: SensorDeviceClass.VOLTAGE,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "sensor.26_111111111111_voltage_vdd",
|
|
|
|
ATTR_INJECT_READS: b" 4.74",
|
|
|
|
ATTR_STATE: "4.7",
|
2021-12-01 16:42:08 +00:00
|
|
|
ATTR_STATE_CLASS: SensorStateClass.MEASUREMENT,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_UNIQUE_ID: "/26.111111111111/VDD",
|
|
|
|
ATTR_UNIT_OF_MEASUREMENT: ELECTRIC_POTENTIAL_VOLT,
|
2020-10-24 18:56:41 +00:00
|
|
|
},
|
|
|
|
{
|
2021-10-19 07:10:26 +00:00
|
|
|
ATTR_DEFAULT_DISABLED: True,
|
2021-12-01 16:33:26 +00:00
|
|
|
ATTR_DEVICE_CLASS: SensorDeviceClass.VOLTAGE,
|
2021-11-14 16:30:03 +00:00
|
|
|
ATTR_ENTITY_ID: "sensor.26_111111111111_vis",
|
|
|
|
ATTR_INJECT_READS: b" 0.12",
|
|
|
|
ATTR_STATE: "0.1",
|
2021-12-01 16:42:08 +00:00
|
|
|
ATTR_STATE_CLASS: SensorStateClass.MEASUREMENT,
|
2021-11-14 16:30:03 +00:00
|
|
|
ATTR_UNIQUE_ID: "/26.111111111111/vis",
|
|
|
|
ATTR_UNIT_OF_MEASUREMENT: ELECTRIC_POTENTIAL_VOLT,
|
|
|
|
},
|
|
|
|
],
|
2021-12-03 17:25:22 +00:00
|
|
|
Platform.SWITCH: [
|
2021-11-14 16:30:03 +00:00
|
|
|
{
|
|
|
|
ATTR_DEFAULT_DISABLED: True,
|
2021-12-03 17:20:00 +00:00
|
|
|
ATTR_ENTITY_CATEGORY: EntityCategory.CONFIG,
|
2021-11-14 16:30:03 +00:00
|
|
|
ATTR_ENTITY_ID: "switch.26_111111111111_iad",
|
|
|
|
ATTR_INJECT_READS: b" 1",
|
|
|
|
ATTR_STATE: STATE_ON,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_UNIQUE_ID: "/26.111111111111/IAD",
|
2020-10-24 18:56:41 +00:00
|
|
|
},
|
2020-10-25 17:05:02 +00:00
|
|
|
],
|
2020-10-24 18:56:41 +00:00
|
|
|
},
|
2020-10-14 08:19:12 +00:00
|
|
|
"28.111111111111": {
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_INJECT_READS: [
|
2020-10-25 17:05:02 +00:00
|
|
|
b"DS18B20", # read device type
|
|
|
|
],
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_DEVICE_INFO: {
|
2021-07-30 11:35:49 +00:00
|
|
|
ATTR_IDENTIFIERS: {(DOMAIN, "28.111111111111")},
|
2021-10-27 10:02:07 +00:00
|
|
|
ATTR_MANUFACTURER: MANUFACTURER_MAXIM,
|
2021-07-30 11:35:49 +00:00
|
|
|
ATTR_MODEL: "DS18B20",
|
|
|
|
ATTR_NAME: "28.111111111111",
|
2020-10-25 17:05:02 +00:00
|
|
|
},
|
2021-12-03 17:25:22 +00:00
|
|
|
Platform.SENSOR: [
|
2020-10-14 08:19:12 +00:00
|
|
|
{
|
2021-12-01 16:33:26 +00:00
|
|
|
ATTR_DEVICE_CLASS: SensorDeviceClass.TEMPERATURE,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "sensor.28_111111111111_temperature",
|
|
|
|
ATTR_INJECT_READS: b" 26.984",
|
|
|
|
ATTR_STATE: "27.0",
|
2021-12-01 16:42:08 +00:00
|
|
|
ATTR_STATE_CLASS: SensorStateClass.MEASUREMENT,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_UNIQUE_ID: "/28.111111111111/temperature",
|
|
|
|
ATTR_UNIT_OF_MEASUREMENT: TEMP_CELSIUS,
|
2020-10-14 08:19:12 +00:00
|
|
|
},
|
2020-10-25 17:05:02 +00:00
|
|
|
],
|
2020-10-14 08:19:12 +00:00
|
|
|
},
|
2020-11-08 02:42:20 +00:00
|
|
|
"29.111111111111": {
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_INJECT_READS: [
|
2020-11-08 02:42:20 +00:00
|
|
|
b"DS2408", # read device type
|
|
|
|
],
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_DEVICE_INFO: {
|
2021-07-30 11:35:49 +00:00
|
|
|
ATTR_IDENTIFIERS: {(DOMAIN, "29.111111111111")},
|
2021-10-27 10:02:07 +00:00
|
|
|
ATTR_MANUFACTURER: MANUFACTURER_MAXIM,
|
2021-07-30 11:35:49 +00:00
|
|
|
ATTR_MODEL: "DS2408",
|
|
|
|
ATTR_NAME: "29.111111111111",
|
2020-11-08 02:42:20 +00:00
|
|
|
},
|
2021-12-03 17:25:22 +00:00
|
|
|
Platform.BINARY_SENSOR: [
|
2020-11-08 02:42:20 +00:00
|
|
|
{
|
2021-10-19 07:10:26 +00:00
|
|
|
ATTR_DEFAULT_DISABLED: True,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "binary_sensor.29_111111111111_sensed_0",
|
|
|
|
ATTR_INJECT_READS: b" 1",
|
|
|
|
ATTR_STATE: STATE_ON,
|
|
|
|
ATTR_UNIQUE_ID: "/29.111111111111/sensed.0",
|
2020-11-08 02:42:20 +00:00
|
|
|
},
|
|
|
|
{
|
2021-10-19 07:10:26 +00:00
|
|
|
ATTR_DEFAULT_DISABLED: True,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "binary_sensor.29_111111111111_sensed_1",
|
|
|
|
ATTR_INJECT_READS: b" 0",
|
|
|
|
ATTR_STATE: STATE_OFF,
|
|
|
|
ATTR_UNIQUE_ID: "/29.111111111111/sensed.1",
|
2020-11-08 02:42:20 +00:00
|
|
|
},
|
|
|
|
{
|
2021-10-19 07:10:26 +00:00
|
|
|
ATTR_DEFAULT_DISABLED: True,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "binary_sensor.29_111111111111_sensed_2",
|
|
|
|
ATTR_INJECT_READS: b" 0",
|
|
|
|
ATTR_STATE: STATE_OFF,
|
|
|
|
ATTR_UNIQUE_ID: "/29.111111111111/sensed.2",
|
2020-11-08 02:42:20 +00:00
|
|
|
},
|
|
|
|
{
|
2021-10-19 07:10:26 +00:00
|
|
|
ATTR_DEFAULT_DISABLED: True,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "binary_sensor.29_111111111111_sensed_3",
|
|
|
|
ATTR_INJECT_READS: b" 0",
|
|
|
|
ATTR_STATE: STATE_OFF,
|
|
|
|
ATTR_UNIQUE_ID: "/29.111111111111/sensed.3",
|
2020-11-08 02:42:20 +00:00
|
|
|
},
|
|
|
|
{
|
2021-10-19 07:10:26 +00:00
|
|
|
ATTR_DEFAULT_DISABLED: True,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "binary_sensor.29_111111111111_sensed_4",
|
|
|
|
ATTR_INJECT_READS: b" 0",
|
|
|
|
ATTR_STATE: STATE_OFF,
|
|
|
|
ATTR_UNIQUE_ID: "/29.111111111111/sensed.4",
|
2020-11-08 02:42:20 +00:00
|
|
|
},
|
|
|
|
{
|
2021-10-19 07:10:26 +00:00
|
|
|
ATTR_DEFAULT_DISABLED: True,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "binary_sensor.29_111111111111_sensed_5",
|
|
|
|
ATTR_INJECT_READS: b" 0",
|
|
|
|
ATTR_STATE: STATE_OFF,
|
|
|
|
ATTR_UNIQUE_ID: "/29.111111111111/sensed.5",
|
2020-11-08 02:42:20 +00:00
|
|
|
},
|
|
|
|
{
|
2021-10-19 07:10:26 +00:00
|
|
|
ATTR_DEFAULT_DISABLED: True,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "binary_sensor.29_111111111111_sensed_6",
|
|
|
|
ATTR_INJECT_READS: b" 0",
|
|
|
|
ATTR_STATE: STATE_OFF,
|
|
|
|
ATTR_UNIQUE_ID: "/29.111111111111/sensed.6",
|
2020-11-08 02:42:20 +00:00
|
|
|
},
|
|
|
|
{
|
2021-10-19 07:10:26 +00:00
|
|
|
ATTR_DEFAULT_DISABLED: True,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "binary_sensor.29_111111111111_sensed_7",
|
|
|
|
ATTR_INJECT_READS: b" 0",
|
|
|
|
ATTR_STATE: STATE_OFF,
|
|
|
|
ATTR_UNIQUE_ID: "/29.111111111111/sensed.7",
|
2020-11-08 02:42:20 +00:00
|
|
|
},
|
|
|
|
],
|
2021-12-03 17:25:22 +00:00
|
|
|
Platform.SWITCH: [
|
2020-11-08 18:06:41 +00:00
|
|
|
{
|
2021-10-19 07:10:26 +00:00
|
|
|
ATTR_DEFAULT_DISABLED: True,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "switch.29_111111111111_pio_0",
|
|
|
|
ATTR_INJECT_READS: b" 1",
|
|
|
|
ATTR_STATE: STATE_ON,
|
|
|
|
ATTR_UNIQUE_ID: "/29.111111111111/PIO.0",
|
2020-11-08 18:06:41 +00:00
|
|
|
},
|
|
|
|
{
|
2021-10-19 07:10:26 +00:00
|
|
|
ATTR_DEFAULT_DISABLED: True,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "switch.29_111111111111_pio_1",
|
|
|
|
ATTR_INJECT_READS: b" 0",
|
|
|
|
ATTR_STATE: STATE_OFF,
|
|
|
|
ATTR_UNIQUE_ID: "/29.111111111111/PIO.1",
|
2020-11-08 18:06:41 +00:00
|
|
|
},
|
|
|
|
{
|
2021-10-19 07:10:26 +00:00
|
|
|
ATTR_DEFAULT_DISABLED: True,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "switch.29_111111111111_pio_2",
|
|
|
|
ATTR_INJECT_READS: b" 1",
|
|
|
|
ATTR_STATE: STATE_ON,
|
|
|
|
ATTR_UNIQUE_ID: "/29.111111111111/PIO.2",
|
2020-11-08 18:06:41 +00:00
|
|
|
},
|
|
|
|
{
|
2021-10-19 07:10:26 +00:00
|
|
|
ATTR_DEFAULT_DISABLED: True,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "switch.29_111111111111_pio_3",
|
|
|
|
ATTR_INJECT_READS: b" 0",
|
|
|
|
ATTR_STATE: STATE_OFF,
|
|
|
|
ATTR_UNIQUE_ID: "/29.111111111111/PIO.3",
|
2020-11-08 18:06:41 +00:00
|
|
|
},
|
|
|
|
{
|
2021-10-19 07:10:26 +00:00
|
|
|
ATTR_DEFAULT_DISABLED: True,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "switch.29_111111111111_pio_4",
|
|
|
|
ATTR_INJECT_READS: b" 1",
|
|
|
|
ATTR_STATE: STATE_ON,
|
|
|
|
ATTR_UNIQUE_ID: "/29.111111111111/PIO.4",
|
2020-11-08 18:06:41 +00:00
|
|
|
},
|
|
|
|
{
|
2021-10-19 07:10:26 +00:00
|
|
|
ATTR_DEFAULT_DISABLED: True,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "switch.29_111111111111_pio_5",
|
|
|
|
ATTR_INJECT_READS: b" 0",
|
|
|
|
ATTR_STATE: STATE_OFF,
|
|
|
|
ATTR_UNIQUE_ID: "/29.111111111111/PIO.5",
|
2020-11-08 18:06:41 +00:00
|
|
|
},
|
|
|
|
{
|
2021-10-19 07:10:26 +00:00
|
|
|
ATTR_DEFAULT_DISABLED: True,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "switch.29_111111111111_pio_6",
|
|
|
|
ATTR_INJECT_READS: b" 1",
|
|
|
|
ATTR_STATE: STATE_ON,
|
|
|
|
ATTR_UNIQUE_ID: "/29.111111111111/PIO.6",
|
2020-11-08 18:06:41 +00:00
|
|
|
},
|
|
|
|
{
|
2021-10-19 07:10:26 +00:00
|
|
|
ATTR_DEFAULT_DISABLED: True,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "switch.29_111111111111_pio_7",
|
|
|
|
ATTR_INJECT_READS: b" 0",
|
|
|
|
ATTR_STATE: STATE_OFF,
|
|
|
|
ATTR_UNIQUE_ID: "/29.111111111111/PIO.7",
|
2020-11-08 18:06:41 +00:00
|
|
|
},
|
|
|
|
{
|
2021-10-19 07:10:26 +00:00
|
|
|
ATTR_DEFAULT_DISABLED: True,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "switch.29_111111111111_latch_0",
|
|
|
|
ATTR_INJECT_READS: b" 1",
|
|
|
|
ATTR_STATE: STATE_ON,
|
|
|
|
ATTR_UNIQUE_ID: "/29.111111111111/latch.0",
|
2020-11-08 18:06:41 +00:00
|
|
|
},
|
|
|
|
{
|
2021-10-19 07:10:26 +00:00
|
|
|
ATTR_DEFAULT_DISABLED: True,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "switch.29_111111111111_latch_1",
|
|
|
|
ATTR_INJECT_READS: b" 0",
|
|
|
|
ATTR_STATE: STATE_OFF,
|
|
|
|
ATTR_UNIQUE_ID: "/29.111111111111/latch.1",
|
2020-11-08 18:06:41 +00:00
|
|
|
},
|
|
|
|
{
|
2021-10-19 07:10:26 +00:00
|
|
|
ATTR_DEFAULT_DISABLED: True,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "switch.29_111111111111_latch_2",
|
|
|
|
ATTR_INJECT_READS: b" 1",
|
|
|
|
ATTR_STATE: STATE_ON,
|
|
|
|
ATTR_UNIQUE_ID: "/29.111111111111/latch.2",
|
2020-11-08 18:06:41 +00:00
|
|
|
},
|
|
|
|
{
|
2021-10-19 07:10:26 +00:00
|
|
|
ATTR_DEFAULT_DISABLED: True,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "switch.29_111111111111_latch_3",
|
|
|
|
ATTR_INJECT_READS: b" 0",
|
|
|
|
ATTR_STATE: STATE_OFF,
|
|
|
|
ATTR_UNIQUE_ID: "/29.111111111111/latch.3",
|
2020-11-08 18:06:41 +00:00
|
|
|
},
|
|
|
|
{
|
2021-10-19 07:10:26 +00:00
|
|
|
ATTR_DEFAULT_DISABLED: True,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "switch.29_111111111111_latch_4",
|
|
|
|
ATTR_INJECT_READS: b" 1",
|
|
|
|
ATTR_STATE: STATE_ON,
|
|
|
|
ATTR_UNIQUE_ID: "/29.111111111111/latch.4",
|
2020-11-08 18:06:41 +00:00
|
|
|
},
|
|
|
|
{
|
2021-10-19 07:10:26 +00:00
|
|
|
ATTR_DEFAULT_DISABLED: True,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "switch.29_111111111111_latch_5",
|
|
|
|
ATTR_INJECT_READS: b" 0",
|
|
|
|
ATTR_STATE: STATE_OFF,
|
|
|
|
ATTR_UNIQUE_ID: "/29.111111111111/latch.5",
|
2020-11-08 18:06:41 +00:00
|
|
|
},
|
|
|
|
{
|
2021-10-19 07:10:26 +00:00
|
|
|
ATTR_DEFAULT_DISABLED: True,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "switch.29_111111111111_latch_6",
|
|
|
|
ATTR_INJECT_READS: b" 1",
|
|
|
|
ATTR_STATE: STATE_ON,
|
|
|
|
ATTR_UNIQUE_ID: "/29.111111111111/latch.6",
|
2020-11-08 18:06:41 +00:00
|
|
|
},
|
|
|
|
{
|
2021-10-19 07:10:26 +00:00
|
|
|
ATTR_DEFAULT_DISABLED: True,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "switch.29_111111111111_latch_7",
|
|
|
|
ATTR_INJECT_READS: b" 0",
|
|
|
|
ATTR_STATE: STATE_OFF,
|
|
|
|
ATTR_UNIQUE_ID: "/29.111111111111/latch.7",
|
2020-11-08 18:06:41 +00:00
|
|
|
},
|
|
|
|
],
|
2020-11-08 02:42:20 +00:00
|
|
|
},
|
2021-10-15 06:23:26 +00:00
|
|
|
"3A.111111111111": {
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_INJECT_READS: [
|
2021-10-15 06:23:26 +00:00
|
|
|
b"DS2413", # read device type
|
|
|
|
],
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_DEVICE_INFO: {
|
2021-10-15 06:23:26 +00:00
|
|
|
ATTR_IDENTIFIERS: {(DOMAIN, "3A.111111111111")},
|
2021-10-27 10:02:07 +00:00
|
|
|
ATTR_MANUFACTURER: MANUFACTURER_MAXIM,
|
2021-10-15 06:23:26 +00:00
|
|
|
ATTR_MODEL: "DS2413",
|
|
|
|
ATTR_NAME: "3A.111111111111",
|
|
|
|
},
|
2021-12-03 17:25:22 +00:00
|
|
|
Platform.BINARY_SENSOR: [
|
2021-10-15 06:23:26 +00:00
|
|
|
{
|
2021-10-19 07:10:26 +00:00
|
|
|
ATTR_DEFAULT_DISABLED: True,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "binary_sensor.3a_111111111111_sensed_a",
|
|
|
|
ATTR_INJECT_READS: b" 1",
|
|
|
|
ATTR_STATE: STATE_ON,
|
|
|
|
ATTR_UNIQUE_ID: "/3A.111111111111/sensed.A",
|
2021-10-15 06:23:26 +00:00
|
|
|
},
|
|
|
|
{
|
2021-10-19 07:10:26 +00:00
|
|
|
ATTR_DEFAULT_DISABLED: True,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "binary_sensor.3a_111111111111_sensed_b",
|
|
|
|
ATTR_INJECT_READS: b" 0",
|
|
|
|
ATTR_STATE: STATE_OFF,
|
|
|
|
ATTR_UNIQUE_ID: "/3A.111111111111/sensed.B",
|
2021-10-15 06:23:26 +00:00
|
|
|
},
|
|
|
|
],
|
2021-12-03 17:25:22 +00:00
|
|
|
Platform.SWITCH: [
|
2021-10-15 06:23:26 +00:00
|
|
|
{
|
2021-10-19 07:10:26 +00:00
|
|
|
ATTR_DEFAULT_DISABLED: True,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "switch.3a_111111111111_pio_a",
|
|
|
|
ATTR_INJECT_READS: b" 1",
|
|
|
|
ATTR_STATE: STATE_ON,
|
|
|
|
ATTR_UNIQUE_ID: "/3A.111111111111/PIO.A",
|
2021-10-15 06:23:26 +00:00
|
|
|
},
|
|
|
|
{
|
2021-10-19 07:10:26 +00:00
|
|
|
ATTR_DEFAULT_DISABLED: True,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "switch.3a_111111111111_pio_b",
|
|
|
|
ATTR_INJECT_READS: b" 0",
|
|
|
|
ATTR_STATE: STATE_OFF,
|
|
|
|
ATTR_UNIQUE_ID: "/3A.111111111111/PIO.B",
|
2021-10-15 06:23:26 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2020-10-14 08:19:12 +00:00
|
|
|
"3B.111111111111": {
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_INJECT_READS: [
|
2020-10-25 17:05:02 +00:00
|
|
|
b"DS1825", # read device type
|
|
|
|
],
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_DEVICE_INFO: {
|
2021-07-30 11:35:49 +00:00
|
|
|
ATTR_IDENTIFIERS: {(DOMAIN, "3B.111111111111")},
|
2021-10-27 10:02:07 +00:00
|
|
|
ATTR_MANUFACTURER: MANUFACTURER_MAXIM,
|
2021-07-30 11:35:49 +00:00
|
|
|
ATTR_MODEL: "DS1825",
|
|
|
|
ATTR_NAME: "3B.111111111111",
|
2020-10-25 17:05:02 +00:00
|
|
|
},
|
2021-12-03 17:25:22 +00:00
|
|
|
Platform.SENSOR: [
|
2020-10-14 08:19:12 +00:00
|
|
|
{
|
2021-12-01 16:33:26 +00:00
|
|
|
ATTR_DEVICE_CLASS: SensorDeviceClass.TEMPERATURE,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "sensor.3b_111111111111_temperature",
|
|
|
|
ATTR_INJECT_READS: b" 28.243",
|
|
|
|
ATTR_STATE: "28.2",
|
2021-12-01 16:42:08 +00:00
|
|
|
ATTR_STATE_CLASS: SensorStateClass.MEASUREMENT,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_UNIQUE_ID: "/3B.111111111111/temperature",
|
|
|
|
ATTR_UNIT_OF_MEASUREMENT: TEMP_CELSIUS,
|
2020-10-14 08:19:12 +00:00
|
|
|
},
|
2020-10-25 17:05:02 +00:00
|
|
|
],
|
2020-10-14 08:19:12 +00:00
|
|
|
},
|
|
|
|
"42.111111111111": {
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_INJECT_READS: [
|
2020-10-25 17:05:02 +00:00
|
|
|
b"DS28EA00", # read device type
|
|
|
|
],
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_DEVICE_INFO: {
|
2021-07-30 11:35:49 +00:00
|
|
|
ATTR_IDENTIFIERS: {(DOMAIN, "42.111111111111")},
|
2021-10-27 10:02:07 +00:00
|
|
|
ATTR_MANUFACTURER: MANUFACTURER_MAXIM,
|
2021-07-30 11:35:49 +00:00
|
|
|
ATTR_MODEL: "DS28EA00",
|
|
|
|
ATTR_NAME: "42.111111111111",
|
2020-10-25 17:05:02 +00:00
|
|
|
},
|
2021-12-03 17:25:22 +00:00
|
|
|
Platform.SENSOR: [
|
2020-10-14 08:19:12 +00:00
|
|
|
{
|
2021-12-01 16:33:26 +00:00
|
|
|
ATTR_DEVICE_CLASS: SensorDeviceClass.TEMPERATURE,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "sensor.42_111111111111_temperature",
|
|
|
|
ATTR_INJECT_READS: b" 29.123",
|
|
|
|
ATTR_STATE: "29.1",
|
2021-12-01 16:42:08 +00:00
|
|
|
ATTR_STATE_CLASS: SensorStateClass.MEASUREMENT,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_UNIQUE_ID: "/42.111111111111/temperature",
|
|
|
|
ATTR_UNIT_OF_MEASUREMENT: TEMP_CELSIUS,
|
2020-10-14 08:19:12 +00:00
|
|
|
},
|
2020-10-25 17:05:02 +00:00
|
|
|
],
|
2020-10-14 08:19:12 +00:00
|
|
|
},
|
|
|
|
"EF.111111111111": {
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_INJECT_READS: [
|
2020-10-14 08:19:12 +00:00
|
|
|
b"HobbyBoards_EF", # read type
|
|
|
|
],
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_DEVICE_INFO: {
|
2021-07-30 11:35:49 +00:00
|
|
|
ATTR_IDENTIFIERS: {(DOMAIN, "EF.111111111111")},
|
2021-10-27 10:02:07 +00:00
|
|
|
ATTR_MANUFACTURER: MANUFACTURER_HOBBYBOARDS,
|
2021-07-30 11:35:49 +00:00
|
|
|
ATTR_MODEL: "HobbyBoards_EF",
|
|
|
|
ATTR_NAME: "EF.111111111111",
|
2020-10-25 17:05:02 +00:00
|
|
|
},
|
2021-12-03 17:25:22 +00:00
|
|
|
Platform.SENSOR: [
|
2020-10-14 08:19:12 +00:00
|
|
|
{
|
2021-12-01 16:33:26 +00:00
|
|
|
ATTR_DEVICE_CLASS: SensorDeviceClass.HUMIDITY,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "sensor.ef_111111111111_humidity",
|
|
|
|
ATTR_INJECT_READS: b" 67.745",
|
|
|
|
ATTR_STATE: "67.7",
|
2021-12-01 16:42:08 +00:00
|
|
|
ATTR_STATE_CLASS: SensorStateClass.MEASUREMENT,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_UNIQUE_ID: "/EF.111111111111/humidity/humidity_corrected",
|
|
|
|
ATTR_UNIT_OF_MEASUREMENT: PERCENTAGE,
|
2020-10-14 08:19:12 +00:00
|
|
|
},
|
|
|
|
{
|
2021-12-01 16:33:26 +00:00
|
|
|
ATTR_DEVICE_CLASS: SensorDeviceClass.HUMIDITY,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "sensor.ef_111111111111_humidity_raw",
|
|
|
|
ATTR_INJECT_READS: b" 65.541",
|
|
|
|
ATTR_STATE: "65.5",
|
2021-12-01 16:42:08 +00:00
|
|
|
ATTR_STATE_CLASS: SensorStateClass.MEASUREMENT,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_UNIQUE_ID: "/EF.111111111111/humidity/humidity_raw",
|
|
|
|
ATTR_UNIT_OF_MEASUREMENT: PERCENTAGE,
|
2020-10-14 08:19:12 +00:00
|
|
|
},
|
|
|
|
{
|
2021-12-01 16:33:26 +00:00
|
|
|
ATTR_DEVICE_CLASS: SensorDeviceClass.TEMPERATURE,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "sensor.ef_111111111111_temperature",
|
|
|
|
ATTR_INJECT_READS: b" 25.123",
|
|
|
|
ATTR_STATE: "25.1",
|
2021-12-01 16:42:08 +00:00
|
|
|
ATTR_STATE_CLASS: SensorStateClass.MEASUREMENT,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_UNIQUE_ID: "/EF.111111111111/humidity/temperature",
|
|
|
|
ATTR_UNIT_OF_MEASUREMENT: TEMP_CELSIUS,
|
2020-10-14 08:19:12 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
"EF.111111111112": {
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_INJECT_READS: [
|
2020-10-14 08:19:12 +00:00
|
|
|
b"HB_MOISTURE_METER", # read type
|
|
|
|
b" 1", # read is_leaf_0
|
|
|
|
b" 1", # read is_leaf_1
|
|
|
|
b" 0", # read is_leaf_2
|
|
|
|
b" 0", # read is_leaf_3
|
|
|
|
],
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_DEVICE_INFO: {
|
2021-07-30 11:35:49 +00:00
|
|
|
ATTR_IDENTIFIERS: {(DOMAIN, "EF.111111111112")},
|
2021-10-27 10:02:07 +00:00
|
|
|
ATTR_MANUFACTURER: MANUFACTURER_HOBBYBOARDS,
|
2021-07-30 11:35:49 +00:00
|
|
|
ATTR_MODEL: "HB_MOISTURE_METER",
|
|
|
|
ATTR_NAME: "EF.111111111112",
|
2020-10-25 17:05:02 +00:00
|
|
|
},
|
2021-12-03 17:25:22 +00:00
|
|
|
Platform.SENSOR: [
|
2020-10-14 08:19:12 +00:00
|
|
|
{
|
2021-12-01 16:33:26 +00:00
|
|
|
ATTR_DEVICE_CLASS: SensorDeviceClass.HUMIDITY,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "sensor.ef_111111111112_wetness_0",
|
|
|
|
ATTR_INJECT_READS: b" 41.745",
|
|
|
|
ATTR_STATE: "41.7",
|
2021-12-01 16:42:08 +00:00
|
|
|
ATTR_STATE_CLASS: SensorStateClass.MEASUREMENT,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_UNIQUE_ID: "/EF.111111111112/moisture/sensor.0",
|
|
|
|
ATTR_UNIT_OF_MEASUREMENT: PERCENTAGE,
|
2020-10-14 08:19:12 +00:00
|
|
|
},
|
|
|
|
{
|
2021-12-01 16:33:26 +00:00
|
|
|
ATTR_DEVICE_CLASS: SensorDeviceClass.HUMIDITY,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "sensor.ef_111111111112_wetness_1",
|
|
|
|
ATTR_INJECT_READS: b" 42.541",
|
|
|
|
ATTR_STATE: "42.5",
|
2021-12-01 16:42:08 +00:00
|
|
|
ATTR_STATE_CLASS: SensorStateClass.MEASUREMENT,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_UNIQUE_ID: "/EF.111111111112/moisture/sensor.1",
|
|
|
|
ATTR_UNIT_OF_MEASUREMENT: PERCENTAGE,
|
2020-10-14 08:19:12 +00:00
|
|
|
},
|
|
|
|
{
|
2021-12-01 16:33:26 +00:00
|
|
|
ATTR_DEVICE_CLASS: SensorDeviceClass.PRESSURE,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "sensor.ef_111111111112_moisture_2",
|
|
|
|
ATTR_INJECT_READS: b" 43.123",
|
|
|
|
ATTR_STATE: "43.1",
|
2021-12-01 16:42:08 +00:00
|
|
|
ATTR_STATE_CLASS: SensorStateClass.MEASUREMENT,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_UNIQUE_ID: "/EF.111111111112/moisture/sensor.2",
|
|
|
|
ATTR_UNIT_OF_MEASUREMENT: PRESSURE_CBAR,
|
2020-10-14 08:19:12 +00:00
|
|
|
},
|
|
|
|
{
|
2021-12-01 16:33:26 +00:00
|
|
|
ATTR_DEVICE_CLASS: SensorDeviceClass.PRESSURE,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "sensor.ef_111111111112_moisture_3",
|
|
|
|
ATTR_INJECT_READS: b" 44.123",
|
|
|
|
ATTR_STATE: "44.1",
|
2021-12-01 16:42:08 +00:00
|
|
|
ATTR_STATE_CLASS: SensorStateClass.MEASUREMENT,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_UNIQUE_ID: "/EF.111111111112/moisture/sensor.3",
|
|
|
|
ATTR_UNIT_OF_MEASUREMENT: PRESSURE_CBAR,
|
2020-10-14 08:19:12 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2021-01-26 22:07:04 +00:00
|
|
|
"7E.111111111111": {
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_INJECT_READS: [
|
2021-01-26 22:07:04 +00:00
|
|
|
b"EDS", # read type
|
|
|
|
b"EDS0068", # read device_type - note EDS specific
|
|
|
|
],
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_DEVICE_INFO: {
|
2021-07-30 11:35:49 +00:00
|
|
|
ATTR_IDENTIFIERS: {(DOMAIN, "7E.111111111111")},
|
2021-10-27 10:02:07 +00:00
|
|
|
ATTR_MANUFACTURER: MANUFACTURER_EDS,
|
2021-10-27 17:19:55 +00:00
|
|
|
ATTR_MODEL: "EDS0068",
|
2021-07-30 11:35:49 +00:00
|
|
|
ATTR_NAME: "7E.111111111111",
|
2021-01-26 22:07:04 +00:00
|
|
|
},
|
2021-12-03 17:25:22 +00:00
|
|
|
Platform.SENSOR: [
|
2021-01-26 22:07:04 +00:00
|
|
|
{
|
2021-12-01 16:33:26 +00:00
|
|
|
ATTR_DEVICE_CLASS: SensorDeviceClass.TEMPERATURE,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "sensor.7e_111111111111_temperature",
|
|
|
|
ATTR_INJECT_READS: b" 13.9375",
|
|
|
|
ATTR_STATE: "13.9",
|
2021-12-01 16:42:08 +00:00
|
|
|
ATTR_STATE_CLASS: SensorStateClass.MEASUREMENT,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_UNIQUE_ID: "/7E.111111111111/EDS0068/temperature",
|
|
|
|
ATTR_UNIT_OF_MEASUREMENT: TEMP_CELSIUS,
|
2021-01-26 22:07:04 +00:00
|
|
|
},
|
|
|
|
{
|
2021-12-01 16:33:26 +00:00
|
|
|
ATTR_DEVICE_CLASS: SensorDeviceClass.PRESSURE,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "sensor.7e_111111111111_pressure",
|
|
|
|
ATTR_INJECT_READS: b" 1012.21",
|
|
|
|
ATTR_STATE: "1012.2",
|
2021-12-01 16:42:08 +00:00
|
|
|
ATTR_STATE_CLASS: SensorStateClass.MEASUREMENT,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_UNIQUE_ID: "/7E.111111111111/EDS0068/pressure",
|
|
|
|
ATTR_UNIT_OF_MEASUREMENT: PRESSURE_MBAR,
|
2021-01-26 22:07:04 +00:00
|
|
|
},
|
|
|
|
{
|
2021-12-01 16:33:26 +00:00
|
|
|
ATTR_DEVICE_CLASS: SensorDeviceClass.ILLUMINANCE,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "sensor.7e_111111111111_illuminance",
|
|
|
|
ATTR_INJECT_READS: b" 65.8839",
|
|
|
|
ATTR_STATE: "65.9",
|
2021-12-01 16:42:08 +00:00
|
|
|
ATTR_STATE_CLASS: SensorStateClass.MEASUREMENT,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_UNIQUE_ID: "/7E.111111111111/EDS0068/light",
|
|
|
|
ATTR_UNIT_OF_MEASUREMENT: LIGHT_LUX,
|
2021-01-26 22:07:04 +00:00
|
|
|
},
|
|
|
|
{
|
2021-12-01 16:33:26 +00:00
|
|
|
ATTR_DEVICE_CLASS: SensorDeviceClass.HUMIDITY,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "sensor.7e_111111111111_humidity",
|
|
|
|
ATTR_INJECT_READS: b" 41.375",
|
|
|
|
ATTR_STATE: "41.4",
|
2021-12-01 16:42:08 +00:00
|
|
|
ATTR_STATE_CLASS: SensorStateClass.MEASUREMENT,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_UNIQUE_ID: "/7E.111111111111/EDS0068/humidity",
|
|
|
|
ATTR_UNIT_OF_MEASUREMENT: PERCENTAGE,
|
2021-01-26 22:07:04 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2021-05-20 13:39:34 +00:00
|
|
|
"7E.222222222222": {
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_INJECT_READS: [
|
2021-05-20 13:39:34 +00:00
|
|
|
b"EDS", # read type
|
|
|
|
b"EDS0066", # read device_type - note EDS specific
|
|
|
|
],
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_DEVICE_INFO: {
|
2021-07-30 11:35:49 +00:00
|
|
|
ATTR_IDENTIFIERS: {(DOMAIN, "7E.222222222222")},
|
2021-10-27 10:02:07 +00:00
|
|
|
ATTR_MANUFACTURER: MANUFACTURER_EDS,
|
2021-10-27 17:19:55 +00:00
|
|
|
ATTR_MODEL: "EDS0066",
|
2021-07-30 11:35:49 +00:00
|
|
|
ATTR_NAME: "7E.222222222222",
|
2021-05-20 13:39:34 +00:00
|
|
|
},
|
2021-12-03 17:25:22 +00:00
|
|
|
Platform.SENSOR: [
|
2021-05-20 13:39:34 +00:00
|
|
|
{
|
2021-12-01 16:33:26 +00:00
|
|
|
ATTR_DEVICE_CLASS: SensorDeviceClass.TEMPERATURE,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "sensor.7e_222222222222_temperature",
|
|
|
|
ATTR_INJECT_READS: b" 13.9375",
|
|
|
|
ATTR_STATE: "13.9",
|
2021-12-01 16:42:08 +00:00
|
|
|
ATTR_STATE_CLASS: SensorStateClass.MEASUREMENT,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_UNIQUE_ID: "/7E.222222222222/EDS0066/temperature",
|
|
|
|
ATTR_UNIT_OF_MEASUREMENT: TEMP_CELSIUS,
|
2021-05-20 13:39:34 +00:00
|
|
|
},
|
|
|
|
{
|
2021-12-01 16:33:26 +00:00
|
|
|
ATTR_DEVICE_CLASS: SensorDeviceClass.PRESSURE,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "sensor.7e_222222222222_pressure",
|
|
|
|
ATTR_INJECT_READS: b" 1012.21",
|
|
|
|
ATTR_STATE: "1012.2",
|
2021-12-01 16:42:08 +00:00
|
|
|
ATTR_STATE_CLASS: SensorStateClass.MEASUREMENT,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_UNIQUE_ID: "/7E.222222222222/EDS0066/pressure",
|
|
|
|
ATTR_UNIT_OF_MEASUREMENT: PRESSURE_MBAR,
|
2021-05-20 13:39:34 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2020-10-14 08:19:12 +00:00
|
|
|
}
|
|
|
|
|
2021-04-01 13:06:47 +00:00
|
|
|
MOCK_SYSBUS_DEVICES = {
|
2021-10-19 19:41:01 +00:00
|
|
|
"00-111111111111": {
|
2021-11-09 17:30:05 +00:00
|
|
|
ATTR_UNKNOWN_DEVICE: True,
|
2021-10-19 19:41:01 +00:00
|
|
|
},
|
2021-04-01 13:06:47 +00:00
|
|
|
"10-111111111111": {
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_DEVICE_INFO: {
|
2021-07-30 11:35:49 +00:00
|
|
|
ATTR_IDENTIFIERS: {(DOMAIN, "10-111111111111")},
|
2021-10-27 10:02:07 +00:00
|
|
|
ATTR_MANUFACTURER: MANUFACTURER_MAXIM,
|
2021-07-30 11:35:49 +00:00
|
|
|
ATTR_MODEL: "10",
|
|
|
|
ATTR_NAME: "10-111111111111",
|
2021-04-01 13:06:47 +00:00
|
|
|
},
|
2021-12-03 17:25:22 +00:00
|
|
|
Platform.SENSOR: [
|
2021-04-01 13:06:47 +00:00
|
|
|
{
|
2021-12-01 16:33:26 +00:00
|
|
|
ATTR_DEVICE_CLASS: SensorDeviceClass.TEMPERATURE,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "sensor.my_ds18b20_temperature",
|
|
|
|
ATTR_INJECT_READS: 25.123,
|
|
|
|
ATTR_STATE: "25.1",
|
2021-12-01 16:42:08 +00:00
|
|
|
ATTR_STATE_CLASS: SensorStateClass.MEASUREMENT,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_UNIQUE_ID: "/sys/bus/w1/devices/10-111111111111/w1_slave",
|
|
|
|
ATTR_UNIT_OF_MEASUREMENT: TEMP_CELSIUS,
|
2021-04-01 13:06:47 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
"22-111111111111": {
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_DEVICE_INFO: {
|
2021-07-30 11:35:49 +00:00
|
|
|
ATTR_IDENTIFIERS: {(DOMAIN, "22-111111111111")},
|
2021-10-27 10:02:07 +00:00
|
|
|
ATTR_MANUFACTURER: MANUFACTURER_MAXIM,
|
2021-07-30 11:35:49 +00:00
|
|
|
ATTR_MODEL: "22",
|
|
|
|
ATTR_NAME: "22-111111111111",
|
2021-04-01 13:06:47 +00:00
|
|
|
},
|
2021-12-03 17:25:22 +00:00
|
|
|
Platform.SENSOR: [
|
2021-04-01 13:06:47 +00:00
|
|
|
{
|
2021-12-01 16:33:26 +00:00
|
|
|
ATTR_DEVICE_CLASS: SensorDeviceClass.TEMPERATURE,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "sensor.22_111111111111_temperature",
|
|
|
|
ATTR_INJECT_READS: FileNotFoundError,
|
|
|
|
ATTR_STATE: STATE_UNKNOWN,
|
2021-12-01 16:42:08 +00:00
|
|
|
ATTR_STATE_CLASS: SensorStateClass.MEASUREMENT,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_UNIQUE_ID: "/sys/bus/w1/devices/22-111111111111/w1_slave",
|
|
|
|
ATTR_UNIT_OF_MEASUREMENT: TEMP_CELSIUS,
|
2021-04-01 13:06:47 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
"28-111111111111": {
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_DEVICE_INFO: {
|
2021-07-30 11:35:49 +00:00
|
|
|
ATTR_IDENTIFIERS: {(DOMAIN, "28-111111111111")},
|
2021-10-27 10:02:07 +00:00
|
|
|
ATTR_MANUFACTURER: MANUFACTURER_MAXIM,
|
2021-07-30 11:35:49 +00:00
|
|
|
ATTR_MODEL: "28",
|
|
|
|
ATTR_NAME: "28-111111111111",
|
2021-04-01 13:06:47 +00:00
|
|
|
},
|
2021-12-03 17:25:22 +00:00
|
|
|
Platform.SENSOR: [
|
2021-04-01 13:06:47 +00:00
|
|
|
{
|
2021-12-01 16:33:26 +00:00
|
|
|
ATTR_DEVICE_CLASS: SensorDeviceClass.TEMPERATURE,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "sensor.28_111111111111_temperature",
|
|
|
|
ATTR_INJECT_READS: InvalidCRCException,
|
|
|
|
ATTR_STATE: STATE_UNKNOWN,
|
2021-12-01 16:42:08 +00:00
|
|
|
ATTR_STATE_CLASS: SensorStateClass.MEASUREMENT,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_UNIQUE_ID: "/sys/bus/w1/devices/28-111111111111/w1_slave",
|
|
|
|
ATTR_UNIT_OF_MEASUREMENT: TEMP_CELSIUS,
|
2021-04-01 13:06:47 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
"3B-111111111111": {
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_DEVICE_INFO: {
|
2021-07-30 11:35:49 +00:00
|
|
|
ATTR_IDENTIFIERS: {(DOMAIN, "3B-111111111111")},
|
2021-10-27 10:02:07 +00:00
|
|
|
ATTR_MANUFACTURER: MANUFACTURER_MAXIM,
|
2021-07-30 11:35:49 +00:00
|
|
|
ATTR_MODEL: "3B",
|
|
|
|
ATTR_NAME: "3B-111111111111",
|
2021-04-01 13:06:47 +00:00
|
|
|
},
|
2021-12-03 17:25:22 +00:00
|
|
|
Platform.SENSOR: [
|
2021-04-01 13:06:47 +00:00
|
|
|
{
|
2021-12-01 16:33:26 +00:00
|
|
|
ATTR_DEVICE_CLASS: SensorDeviceClass.TEMPERATURE,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "sensor.3b_111111111111_temperature",
|
|
|
|
ATTR_INJECT_READS: 29.993,
|
|
|
|
ATTR_STATE: "30.0",
|
2021-12-01 16:42:08 +00:00
|
|
|
ATTR_STATE_CLASS: SensorStateClass.MEASUREMENT,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_UNIQUE_ID: "/sys/bus/w1/devices/3B-111111111111/w1_slave",
|
|
|
|
ATTR_UNIT_OF_MEASUREMENT: TEMP_CELSIUS,
|
2021-04-01 13:06:47 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
"42-111111111111": {
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_DEVICE_INFO: {
|
2021-07-30 11:35:49 +00:00
|
|
|
ATTR_IDENTIFIERS: {(DOMAIN, "42-111111111111")},
|
2021-10-27 10:02:07 +00:00
|
|
|
ATTR_MANUFACTURER: MANUFACTURER_MAXIM,
|
2021-07-30 11:35:49 +00:00
|
|
|
ATTR_MODEL: "42",
|
|
|
|
ATTR_NAME: "42-111111111111",
|
2021-04-01 13:06:47 +00:00
|
|
|
},
|
2021-12-03 17:25:22 +00:00
|
|
|
Platform.SENSOR: [
|
2021-04-01 13:06:47 +00:00
|
|
|
{
|
2021-12-01 16:33:26 +00:00
|
|
|
ATTR_DEVICE_CLASS: SensorDeviceClass.TEMPERATURE,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "sensor.42_111111111111_temperature",
|
|
|
|
ATTR_INJECT_READS: UnsupportResponseException,
|
|
|
|
ATTR_STATE: STATE_UNKNOWN,
|
2021-12-01 16:42:08 +00:00
|
|
|
ATTR_STATE_CLASS: SensorStateClass.MEASUREMENT,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_UNIQUE_ID: "/sys/bus/w1/devices/42-111111111111/w1_slave",
|
|
|
|
ATTR_UNIT_OF_MEASUREMENT: TEMP_CELSIUS,
|
2021-04-01 13:06:47 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2021-04-03 21:08:35 +00:00
|
|
|
"42-111111111112": {
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_DEVICE_INFO: {
|
2021-07-30 11:35:49 +00:00
|
|
|
ATTR_IDENTIFIERS: {(DOMAIN, "42-111111111112")},
|
2021-10-27 10:02:07 +00:00
|
|
|
ATTR_MANUFACTURER: MANUFACTURER_MAXIM,
|
2021-07-30 11:35:49 +00:00
|
|
|
ATTR_MODEL: "42",
|
|
|
|
ATTR_NAME: "42-111111111112",
|
2021-04-03 21:08:35 +00:00
|
|
|
},
|
2021-12-03 17:25:22 +00:00
|
|
|
Platform.SENSOR: [
|
2021-04-03 21:08:35 +00:00
|
|
|
{
|
2021-12-01 16:33:26 +00:00
|
|
|
ATTR_DEVICE_CLASS: SensorDeviceClass.TEMPERATURE,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "sensor.42_111111111112_temperature",
|
|
|
|
ATTR_INJECT_READS: [UnsupportResponseException] * 9 + [27.993],
|
|
|
|
ATTR_STATE: "28.0",
|
2021-12-01 16:42:08 +00:00
|
|
|
ATTR_STATE_CLASS: SensorStateClass.MEASUREMENT,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_UNIQUE_ID: "/sys/bus/w1/devices/42-111111111112/w1_slave",
|
|
|
|
ATTR_UNIT_OF_MEASUREMENT: TEMP_CELSIUS,
|
2021-04-03 21:08:35 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
"42-111111111113": {
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_DEVICE_INFO: {
|
2021-07-30 11:35:49 +00:00
|
|
|
ATTR_IDENTIFIERS: {(DOMAIN, "42-111111111113")},
|
2021-10-27 10:02:07 +00:00
|
|
|
ATTR_MANUFACTURER: MANUFACTURER_MAXIM,
|
2021-07-30 11:35:49 +00:00
|
|
|
ATTR_MODEL: "42",
|
|
|
|
ATTR_NAME: "42-111111111113",
|
2021-04-03 21:08:35 +00:00
|
|
|
},
|
2021-12-03 17:25:22 +00:00
|
|
|
Platform.SENSOR: [
|
2021-04-03 21:08:35 +00:00
|
|
|
{
|
2021-12-01 16:33:26 +00:00
|
|
|
ATTR_DEVICE_CLASS: SensorDeviceClass.TEMPERATURE,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_ENTITY_ID: "sensor.42_111111111113_temperature",
|
|
|
|
ATTR_INJECT_READS: [UnsupportResponseException] * 10 + [27.993],
|
|
|
|
ATTR_STATE: STATE_UNKNOWN,
|
2021-12-01 16:42:08 +00:00
|
|
|
ATTR_STATE_CLASS: SensorStateClass.MEASUREMENT,
|
2021-10-19 19:41:01 +00:00
|
|
|
ATTR_UNIQUE_ID: "/sys/bus/w1/devices/42-111111111113/w1_slave",
|
|
|
|
ATTR_UNIT_OF_MEASUREMENT: TEMP_CELSIUS,
|
2021-04-03 21:08:35 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2021-04-01 13:06:47 +00:00
|
|
|
}
|