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

Add HmIP-DLS #453

Merged
merged 2 commits into from
Aug 14, 2022
Merged
Show file tree
Hide file tree
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
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Any help from the community through e.g. pull requests would be highly appreciat

## Thanks

Kudos and a big thank you to @greenberet, who created this library.
Kudos and a big thank you to @coreGreenberet, who created this library.

## Documentation

Expand Down Expand Up @@ -84,6 +84,7 @@ A few examples:
- [ ] HMIP-BWTH24 (Wall Thermostat Display with switching output – for brand switches, 24V)
- [ ] HMIP-DBB (Doorbell Push-Button)
- [x] HMIP-DLD (Door Lock Drive)
- [x] HMIP-DLS (Door Lock Sensor)
- [x] HMIP-DRBLI4 (Blind Actuator for DIN rail mount – 4 channels)
- [x] HMIP-DRSI1 (Switch Actuator for DIN rail mount – 1x channel)
- [x] HMIP-DRDI3 (Dimming Actuator Inbound 230V – 3x channels, 200W per channel) electrical DIN rail
Expand Down
1 change: 1 addition & 0 deletions homematicip/aio/class_maps.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
DeviceType.DIN_RAIL_SWITCH: AsyncDinRailSwitch,
DeviceType.DIN_RAIL_SWITCH_4: AsyncDinRailSwitch4,
DeviceType.DOOR_LOCK_DRIVE: AsyncDoorLockDrive,
DeviceType.DOOR_LOCK_SENSOR: AsyncDoorLockSensor,
DeviceType.FLOOR_TERMINAL_BLOCK_10: AsyncFloorTerminalBlock10,
DeviceType.FLOOR_TERMINAL_BLOCK_12: AsyncFloorTerminalBlock12,
DeviceType.FLOOR_TERMINAL_BLOCK_6: AsyncFloorTerminalBlock6,
Expand Down
4 changes: 4 additions & 0 deletions homematicip/aio/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -613,3 +613,7 @@ async def set_lock_state(self, doorLockState: LockState, pin="", channelIndex=1)
return await self._connection.api_call(
*super().set_lock_state(doorLockState, pin, channelIndex)
)


class AsyncDoorLockSensor(DoorLockSensor, AsyncDevice):
"""HmIP-DLS"""
3 changes: 3 additions & 0 deletions homematicip/base/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ class DeviceType(AutoNameEnum):
DIN_RAIL_SWITCH_4 = auto()
DIN_RAIL_DIMMER_3 = auto()
DOOR_LOCK_DRIVE = auto()
DOOR_LOCK_SENSOR = auto()
FLOOR_TERMINAL_BLOCK_6 = auto()
FLOOR_TERMINAL_BLOCK_10 = auto()
FLOOR_TERMINAL_BLOCK_12 = auto()
Expand Down Expand Up @@ -420,6 +421,7 @@ class FunctionalChannelType(AutoNameEnum):
DEVICE_SABOTAGE = auto()
DOOR_CHANNEL = auto()
DOOR_LOCK_CHANNEL = auto()
DOOR_LOCK_SENSOR_CHANNEL = auto()
DIMMER_CHANNEL = auto()
FLOOR_TERMINAL_BLOCK_CHANNEL = auto()
FLOOR_TERMINAL_BLOCK_LOCAL_PUMP_CHANNEL = auto()
Expand Down Expand Up @@ -603,6 +605,7 @@ class LockState(AutoNameEnum):
OPEN = auto()
UNLOCKED = auto()
LOCKED = auto()
NONE = auto()


class MotorState(AutoNameEnum):
Expand Down
Loading