Sent to support@, because I half-suspect the real solution will require a change in the driver, but posting here in case there's a solution or workaround I could get before Monday....
Iām in the process of migrating areas of my house from SmartThings to Hubitat, and my latest device to move is an Aeotec Smart Switch 6. In SmartThings, I was using jbissonās DTH, which exposed commands to WebCore to switch the device between Momentary, Energy, and Night Light mode. I then used a virtual switch to flip it between Momentary and Night Light. Itās the night light in my sonās room; automations turned it on/off based on a combination of time, mode, and a contact sensor on his door. Via the virtual switch, it could also be voice controlled from phone or Google Home.
Having moved it to Hubitat, itās supported without a custom driver ā yay! I can switch it between Momentary and Night Light from the settings, so thatās a start. However, I canāt seem to change that via Rule Manager. Iām trying to add it as a custom command, and the closest option I see is a āconfigure()ā method, but thereās nothing I can find that tells me what the arguments are to this command.
I can see from Live Logging that itās flipping āparameterNumber:81ā to 2 for Night Light and 1 for Momentary, but configure(81,1) gets a NullPointerException, so thatās not it. Comparing to the ST DTH, I don't think configure() actually does what I want it to do (and this thread suggests the same thing) -- what I need is to send a particular config change to the device.
Is there anything I can do to generate a settings change from Rule Machine, or is this something that has to come from a code change in the driver to expose these as custom commands?