I'm developping a small dzVents script to automate my venetian blinds.
In domoticz v4.10717, if I want to open a blind I have issue a Off command and a On command if I want to close it.
So with dzVents if I call domoticz.devices( 'blind' ).switchOn() it closes the blind and domoticz.devices( 'blind' ).switchOff() it opens the blind.
But there are also the functions domoticz.devices( 'blind' ).open() and domoticz.devices( 'blind' ).close() but the open() function issues a On command so it closes the blind and the close() function issues a Off command so it opens the blind.
Here the code of those functions https://github.com/domoticz/domoticz/bl ... device.lua :
Code: Select all
function device.close()
return TimedCommand(domoticz, device.name, 'Off', 'device', device.state)
end
function device.open()
return TimedCommand(domoticz, device.name, 'On', 'device', device.state)
end
function device.stop() -- blinds
return TimedCommand(domoticz, device.name, 'Stop', 'device', device.state)
end
The close() and the open() functions of the dzVents API or the way the blinds work ?
In my script I will use switchOn() and switchOff() so I won't get confused with open() and close() but I think either the dzVents functions or the blinds commands should be fixed.