Skip to content

Commit 5302f85

Browse files
authored
Add PTZ Stop Switch in Smart Camera "sp" category (rospogrigio#202)
* Update base.py * Update switches.py
1 parent dada3f4 commit 5302f85

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

custom_components/localtuya/core/ha_entities/base.py

+1
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,7 @@ class DPCode(StrEnum):
421421
PRM_CONTENT = "prm_content"
422422
PRM_TEMPERATURE = "prm_temperature"
423423
PTZ_CONTROL = "ptz_control"
424+
PTZ_STOP = "ptz_stop"
424425
PUMP_RESET = "pump_reset" # Water pump reset
425426
RECORD_MODE = "record_mode"
426427
RECORD_SWITCH = "record_switch" # Recording switch

custom_components/localtuya/core/ha_entities/switches.py

+6
Original file line numberDiff line numberDiff line change
@@ -605,6 +605,12 @@
605605
icon="mdi:motion-sensor",
606606
entity_category=EntityCategory.CONFIG,
607607
),
608+
LocalTuyaEntity(
609+
id=DPCode.PTZ_STOP,
610+
name="PTZ Stop",
611+
icon="mdi:stop-circle",
612+
entity_category=EntityCategory.CONFIG,
613+
),
608614
),
609615
# Fingerbot
610616
"szjqr": (

0 commit comments

Comments
 (0)