I was attempting to use an Acceleration connector with a Boolean global variable and am receiving an error when changing the value from false to true.
Hub platform version: 2.2.4.158
The steps I followed are:
-
Create new Boolean global variable with an initial value of false
-
Create an Acceleration connector
-
Set the value of the global variable to true
-
The following error is shown:
Unexpected Error
An unexpected error has occurred trying to load the app. Check Logs for more information.
Error: Command 'accelerationActive' is not supported by device.
-
Below are the logs from Rule Machine
errorjava.lang.IllegalArgumentException: Command 'accelerationActive' is not supported by device. on line 718 (globalVar)
-
Below is a screen shot of the virtual device that was created:
I will look into this.
OK, there is a bug, and it will be fixed in the next release. Thanks for bringing this to our attention!
Thanks for confirming. These are the connectors that I had started with (first time using in Rule Machine) and I thought I had done something wrong. I implemented using switches for now but will change back once this bug has been resolved,
Also for anyone that runs into this issue. If you define a connector on a local variable you are unable to get back to the variable edit screen (see error below) after you update the variable value.
As a workaround to get back into the variable screen you can:
- Go the Devices list
- Click the connector that is causing the error under the Rule Machine Connectors device
- Update the state of the device from the device page
- Go back to the Rule again and click on the local variables link
- The page will now load and you will be able to remove the Connector
The global variables screen and the local variables behave differently in this regard. For global variables you can still go into the Variable Edit screen even though the issue