Hi !
Thanks for this app which seems very powerful. I’m facing a very basic issue :
I’m looking to use AVD to create a virtual device to regroup every light in my kitchen and display this device on Apple Home with HomeKit. I’m using Homey as a brain but I prefer Apple Home way of organizing the UI, I’m also using Alexa as a voice assistant which mean I should use some restricted type of device because some of them are not recognized by Alexa.
Lights with on/off button are theoretically ok in Alexa and HomeKit. Before trying to regroup all my lights into one virtual device, I was trying to create an AVD with light type and see if it works in HomeKit.
My main issue is the following :
When I create AVD with light type, it shows on Homey and HomeKit. But when I’m hitting the switch button on Apple Home > it turn on on Apple Home and nothing happen on Homey. Same thing when I’m turning it on on homey > nothing happen on Apple Home / HomeKit.
Am I missing something ?
Device class : Light
Buttons with on/off button tab.
Was trying to have a fast result to test, I think I’ll need to go deeper in the architecture of your addon because there is so much possibility. Thanks !
Aah, got it running. It was the other device that I was setting up for reflecting another device for alarm_xxx states, however the target devices app is broken due to the ble issues, so I have deleted the device.
So when any reflected device is missing, all AVDs become unavailable, even they aren’t reflecting the missing device?
where ‘locked’ is the name of a yes/no field, and I get an “Invalid Token: text” error. I’ve also tried setting value to 0 or 1 without success. I’m (obviously) new to coding with Homey and could use some pointers here. Sorry if this is a rudimentary question, I’ve been searching and hacking for the past couple hours and not making progress so I thought I’d reach out for help. Thanks.
let dcApp = await Homey.apps.getApp({id:'nl.qluster-it.DeviceCapabilities'});
// API call to set the value of AVD fields
await dcApp.apiPost('setvalue', {
device:'1_Spotjes Keuken AVD', field:'button1', value:false
});
(The button gets set to Off or On position, but the actual lights is not turned off or on)
Why dont you just use the device card to set the value if you are working in a flow?
Each AVD has flowcards to set values. And each AVD also has an Set value to Expression, but that card should just return the value, like a (calculated) true or false in this instance.
The API calls are mostly for use in HomeyScript, other apps, or remote (outside of Homey) setting of values.