Since the dps layout is identical to pir_spotlight with additional RGB/scene dps, the name has been made generic as it most likely matches other similar devices. Issue #1041
@@ -346,6 +346,7 @@ of device.
- Galaxy Projector
- HDMI sync light
- iHD001 LED controller
+- Kojima motion sensor RGBCW nightlight
- Loycco sound machine with nightlight (also sold as Momland nightlight with white noise)
- Loginovo TV sync backlight
- Lytmi Fantasy/Neo 3 HDMI sync backlight
@@ -0,0 +1,185 @@
+name: PIR RGBCW light
+products:
+ - id: hbmq4wdi5vyx9qgu
+ name: Kojima motion sensor nightlight
+primary_entity:
+ entity: light
+ dps:
+ - id: 20
+ type: boolean
+ name: switch
+ - id: 21
+ type: string
+ name: color_mode
+ mapping:
+ - dps_val: white
+ value: color_temp
+ - dps_val: colour
+ value: hs
+ - dps_val: scene
+ value: Scene
+ # iot.tuya.com includes music too, but there is no music_data dp
+ - id: 22
+ name: brightness
+ type: integer
+ range:
+ min: 10
+ max: 1000
+ - scale: 3.92
+ - id: 23
+ name: color_temp
+ min: 0
+ - invert: true
+ - id: 24
+ name: rgbhsv
+ type: hex
+ format:
+ - name: h
+ bytes: 2
+ max: 360
+ - name: s
+ - name: v
+ - id: 25
+ name: scene_data
+ - id: 28
+ name: control_data
+ optional: true
+secondary_entities:
+ - entity: number
+ name: Timer
+ category: config
+ icon: "mdi:timer"
+ - id: 26
+ name: value
+ max: 86400
+ unit: min
+ - scale: 60
+ step: 60
+ - dps_val: null
+ - entity: switch
+ name: Manual mode
+ - id: 51
+ - dps_val: auto
+ value: false
+ - dps_val: manual
+ value: true
+ name: PIR enabled
+ - id: 56
+ - entity: binary_sensor
+ class: motion
+ - id: 52
+ name: sensor
+ - dps_val: "pir"
+ - dps_val: "none"
+ - entity: select
+ name: Motion distance
+ - id: 54
+ name: option
+ - dps_val: "high"
+ value: "Far"
+ - dps_val: "low"
+ value: "Near"
+ - dps_val: "middle"
+ value: "Medium"
+ name: PIR delay
+ - id: 55
+ min: 5
+ max: 3600
+ unit: sec
+ - scale: 1
+ name: Standby delay
+ - id: 58
+ min: 1
+ max: 480
+ name: Standby brightness
+ - id: 59
+ name: Ambient light sensor
+ - id: 53
+ - dps_val: 2000lux
+ value: 2000lux
+ - dps_val: 300lux
+ value: 300lux
+ - dps_val: 50lux
+ value: 50lux
+ - dps_val: 10lux
+ value: 10lux
+ - dps_val: 5lux
+ value: 5lux
@@ -9,5 +9,5 @@
"iot_class": "local_push",
"issue_tracker": "https://github.com/make-all/tuya-local/issues",
"requirements": ["pycryptodome~=3.18","tinytuya==1.12.10"],
- "version": "2023.8.2"
+ "version": "2023.8.3"
}