Intégration Shelly4Pro : petites erreurs à la création de commandes

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.

Je viens de corriger les puissances et conso qui avaient garder l’ancienne numérotation.
C’est quoi « bouton » ?

Voici ce que ça a donné à la création :

Sur le Shelly4Pro il y a quatre entrées : S1, S2, S3, S4. J’imagine que ça correspond à cela.

Merci pour avoir regardé en tout cas.

Il n’y a pas de commande « Bouton » créées par le plugin, elles viennent d’où ?
Le shelly 4 n’a pas de configuration « Actions » possible, donc input = relais

En fait, après quelques essais, les commandes « Bouton » sont créées lorsqu’on choisit « detached » pour le type de bouton :

Là je viens de faire un essai en mettant les canaux 1/2/3 sur « Toggle Switch » et le canal 4 sur « Detached Switch », et n’est créé que « Bouton 3 ».

image

Dans le log, on voit deux lignes en plus avec btn_on et btn_off

[2020-04-26 19:08:52][DEBUG] : Loading cmd for type : shelly4pro on Shelly4pro - detached channel 4
[2020-04-26 19:08:52][DEBUG] : Creating cmd : Allumer 1
[2020-04-26 19:08:52][DEBUG] : Creating cmd : Eteindre 1
[2020-04-26 19:08:52][DEBUG] : Creating cmd : Statut 1
[2020-04-26 19:08:52][DEBUG] : Creating cmd : Allumer 2
[2020-04-26 19:08:52][DEBUG] : Creating cmd : Eteindre 2
[2020-04-26 19:08:52][DEBUG] : Creating cmd : Statut 2
[2020-04-26 19:08:52][DEBUG] : Creating cmd : Allumer 3
[2020-04-26 19:08:52][DEBUG] : Creating cmd : Eteindre 3
[2020-04-26 19:08:52][DEBUG] : Creating cmd : Statut 3
[2020-04-26 19:08:52][DEBUG] : Creating cmd : Allumer 4
[2020-04-26 19:08:52][DEBUG] : Creating cmd : Eteindre 4
[2020-04-26 19:08:52][DEBUG] : Creating cmd : Statut 4
[2020-04-26 19:08:52][DEBUG] : Creating cmd : Puissance O
[2020-04-26 19:08:52][DEBUG] : Creating cmd : Puissance 1
[2020-04-26 19:08:52][DEBUG] : Creating cmd : Puissance 2
[2020-04-26 19:08:52][DEBUG] : Creating cmd : Puissance 3
[2020-04-26 19:08:52][DEBUG] : Creating cmd : Consommation Totale O
[2020-04-26 19:08:52][DEBUG] : Creating cmd : Consommation Totale 1
[2020-04-26 19:08:52][DEBUG] : Creating cmd : Consommation Totale 2
[2020-04-26 19:08:52][DEBUG] : Creating cmd : Consommation Totale 3
[2020-04-26 19:08:52][DEBUG] : Creating cmd : Online
[2020-04-26 19:08:52][DEBUG] : Creating cmd : Rafraichir
[2020-04-26 19:08:52][DEBUG] : Call : http://192.168.1.212/status
[2020-04-26 19:08:52][DEBUG] : Call : http://192.168.1.212/settings/relay/0?out_on_url=http%3A%2F%2F192.168.1.201%3A8122%2Fid%3D2804%26relay%3D0%26value%3Dout_on_url
[2020-04-26 19:08:53][DEBUG] : Call : http://192.168.1.212/settings/relay/0?out_off_url=http%3A%2F%2F192.168.1.201%3A8122%2Fid%3D2804%26relay%3D0%26value%3Dout_off_url
[2020-04-26 19:08:53][DEBUG] : Call : http://192.168.1.212/settings/relay/0
[2020-04-26 19:08:53][DEBUG] : Button : Array (     [name] =>      [ison] =>      [has_timer] =>      [overpower] =>      [default_state] => off     [btn_type] => toggle     [auto_on] => 0     [auto_off] => 0     [max_power] => 100     [schedule] =>      [schedule_rules] => Array         (         )  )
[2020-04-26 19:08:53][DEBUG] : Call : http://192.168.1.212/settings/relay/0?longpush_url=http%3A%2F%2F192.168.1.201%3A8122%2Fid%3D2804%26relay%3D0%26value%3Dlongpush_url
[2020-04-26 19:08:54][DEBUG] : Call : http://192.168.1.212/settings/relay/0?shortpush_url=http%3A%2F%2F192.168.1.201%3A8122%2Fid%3D2804%26relay%3D0%26value%3Dshortpush_url
[2020-04-26 19:08:54][DEBUG] : Call : http://192.168.1.212/settings/relay/1?out_on_url=http%3A%2F%2F192.168.1.201%3A8122%2Fid%3D2804%26relay%3D0%26value%3D%26relay%3D1%26value%3Dout_on_url
[2020-04-26 19:08:54][DEBUG] : Call : http://192.168.1.212/settings/relay/1?out_off_url=http%3A%2F%2F192.168.1.201%3A8122%2Fid%3D2804%26relay%3D0%26value%3D%26relay%3D1%26value%3Dout_off_url
[2020-04-26 19:08:55][DEBUG] : Call : http://192.168.1.212/settings/relay/1
[2020-04-26 19:08:55][DEBUG] : Button : Array (     [name] =>      [ison] =>      [has_timer] =>      [overpower] =>      [default_state] => off     [btn_type] => toggle     [auto_on] => 0     [auto_off] => 0     [max_power] => 100     [schedule] =>      [schedule_rules] => Array         (         )  )
[2020-04-26 19:08:55][DEBUG] : Call : http://192.168.1.212/settings/relay/1?longpush_url=http%3A%2F%2F192.168.1.201%3A8122%2Fid%3D2804%26relay%3D0%26value%3D%26relay%3D1%26value%3Dlongpush_url
[2020-04-26 19:08:55][DEBUG] : Call : http://192.168.1.212/settings/relay/1?shortpush_url=http%3A%2F%2F192.168.1.201%3A8122%2Fid%3D2804%26relay%3D0%26value%3D%26relay%3D1%26value%3Dshortpush_url
[2020-04-26 19:08:56][DEBUG] : Call : http://192.168.1.212/settings/relay/2?out_on_url=http%3A%2F%2F192.168.1.201%3A8122%2Fid%3D2804%26relay%3D0%26value%3D%26relay%3D1%26value%3D%26relay%3D2%26value%3Dout_on_url
[2020-04-26 19:08:56][DEBUG] : Call : http://192.168.1.212/settings/relay/2?out_off_url=http%3A%2F%2F192.168.1.201%3A8122%2Fid%3D2804%26relay%3D0%26value%3D%26relay%3D1%26value%3D%26relay%3D2%26value%3Dout_off_url
[2020-04-26 19:08:56][DEBUG] : Call : http://192.168.1.212/settings/relay/2
[2020-04-26 19:08:57][DEBUG] : Button : Array (     [name] =>      [ison] =>      [has_timer] =>      [overpower] =>      [default_state] => off     [btn_type] => toggle     [auto_on] => 0     [auto_off] => 0     [max_power] => 100     [schedule] =>      [schedule_rules] => Array         (         )  )
[2020-04-26 19:08:57][DEBUG] : Call : http://192.168.1.212/settings/relay/2?longpush_url=http%3A%2F%2F192.168.1.201%3A8122%2Fid%3D2804%26relay%3D0%26value%3D%26relay%3D1%26value%3D%26relay%3D2%26value%3Dlongpush_url
[2020-04-26 19:08:57][DEBUG] : Call : http://192.168.1.212/settings/relay/2?shortpush_url=http%3A%2F%2F192.168.1.201%3A8122%2Fid%3D2804%26relay%3D0%26value%3D%26relay%3D1%26value%3D%26relay%3D2%26value%3Dshortpush_url
[2020-04-26 19:08:57][DEBUG] : Call : http://192.168.1.212/settings/relay/3?out_on_url=http%3A%2F%2F192.168.1.201%3A8122%2Fid%3D2804%26relay%3D0%26value%3D%26relay%3D1%26value%3D%26relay%3D2%26value%3D%26relay%3D3%26value%3Dout_on_url
[2020-04-26 19:08:58][DEBUG] : Call : http://192.168.1.212/settings/relay/3?out_off_url=http%3A%2F%2F192.168.1.201%3A8122%2Fid%3D2804%26relay%3D0%26value%3D%26relay%3D1%26value%3D%26relay%3D2%26value%3D%26relay%3D3%26value%3Dout_off_url
[2020-04-26 19:08:58][DEBUG] : Call : http://192.168.1.212/settings/relay/3
[2020-04-26 19:08:58][DEBUG] : Button : Array (     [name] =>      [ison] =>      [has_timer] =>      [overpower] =>      [default_state] => off     [btn_type] => detached     [auto_on] => 0     [auto_off] => 0     [max_power] => 2300     [schedule] =>      [schedule_rules] => Array         (         )  )
[2020-04-26 19:08:58][DEBUG] : Call : http://192.168.1.212/settings/relay/3?btn_on_url=http%3A%2F%2F192.168.1.201%3A8122%2Fid%3D2804%26relay%3D0%26value%3D%26relay%3D1%26value%3D%26relay%3D2%26value%3D%26relay%3D3%26value%3Dbtn_on_url
[2020-04-26 19:08:59][DEBUG] : Call : http://192.168.1.212/settings/relay/3?btn_off_url=http%3A%2F%2F192.168.1.201%3A8122%2Fid%3D2804%26relay%3D0%26value%3D%26relay%3D1%26value%3D%26relay%3D2%26value%3D%26relay%3D3%26value%3Dbtn_off_url
[2020-04-26 19:08:59][DEBUG] : Call : http://192.168.1.212/settings/relay/3?longpush_url=http%3A%2F%2F192.168.1.201%3A8122%2Fid%3D2804%26relay%3D0%26value%3D%26relay%3D1%26value%3D%26relay%3D2%26value%3D%26relay%3D3%26value%3Dlongpush_url
[2020-04-26 19:08:59][DEBUG] : Call : http://192.168.1.212/settings/relay/3?shortpush_url=http%3A%2F%2F192.168.1.201%3A8122%2Fid%3D2804%26relay%3D0%26value%3D%26relay%3D1%26value%3D%26relay%3D2%26value%3D%26relay%3D3%26value%3Dshortpush_url

Oui la création des boutons quand on met en detached c’est normal
Mais sur Shelly 4 ca sert à rien, il n’y a pas de settings Action

D’accord. Du coup c’était juste un hasard parce que j’avais configuré 3 canaux en detached, rien à voir avec les histoires de numération. Parfait et merci.

Ce sujet a été automatiquement fermé après 24 heures suivant le dernier commentaire. Aucune réponse n’est permise dorénavant.