Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Visitor sensor class #207

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion custom_components/echonetlite/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,30 @@

ENL_OP_CODES = {
0x00: { # Sensor-related Device
0x08: { # Visitor sensor class
0xB0: {
CONF_ICON: "mdi:motion-sensor",
}, # Detection threshold level
0xB1: {
CONF_ICON: "mdi:motion-sensor",
}, # Visitor detection status
0xBE: {
TYPE_NUMBER: {
CONF_TYPE: NumberDeviceClass.DURATION,
CONF_UNIT_OF_MEASUREMENT: UnitOfTime.SECONDS,
CONF_MINIMUM: 0,
CONF_MAXIMUM: 0xFFFD,
CONF_MULTIPLIER: 10,
},
}, # Visitor detection holding time
},
0x11: { # Temperature sensor
0xE0: {
CONF_ICON: "mdi:thermometer",
CONF_TYPE: SensorDeviceClass.TEMPERATURE,
CONF_STATE_CLASS: SensorStateClass.MEASUREMENT,
},
}
},
},
0x01: { # Air Conditioner-related Device
0x30: { # Home air conditioner
Expand Down
Loading