Skip to content

Conversation

@dmichalski
Copy link
Contributor

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

@dmichalski
Copy link
Contributor Author

resolves #7703

@Smanar
Copy link
Collaborator

Smanar commented Apr 14, 2024

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 Smanar linked an issue Apr 14, 2024 that may be closed by this pull request
1 task
@Smanar
Copy link
Collaborator

Smanar commented Apr 14, 2024

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
Copy link
Collaborator

Smanar commented Apr 17, 2024

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
Copy link
Collaborator

Smanar commented Apr 19, 2024

This time it's ok ^^.

@manup manup merged commit 29676bc into dresden-elektronik:master Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Moes Smart Dimmer Module 1 Gang ZM-105-M

3 participants