Closed dmichalski closed 5 months ago
resolves #7703
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.
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"
]
}
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",
This time it's ok ^^.
adds DDF for Moes ZM-105-M 1 gang dimmer (_TZE204_dcnsggvz).