Can someone help me please?
I have a buttonsdevice that turns off all my devices.
I would like to have this in my custom web frontend too, but i have no idea how to call it here:
Just like this one which toggles an outlet
function steckdose3(){
socket.emit('call', {
id: 'executeAction-1',
action: 'executeAction',
params: {
actionString: 'toggle steckdose3'
}
});
}
I can toggle it via the webapi with this:
/api/device/off/buttonPressed?buttonId=all-off
if that helps in any way…