| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127 |
- # Example DPS Status
- # {"dps": { "1": false, "14": "memory", "15": "relay", "43": false, "44": "on",
- # "45": "default", "46": true, "47": "on", "48": "high", "49": 3600, "101": 0,
- # "102": 0}
- # Additional DPS 44 "Illuminance State" and 47 "Motion State". I couldn't
- # figure out what those did, device debugger appears to indicate that these
- # were set exactly once (to "on") when the switch was powered on and does NOT
- # seem to trigger or respond when Illuminance or Motion trigger is met, but
- # maybe I just don't know how to check that well. A final DPS shows up only in
- # the Tuya Cloud API: 103 "Timer". There are "timers" in the Smart Life App for
- # this device but I couldn't figure out how they work.
- # Illuminance Switch: Enables/disables illuminance threshold for motion
- # activation
- # Motion Switch: Enables/disables motion-triggered switch
- # Motion Auto-Off Delay: Time in seconds after which to turn off light if
- # triggered by motion
- # Appointment Time: Time of day in minutes when motion switch stops activating,
- # 0 for always
- # Target Time: Time of day in minutes when motion switch can activate, 0 for
- # always
- name: MOES Motion Sensor Smart Switch
- products:
- - id: vd5jgg8vgdbaqerq
- primary_entity:
- entity: switch
- dps:
- - id: 1
- name: switch
- type: boolean
- secondary_entities:
- - entity: select
- category: config
- name: Restore power state
- dps:
- - id: 14
- name: option
- type: string
- mapping:
- - dps_val: memory
- value: Remember Last Status
- - dps_val: "on"
- value: "On"
- - dps_val: "off"
- value: "Off"
- - entity: select
- name: Indicator Light
- category: config
- dps:
- - id: 15
- name: option
- type: string
- mapping:
- - dps_val: none
- value: Indicator LED off
- - dps_val: relay
- value: Indicate switch on/off
- - entity: switch
- name: Illuminance Switch
- dps:
- - id: 43
- name: switch
- type: boolean
- - entity: select
- name: Illuminance Threshold
- category: config
- dps:
- - id: 45
- name: option
- type: string
- mapping:
- - dps_val: default
- value: Default Threshold
- - dps_val: now
- value: Current Illuminance
- - entity: switch
- name: Motion Switch
- dps:
- - id: 46
- name: switch
- type: boolean
- - entity: select
- name: Motion Sensitivity
- category: config
- dps:
- - id: 48
- name: option
- type: string
- mapping:
- - dps_val: "low"
- value: "Low"
- - dps_val: "middle"
- value: "Medium"
- - dps_val: "high"
- value: "High"
- - entity: number
- name: Motion Auto-Off Delay
- category: config
- dps:
- - id: 49
- name: option
- type: integer
- unit: s
- range:
- min: 5
- max: 3600
- - entity: number
- name: Appointment Time
- category: config
- dps:
- - id: 101
- name: option
- type: integer
- unit: min
- range:
- min: 0
- max: 1440
- - entity: number
- name: Target Time
- category: config
- dps:
- - id: 102
- name: option
- type: integer
- unit: min
- range:
- min: 0
- max: 1440
|