Child-tile works well in “Ikea dimmer” which have “ocfDeviceType” and “mcdSync: true” flag
But the problem is… writing “ocfDeviceType” and “mcdSync: true” is not just enough to make everything work properly in new app.
To test this,
If you just COPY the source code of “Ikea Button” dth above, and only change the name of the device handler, for example, to “Ikea Button2”.
change isIkeaRemoteControl() method to
private boolean isIkeaRemoteControl() { return true}
to mimic Ikea button,
NO OTHER CHANGE IS MADE.
and create a device using that device handler, (or use simulator), to make a virtual device with this DTH
–>
then these problem only occur in copied DTH.
(Problem 1)
child Buttons show, but, “supportedButtonValues” are being ignored when displaying buttons
(Problem 2)
New app automation is not working properly for child buttons
(Problem 3)
the name in “componentLabel” does not show up, as in original DTH.
There must be some hidden code in Ikea button DTH other than shown in github code to work for New app’s device controller page.
It would be best, if just adding “mcdSync: true” and “ocfdevicetype” would be enough to make multi-button DTH to work properly in new app.
Do you have any plan to fix this problem in smarttings team?
Why I need this fix is …
actually I’m re-writing a DTH for multi button zigbee device (actually it is Hue Dimmer Switch) by modifying Ikea Button DTH…
I expected it to work correctly in New app, but very same problem occurs as above.
(Of course, it works fine in classic app)
I’m sure it’s not the problem of virtual vs physical device. There must be something unknown behind Ikea DTH.
---- original Ikea button DTH (supposed to show like this)
---- copied Ikea button DTH (with error)