j'ai créé des interrupteurs virtuels 3; (up, down et stop) comme sur ma télécommande de base velux et ca marche ...
D'apres les affichages consoles au lancement du script python.
les commandes io control sont : ['close', 'delayedStopIdentify', 'down', 'getName', 'identify', 'my', 'open', 'refreshMemorized1Position', 'setClosure', 'setDeployment', 'setMemorized1Position', 'setName', 'setPosition', 'setSecuredPosition', 'startIdentify', 'stop', 'stopIdentify', 'up', 'wink']
il suffit de rajouter la commande stop en plus des actions up, down et my dans start.py
PAR EXEMPLE POUR RAJOUTER LA COMMANDE STOP EN PLUS DE DOWN ET UP:
@app.route('/execute/<string:label>/<string:command>', methods=['GET'])
def execute(label, command):
if command not in ['up', 'my', 'down']:
return jsonify(success=False, message='Command not found')
data = {
"commands": [
{
"name": command,
}
]
}
PAR:
@app.route('/execute/<string:label>/<string:command>', methods=['GET'])
def execute(label, command):
if command not in ['up', 'my', 'stop', 'down']:
return jsonify(success=False, message='Command not found')
data = {
"commands": [
{
"name": command,
}
]
}
et mettre la commande
http://xxx.xxx.xxx.xxx:5000/execute/nom ... Velux/stop
dans l'interrupteur domoticz STOP