Bonsoir,
j’essaie de comprendre comment utiliser le plugin pour piloter le mode absence sur mon chauffe eau Atlantic explorer V4.
J’ai bien les remontées d’information du chauffe eau et j’arrive à modifier certains paramètre via le plugin.
Par contre pour le mode absence je cale.
1)j’ai remarqué que la date et l’heure ne sont pas mis a jour sur « core:DateTimeState » du chauffe eau via le plugin.
2)lorsque je lance une mise en absence via l’app cosy touch, la valeur est bien modifiée sur serveur cosytouch repri dans le plugin sous le nom de clientSetup_cozytouch_wifi, par contre,si je lance la commande pour mettre en mode absence via le plugin, rien ne se passe
le log est le suivant
[2025-06-06 20:13:42] DEBUG : |INC| Succeeded to load SomfyUnified\SupportedServers
[2025-06-06 20:13:42] INFO : .............................
[2025-06-06 20:13:42] INFO : . Command execution request .
[2025-06-06 20:13:42] INFO : .............................
[2025-06-06 20:13:42] INFO : . SERVER
[2025-06-06 20:13:42] INFO : $serverIdent = serv18
[2025-06-06 20:13:42] INFO : $serverType = wifi
[2025-06-06 20:13:42] INFO : . EQUIPMENT
[2025-06-06 20:13:42] INFO : $equipmentServerAttached = serv18
[2025-06-06 20:13:42] INFO : $equipmentId = 450
[2025-06-06 20:13:42] INFO : $equipmentLabel = clientSetup_cozytouch_wifi
[2025-06-06 20:13:42] INFO : $equipmentIdentifier = 962404
[2025-06-06 20:13:42] INFO : $equipmentType = clientSetup
[2025-06-06 20:13:42] INFO : . COMMAND
[2025-06-06 20:13:42] INFO : $cmdId = 7389
[2025-06-06 20:13:42] INFO : $cmdLogicalId = absence_Set
[2025-06-06 20:13:42] INFO : $cmdLabel = absence_Set
[2025-06-06 20:13:42] INFO : $cmdType = action
[2025-06-06 20:13:42] INFO : $cmdSubType = message
[2025-06-06 20:13:42] INFO : .............................
[2025-06-06 20:13:42] INFO : Execute command <absence_Set> Label=[absence_Set] Type=[action] Subtype=[message] with _options (json_encode) = {"title":"","message":"[1749233700,1749489120]","user_login":"michael","user_id":"3"}
[2025-06-06 20:13:42] DEBUG : + Method: SomfyUnified::executeDeviceCmd ($serverIdent (json_encode): "serv18")
[2025-06-06 20:13:42] DEBUG : |INC| Succeeded to load SomfyUnified\UnifiedAPI
[2025-06-06 20:13:42] DEBUG : |INC| Succeeded to load SomfyUnified\UserServers
[2025-06-06 20:13:42] DEBUG : |INC| Succeeded to load SomfyUnified\SetFileContent
[2025-06-06 20:13:42] DEBUG : |INC| Succeeded to load SomfyUnified\UtilsLib
[2025-06-06 20:13:42] DEBUG : |INC| Succeeded to load SomfyUnified\GetFileContent
[2025-06-06 20:13:42] DEBUG : +- Method: SomfyUnified\GetFileContent::fileGetContents - Succeeded to read file (/var/www/html/plugins/SomfyUnified/userData/servers/userServers.json)
[2025-06-06 20:13:42] DEBUG : +
[2025-06-06 20:13:42] DEBUG : +- Method: SomfyUnified\UnifiedAPI::sendActionToOverkizAPI($serverName: cozytouch_wifi - $arguments (json_encode): {"apiAction":"cozytouchwifi_setsetup","absenceValues":"[1749233700,1749489120]","importDataAsJson":true})
[2025-06-06 20:13:46] INFO : |Un| [serv18] action: cozytouchwifi_setsetup - output[0] = "exceptionError <class 'KeyError'> 'absence' * KeyError('absence')"
[2025-06-06 20:13:46] DEBUG : |Un| Command exec() executed - Output= not empty - Exit code= 0 -> Command executed successfully
sur la tuile du chauffe eau, il ne se met jamais en mode absence, même en utilisant l’appli cosytouch ou en changeant directement sur panel controle du chauffe eau.
Lorsque je change le « setawaymodeduration » sur la tuile du chauffeau, rien ne se passe.
le log
[2025-06-06 20:24:05] DEBUG : |INC| Succeeded to load SomfyUnified\SupportedServers
[2025-06-06 20:24:05] INFO : .............................
[2025-06-06 20:24:05] INFO : . Command execution request .
[2025-06-06 20:24:05] INFO : .............................
[2025-06-06 20:24:05] INFO : . SERVER
[2025-06-06 20:24:05] INFO : $serverIdent = serv01
[2025-06-06 20:24:05] INFO : $serverType = cloud
[2025-06-06 20:24:05] INFO : . EQUIPMENT
[2025-06-06 20:24:05] INFO : $equipmentServerAttached = serv01
[2025-06-06 20:24:05] INFO : $equipmentId = 447
[2025-06-06 20:24:05] INFO : $equipmentLabel = DHWP Actuator
[2025-06-06 20:24:05] INFO : $equipmentIdentifier = io://2070-7958-3232/12950035#1
[2025-06-06 20:24:05] INFO : $equipmentType = devices
[2025-06-06 20:24:05] INFO : $definition_uiClass = WaterHeatingSystem
[2025-06-06 20:24:05] INFO : $controllableName = io:AtlanticDomesticHotWaterProductionV2_CV4E_IOComponent
[2025-06-06 20:24:05] INFO : . COMMAND
[2025-06-06 20:24:05] INFO : $cmdId = 7357
[2025-06-06 20:24:05] INFO : $cmdLogicalId = setAwayModeDuration
[2025-06-06 20:24:05] INFO : $cmdLabel = setAwayModeDuration
[2025-06-06 20:24:05] INFO : $cmdType = action
[2025-06-06 20:24:05] INFO : $cmdSubType = slider
[2025-06-06 20:24:05] INFO : $cmdMinValue = 0
[2025-06-06 20:24:05] INFO : $cmdMaxValue = 6
[2025-06-06 20:24:05] INFO : .............................
[2025-06-06 20:24:05] INFO : Execute command <setAwayModeDuration> Label=[setAwayModeDuration] Type=[action] Subtype=[slider] with _options (json_encode) = {"slider":"2.00","user_login":"michael","user_id":"3"}
[2025-06-06 20:24:05] DEBUG : |INC| Succeeded to load SomfyUnified\GetFileContent
[2025-06-06 20:24:05] DEBUG : |INC| Succeeded to load SomfyUnified\UtilsLib
[2025-06-06 20:24:05] DEBUG : +- Method: SomfyUnified\GetFileContent::fileGetContents - Succeeded to read file (/var/www/html/plugins/SomfyUnified/data/components/WaterHeatingSystem/ioAtlanticDomesticHotWaterProductionV2_CV4E_IOComponent.toml)
[2025-06-06 20:24:05] DEBUG : |INC| Succeeded to load Yosymfony\Toml\Toml
[2025-06-06 20:24:05] DEBUG : |INC| Succeeded to load Yosymfony\ParserUtils\AbstractParser
[2025-06-06 20:24:05] DEBUG : |INC| Succeeded to load Yosymfony\Toml\Parser
[2025-06-06 20:24:05] DEBUG : |INC| Succeeded to load Yosymfony\ParserUtils\LexerInterface
[2025-06-06 20:24:05] DEBUG : |INC| Succeeded to load Yosymfony\Toml\Lexer
[2025-06-06 20:24:06] DEBUG : |INC| Succeeded to load Yosymfony\ParserUtils\BasicLexer
[2025-06-06 20:24:06] DEBUG : |INC| Succeeded to load Yosymfony\ParserUtils\Token
[2025-06-06 20:24:06] DEBUG : |INC| Succeeded to load Yosymfony\ParserUtils\TokenStreamInterface
[2025-06-06 20:24:06] DEBUG : |INC| Succeeded to load Yosymfony\ParserUtils\TokenStream
[2025-06-06 20:24:06] DEBUG : |INC| Succeeded to load Yosymfony\Toml\KeyStore
[2025-06-06 20:24:06] DEBUG : |INC| Succeeded to load Yosymfony\Toml\TomlArray
[2025-06-06 20:24:06] DEBUG : + Method: SomfyUnified::executeDeviceCmd ($serverIdent (json_encode): "serv01")
[2025-06-06 20:24:06] DEBUG : |INC| Succeeded to load SomfyUnified\UnifiedAPI
[2025-06-06 20:24:06] DEBUG : |INC| Succeeded to load SomfyUnified\UserServers
[2025-06-06 20:24:06] DEBUG : |INC| Succeeded to load SomfyUnified\SetFileContent
[2025-06-06 20:24:06] DEBUG : +- Method: SomfyUnified\GetFileContent::fileGetContents - Succeeded to read file (/var/www/html/plugins/SomfyUnified/userData/servers/userServers.json)
[2025-06-06 20:24:06] DEBUG : +
[2025-06-06 20:24:06] DEBUG : +- Method: SomfyUnified\UnifiedAPI::sendActionToOverkizAPI($serverName: atlantic_cozytouch - $arguments (json_encode): {"apiAction":"execute_commands","actionGroupLabel":"setAwayModeDuration","commands":[{"name":"setAwayModeDuration","parameters":[2]}],"deviceURL":"io:\/\/2070-7958-3232\/12950035#1","importDataAsJson":true})
[2025-06-06 20:24:13] INFO : |Un| [serv01] action: execute_commands - output[0] = 467c7ce7-0a1b-4481-6512-6b08a73f4844
[2025-06-06 20:24:13] DEBUG : |Un| Command exec() executed - Output= not empty - Exit code= 0 -> Command executed successfully
[2025-06-06 20:24:13] INFO : ..........
[2025-06-06 20:24:13] INFO : Execute Cmd: serv01 - {"label":"setAwayModeDuration","actions":[{"commands":[{"name":"setAwayModeDuration","parameters":[2]}],"deviceURL":"io:\/\/2070-7958-3232\/12950035#1"}]}
[2025-06-06 20:24:13] INFO : executionId: 467c7ce7-0a1b-4481-6512-6b08a73f4844
[2025-06-06 20:24:13] INFO : ..........
[2025-06-06 20:24:15] DEBUG : +
[2025-06-06 20:24:15] DEBUG : + Method: SomfyUnified::cron
[2025-06-06 20:24:15] DEBUG : |INC| Succeeded to load SomfyUnified\UserServers
[2025-06-06 20:24:15] DEBUG : |INC| Succeeded to load SomfyUnified\SetFileContent
[2025-06-06 20:24:15] DEBUG : |INC| Succeeded to load SomfyUnified\UtilsLib
[2025-06-06 20:24:15] DEBUG : |INC| Succeeded to load SomfyUnified\GetFileContent
[2025-06-06 20:24:15] DEBUG : +- Method: SomfyUnified\GetFileContent::fileGetContents - Succeeded to read file (/var/www/html/plugins/SomfyUnified/userData/servers/userServers.json)
[2025-06-06 20:24:15] DEBUG : +
[2025-06-06 20:24:15] DEBUG : + Method: SomfyUnified::updateEquipmentInfo_All
[2025-06-06 20:24:15] DEBUG : +
[2025-06-06 20:24:15] DEBUG : + Method: SomfyUnified::importSetupData
[2025-06-06 20:24:15] DEBUG : |INC| Succeeded to load SomfyUnified\UnifiedAPI
[2025-06-06 20:24:15] DEBUG : +- Method: SomfyUnified\GetFileContent::fileGetContents - Succeeded to read file (/var/www/html/plugins/SomfyUnified/userData/servers/userServers.json)
[2025-06-06 20:24:15] DEBUG : |INC| Succeeded to load SomfyUnified\SupportedServers
[2025-06-06 20:24:15] DEBUG :
et le log python dans le message suivant
Une idée ?
Informations Jeedom
Core : 4.4.19 (master)
DNS Jeedom : non
Plugin : SomfyUnified
Version : 2025-05-29 18:14:49 (stable)
Statut Démon : Démarré - (2025-06-05 21:14:39)