So I updated to the test version. Restarted the Device Capabilities and BLL apps as well as
Homey itself (just to be sure). However, the issue remains.
I tried changing the BLL variables in the repair screen of the AVD, but after I save the changes, the names of those vaiables shift to another one in the list. The AVD itself keeps displaying data from the correct variables.
As indicated, I have restarted the Device Capabilities (and BLL) app several times after making changes, which did not solve the issue.
I seem to have found a solution:
Change the incorrectly displayed BLL variable to a different/random one in the list, but not the correct one (that is actually being used by DC for reflection):
Then, change the random variable to the correct one in the list;
Apologies that this is probably a newbie question, although I have spent quite a bit of time searching for answers in this forum and elsewhere.
I am using HP 2023 12.2.1 & wanted to create a virtual device that could be used to store electricity kWh consumption values from an external API using Homeyscript and display using Insights.
I started with the Virtual Device app to create a senor \ power meter device. I could set a value using a flow but when I used device.setCapabilityValue in Homeyscript I was getting a ‘Capability Not Setable’ error.
I then switched to using this Device Capabilities app, added a sensor device class and a number field to show as Energy (Sensor) but got the same error when trying to set a value.
I experimented with a couple of different number fields and when I look at these in the Homey Developer Tools app can see that any of the built in energy/power sensors are read-only whilst a Sensor (default) can be set.
However what puzzles me is if the built in/predefined energy/power sensor capabilities are read-only, how is it then possible to set them via a flow and via the creation of custom devices?
Setable means that you as a user can set it.
But ofc the value is setable through the device/app itself (else it would mever have a value).
You could use homeyscript to set the value through the API or emulate a flowcard to set the value.
It would be awsome if i could set the cumulative property also for meter_power, meter_gas and meter_water. Then it would be possible to create a virtual smart meter that could be used with homey energy, see Energy | Homey Apps SDK
I am in contact with developer of the app. I have the same issue. Maybe it is the app but it could also be the update of the mobile app. Keep you posted.
Longshot: does restarting the BLL app help?
I can’t reproduce the ‘press button’ error, but the settings screen of random devices were fully empty. BLL restart solved it.