Bonjour,
Je viens d’intégrer un Shelly4Pro (firmware 20191216-090307/v1.5.7@c30657ba) avec le plugin Shelly et apparemment il y a quelques petites erreurs dans la création des commandes :
- Commandes allumer et éteindre : commandes créées et fonctionnelles
- Boutons : la numérotation commence à 0 et il manque une entrée (bouton 0, bouton 1, bouton 2 crées). Je n’ai pas la possibilité de tester pour le moment si l’information remonte.
- Consommation totale : 4 commandes créées, mais une qui s’appelle « Consommation Totale O » (avec un « O », pas un zéro). Cette dernière est d’ailleurs liée à la lampe 1, et la numérotation est décalée ensuite aussi. L’information remonte bien.
- Puissance : idem ci-dessus
J’ai aussi remarqué que la mise à jour des statuts n’est pas instantanée comme pour les autres Shelly. Mais comme je ne retrouve l’option « OUTPUT SWITCHED ON URL » dans l’interface, j’imagine que c’est Shelly qui n’a pas implémenté l’option.
Voici le log à la création des commandes :
[2020-04-25 11:18:06][DEBUG] : Loading cmd for type : on Shelly4Pro
[2020-04-25 11:18:06][DEBUG] : Offline Shelly : Shelly4Pro
[2020-04-25 11:18:27][DEBUG] : Loading cmd for type : shelly4pro on Shelly4Pro
[2020-04-25 11:18:27][DEBUG] : Creating cmd : Allumer 1
[2020-04-25 11:18:27][DEBUG] : Creating cmd : Eteindre 1
[2020-04-25 11:18:27][DEBUG] : Creating cmd : Statut 1
[2020-04-25 11:18:27][DEBUG] : Creating cmd : Allumer 2
[2020-04-25 11:18:27][DEBUG] : Creating cmd : Eteindre 2
[2020-04-25 11:18:27][DEBUG] : Creating cmd : Statut 2
[2020-04-25 11:18:27][DEBUG] : Creating cmd : Allumer 3
[2020-04-25 11:18:27][DEBUG] : Creating cmd : Eteindre 3
[2020-04-25 11:18:27][DEBUG] : Creating cmd : Statut 3
[2020-04-25 11:18:27][DEBUG] : Creating cmd : Allumer 4
[2020-04-25 11:18:27][DEBUG] : Creating cmd : Eteindre 4
[2020-04-25 11:18:27][DEBUG] : Creating cmd : Statut 4
[2020-04-25 11:18:27][DEBUG] : Creating cmd : Puissance O
[2020-04-25 11:18:27][DEBUG] : Creating cmd : Puissance 1
[2020-04-25 11:18:27][DEBUG] : Creating cmd : Puissance 2
[2020-04-25 11:18:27][DEBUG] : Creating cmd : Puissance 3
[2020-04-25 11:18:27][DEBUG] : Creating cmd : Consommation Totale O
[2020-04-25 11:18:27][DEBUG] : Creating cmd : Consommation Totale 1
[2020-04-25 11:18:27][DEBUG] : Creating cmd : Consommation Totale 2
[2020-04-25 11:18:27][DEBUG] : Creating cmd : Consommation Totale 3
[2020-04-25 11:18:27][DEBUG] : Creating cmd : Online
[2020-04-25 11:18:27][DEBUG] : Creating cmd : Rafraichir
[2020-04-25 11:18:28][DEBUG] : Call : http://192.168.1.212/status
[2020-04-25 11:18:28][DEBUG] : Call : http://192.168.1.212/settings/relay/0?out_on_url=http%3A%2F%2F192.168.1.201%3A8122%2Fid%3D2796%26relay%3D0%26value%3Dout_on_url
[2020-04-25 11:18:28][DEBUG] : Call : http://192.168.1.212/settings/relay/0?out_off_url=http%3A%2F%2F192.168.1.201%3A8122%2Fid%3D2796%26relay%3D0%26value%3Dout_off_url
[2020-04-25 11:18:28][DEBUG] : Call : http://192.168.1.212/settings/relay/0
[2020-04-25 11:18:29][DEBUG] : Button : Array ( [name] => [ison] => 1 [has_timer] => [overpower] => [default_state] => off [btn_type] => detached [auto_on] => 0 [auto_off] => 0 [max_power] => 100 [schedule] => [schedule_rules] => Array ( ) )
[2020-04-25 11:18:29][DEBUG] : Call : http://192.168.1.212/settings/relay/0?btn_on_url=http%3A%2F%2F192.168.1.201%3A8122%2Fid%3D2796%26relay%3D0%26value%3Dbtn_on_url
[2020-04-25 11:18:29][DEBUG] : Call : http://192.168.1.212/settings/relay/0?btn_off_url=http%3A%2F%2F192.168.1.201%3A8122%2Fid%3D2796%26relay%3D0%26value%3Dbtn_off_url
[2020-04-25 11:18:29][DEBUG] : Call : http://192.168.1.212/settings/relay/0?longpush_url=http%3A%2F%2F192.168.1.201%3A8122%2Fid%3D2796%26relay%3D0%26value%3Dlongpush_url
[2020-04-25 11:18:30][DEBUG] : Call : http://192.168.1.212/settings/relay/0?shortpush_url=http%3A%2F%2F192.168.1.201%3A8122%2Fid%3D2796%26relay%3D0%26value%3Dshortpush_url
[2020-04-25 11:18:31][DEBUG] : Call : http://192.168.1.212/settings/relay/1?out_on_url=http%3A%2F%2F192.168.1.201%3A8122%2Fid%3D2796%26relay%3D0%26value%3D%26relay%3D1%26value%3Dout_on_url
[2020-04-25 11:18:31][DEBUG] : Call : http://192.168.1.212/settings/relay/1?out_off_url=http%3A%2F%2F192.168.1.201%3A8122%2Fid%3D2796%26relay%3D0%26value%3D%26relay%3D1%26value%3Dout_off_url
[2020-04-25 11:18:31][DEBUG] : Call : http://192.168.1.212/settings/relay/1
[2020-04-25 11:18:32][DEBUG] : Button : Array ( [name] => [ison] => [has_timer] => [overpower] => [default_state] => off [btn_type] => detached [auto_on] => 0 [auto_off] => 0 [max_power] => 100 [schedule] => [schedule_rules] => Array ( ) )
[2020-04-25 11:18:32][DEBUG] : Call : http://192.168.1.212/settings/relay/1?btn_on_url=http%3A%2F%2F192.168.1.201%3A8122%2Fid%3D2796%26relay%3D0%26value%3D%26relay%3D1%26value%3Dbtn_on_url
[2020-04-25 11:18:32][DEBUG] : Call : http://192.168.1.212/settings/relay/1?btn_off_url=http%3A%2F%2F192.168.1.201%3A8122%2Fid%3D2796%26relay%3D0%26value%3D%26relay%3D1%26value%3Dbtn_off_url
[2020-04-25 11:18:32][DEBUG] : Call : http://192.168.1.212/settings/relay/1?longpush_url=http%3A%2F%2F192.168.1.201%3A8122%2Fid%3D2796%26relay%3D0%26value%3D%26relay%3D1%26value%3Dlongpush_url
[2020-04-25 11:18:33][DEBUG] : Call : http://192.168.1.212/settings/relay/1?shortpush_url=http%3A%2F%2F192.168.1.201%3A8122%2Fid%3D2796%26relay%3D0%26value%3D%26relay%3D1%26value%3Dshortpush_url
[2020-04-25 11:18:33][DEBUG] : Call : http://192.168.1.212/settings/relay/2?out_on_url=http%3A%2F%2F192.168.1.201%3A8122%2Fid%3D2796%26relay%3D0%26value%3D%26relay%3D1%26value%3D%26relay%3D2%26value%3Dout_on_url
[2020-04-25 11:18:34][DEBUG] : Call : http://192.168.1.212/settings/relay/2?out_off_url=http%3A%2F%2F192.168.1.201%3A8122%2Fid%3D2796%26relay%3D0%26value%3D%26relay%3D1%26value%3D%26relay%3D2%26value%3Dout_off_url
[2020-04-25 11:18:34][DEBUG] : Call : http://192.168.1.212/settings/relay/2
[2020-04-25 11:18:34][DEBUG] : Button : Array ( [name] => [ison] => [has_timer] => [overpower] => [default_state] => off [btn_type] => detached [auto_on] => 0 [auto_off] => 0 [max_power] => 100 [schedule] => [schedule_rules] => Array ( ) )
[2020-04-25 11:18:34][DEBUG] : Call : http://192.168.1.212/settings/relay/2?btn_on_url=http%3A%2F%2F192.168.1.201%3A8122%2Fid%3D2796%26relay%3D0%26value%3D%26relay%3D1%26value%3D%26relay%3D2%26value%3Dbtn_on_url
[2020-04-25 11:18:34][DEBUG] : Call : http://192.168.1.212/settings/relay/2?btn_off_url=http%3A%2F%2F192.168.1.201%3A8122%2Fid%3D2796%26relay%3D0%26value%3D%26relay%3D1%26value%3D%26relay%3D2%26value%3Dbtn_off_url
[2020-04-25 11:18:35][DEBUG] : Call : http://192.168.1.212/settings/relay/2?longpush_url=http%3A%2F%2F192.168.1.201%3A8122%2Fid%3D2796%26relay%3D0%26value%3D%26relay%3D1%26value%3D%26relay%3D2%26value%3Dlongpush_url
[2020-04-25 11:18:35][DEBUG] : Call : http://192.168.1.212/settings/relay/2?shortpush_url=http%3A%2F%2F192.168.1.201%3A8122%2Fid%3D2796%26relay%3D0%26value%3D%26relay%3D1%26value%3D%26relay%3D2%26value%3Dshortpush_url
[2020-04-25 11:18:35][DEBUG] : Call : http://192.168.1.212/settings/relay/3?out_on_url=http%3A%2F%2F192.168.1.201%3A8122%2Fid%3D2796%26relay%3D0%26value%3D%26relay%3D1%26value%3D%26relay%3D2%26value%3D%26relay%3D3%26value%3Dout_on_url
[2020-04-25 11:18:36][DEBUG] : Call : http://192.168.1.212/settings/relay/3?out_off_url=http%3A%2F%2F192.168.1.201%3A8122%2Fid%3D2796%26relay%3D0%26value%3D%26relay%3D1%26value%3D%26relay%3D2%26value%3D%26relay%3D3%26value%3Dout_off_url
[2020-04-25 11:18:37][DEBUG] : Call : http://192.168.1.212/settings/relay/3
[2020-04-25 11:18:37][DEBUG] : Button : Array ( [name] => [ison] => [has_timer] => [overpower] => [default_state] => off [btn_type] => toggle [auto_on] => 0 [auto_off] => 0 [max_power] => 2300 [schedule] => [schedule_rules] => Array ( ) )
[2020-04-25 11:18:37][DEBUG] : Call : http://192.168.1.212/settings/relay/3?longpush_url=http%3A%2F%2F192.168.1.201%3A8122%2Fid%3D2796%26relay%3D0%26value%3D%26relay%3D1%26value%3D%26relay%3D2%26value%3D%26relay%3D3%26value%3Dlongpush_url
[2020-04-25 11:18:38][DEBUG] : Call : http://192.168.1.212/settings/relay/3?shortpush_url=http%3A%2F%2F192.168.1.201%3A8122%2Fid%3D2796%26relay%3D0%26value%3D%26relay%3D1%26value%3D%26relay%3D2%26value%3D%26relay%3D3%26value%3Dshortpush_url
Si besoin, je peux fournir plus d’informations et tester.