dresden-elektronik / deconz-rest-plugin

deCONZ REST-API plugin to control ZigBee devices
BSD 3-Clause "New" or "Revised" License
1.9k stars 498 forks source link

DDF for Moes ZM-105-M 1 gang dimmer (_TZE204_dcnsggvz) #7708

Closed dmichalski closed 5 months ago

dmichalski commented 5 months ago

adds DDF for Moes ZM-105-M 1 gang dimmer (_TZE204_dcnsggvz).

dmichalski commented 5 months ago

resolves #7703

Smanar commented 5 months ago

Error: The device is missing the device definition (subdevice1.schema.json) for the type "$TYPE_DIMMER_SWITCH"

OK, I will ask what is missing here.

Smanar commented 5 months ago

Ok I think it's because there is no devices\generic\subdevices\dimmer_switch.json So 2 solution , use in the DDF "type": "$TYPE_DIMMABLE_LIGHT", or create a devices\generic\subdevices\dimmer_switch.json with mimic the devices\generic\subdevices\dimmable_light.json for exemple

{
  "schema": "subdevice1.schema.json",
  "type": "$TYPE_DIMMER_SWITCH",
  "name": "Dimmer switch",
  "restapi": "/lights",
  "order": 11,
  "uuid": [
    "$address.ext",
    "0x01"
  ],
  "items": [
    "state/alert",
    "state/bri",
    "state/on",
    "state/reachable"
  ],
  "items_optional": [
    "cap/alert/trigger_effect",
    "cap/bri/move_with_onoff",
    "cap/groups/not_supported",
    "cap/on/off_with_effect",
    "config/bri/execute_if_off",
    "config/bri/startup",
    "config/on/startup"
  ]
}
Smanar commented 5 months ago

Error: 1 validation error in file devices/moes/Moes_ZM-105-M_1_gang_dimmer.json at subdevices/0/items Error: The device should have the item "state/alert" because it is mandatory for devices of type "$TYPE_DIMMER_SWITCH"

Sorry my bad, can you remove this line on the new "dimmer_switch.json" file ?

"state/alert",

Smanar commented 5 months ago

This time it's ok ^^.