raoul wrote:Thanks for the reply. Yes, that is the feature I'm looking for.
As you say, when you make the changes (set desired colour) the change is transmitted to the device, however if for instance saved as an Action, when I come to reply it (i.e. set that specific colour) I am met with the following error;
ShellyMQTT Error Error in plugin execution ExecuteAction:
Traceback (most recent call last):
File "plugin.py", line 685, in actionControlDevice
File "/Library/Application Support/Perceptive Automation/Indigo 7.5/Plugins/ShellyMQTT.indigoPlugin/Contents/Server Plugin/Devices/RGBW2/Shelly_RGBW2_Color.py", line 112, in handleAction
ValueError: invalid literal for int() with base 10: '0.00'
Ah I see what the issue is and I am able to replicate it.
The plugin only expects an integer to be entered in those fields, and Indigo will save your integer inputs as integers. The problem is that when you open that action config UI again, Indigo will convert your entries to a float again by adding the ".00" at the end. Then, when you subsequently save that window, you are saving a float and causing the error.
Long story short, I will get this fixed. The workaround in the meantime is to make sure you change the fields to be integers each time you save that action config UI.
Thanks,
Aaron