Govee en mode api local

pas besoin

c’est bon
nouvelle beta

Update OK
Voici la log

0000|[2024-09-10 18:11:53] DEBUG  : prepare send
0001|[2024-09-10 18:11:53] DEBUG  : start send/listen
0002|[2024-09-10 18:11:54] DEBUG  : info:{"msg":{"cmd":"scan","data":{"ip":"XXXXXX","device":"YYYYYY","sku":"H7075","bleVersionHard":"3.05.01","bleVersionSoft":"1.00.33","wifiVersionHard":"1.04.01","wifiVersionSoft":"1.01.17"}}}
0003|[2024-09-10 18:11:55] DEBUG  :  wait 3 s
0004|[2024-09-10 18:11:57] DEBUG  :  wait 1 s
0005|[2024-09-10 18:11:58] DEBUG  : No new devices
0006|[2024-09-10 18:11:59] DEBUG  : End Govee LAN

J’ai juste remplacer mon IP par X et la mac par Y

Tu n’as qu’un périphérique compatible ?

Non j’allume l’autre et je lance un scan

Voici la log avec les 2 equipéments

0000|[2024-09-10 18:18:41] DEBUG  : prepare send
0001|[2024-09-10 18:18:41] DEBUG  : start send/listen
0002|[2024-09-10 18:18:42] DEBUG  : info:{"msg":{"cmd":"scan","data":{"ip":"X.X.X.X","device":"YYY","sku":"H7075","bleVersionHard":"3.05.01","bleVersionSoft":"1.00.33","wifiVersionHard":"1.04.01","wifiVersionSoft":"1.01.17"}}}
0003|[2024-09-10 18:18:42] DEBUG  : info:{"msg":{"cmd":"scan","data":{"ip":"XX.XX.XX.XX","device":"YYY","sku":"H7075","bleVersionHard":"3.05.01","bleVersionSoft":"1.00.33","wifiVersionHard":"1.04.01","wifiVersionSoft":"1.01.17"}}}
0004|[2024-09-10 18:18:43] DEBUG  :  wait 3 s
0005|[2024-09-10 18:18:45] DEBUG  :  wait 1 s
0006|[2024-09-10 18:18:46] DEBUG  : No new devices
0007|[2024-09-10 18:18:46] DEBUG  : End Govee LAN

Il voit bien les 2 mais il n’a pas inclus le deuxiéme.
J’en ai créer un seul sur les 2

supprimer les périphériques créés
faire inclusion + logs

Suppression OK
Update OK
log:

0000|[2024-09-10 18:42:26] DEBUG  : prepare send
0001|[2024-09-10 18:42:26] DEBUG  : start send/listen
0002|[2024-09-10 18:42:26] DEBUG  : info:{"msg":{"cmd":"scan","data":{"ip":"X","device":"Y","sku":"H7075","bleVersionHard":"3.05.01","bleVersionSoft":"1.00.33","wifiVersionHard":"1.04.01","wifiVersionSoft":"1.01.17"}}}
0003|[2024-09-10 18:42:26] DEBUG  : dev:j
0004|[2024-09-10 18:42:26] DEBUG  : info:{"msg":{"cmd":"scan","data":{"ip":"XX","device":"YY","sku":"H7075","bleVersionHard":"3.05.01","bleVersionSoft":"1.00.33","wifiVersionHard":"1.04.01","wifiVersionSoft":"1.01.17"}}}
0005|[2024-09-10 18:42:26] DEBUG  : dev:j
0006|[2024-09-10 18:42:28] DEBUG  :  wait 3 s
0007|[2024-09-10 18:42:30] DEBUG  :  wait 1 s
0008|[2024-09-10 18:42:31] DEBUG  : info:Array ( )
0009|[2024-09-10 18:42:31] DEBUG  : No new devices
0010|[2024-09-10 18:42:32] DEBUG  : End Govee LAN

refaire même manip

Update OK
log:

0000|[2024-09-10 18:56:44] DEBUG  : prepare send
0001|[2024-09-10 18:56:44] DEBUG  : start send/listen
0002|[2024-09-10 18:56:44] DEBUG  : info:{"msg":{"cmd":"scan","data":{"ip":"X","device":"Y","sku":"H7075","bleVersionHard":"3.05.01","bleVersionSoft":"1.00.33","wifiVersionHard":"1.04.01","wifiVersionSoft":"1.01.17"}}}
0003|[2024-09-10 18:56:44] DEBUG  : dev:Array (     [msg] => Array         (             [cmd] => scan             [data] => Array                 (                     [ip] => X                     [device] => Y                     [sku] => H7075                     [bleVersionHard] => 3.05.01                     [bleVersionSoft] => 1.00.33                     [wifiVersionHard] => 1.04.01                     [wifiVersionSoft] => 1.01.17                 )          )  )
0004|[2024-09-10 18:56:44] DEBUG  : Add device
0005|[2024-09-10 18:56:44] DEBUG  : info:{"msg":{"cmd":"scan","data":{"ip":"XX","device":"YY","sku":"H7075","bleVersionHard":"3.05.01","bleVersionSoft":"1.00.33","wifiVersionHard":"1.04.01","wifiVersionSoft":"1.01.17"}}}
0006|[2024-09-10 18:56:44] DEBUG  : dev:Array (     [msg] => Array         (             [cmd] => scan             [data] => Array                 (                     [ip] => XX                     [device] => YY                     [sku] => H7075                     [bleVersionHard] => 3.05.01                     [bleVersionSoft] => 1.00.33                     [wifiVersionHard] => 1.04.01                     [wifiVersionSoft] => 1.01.17                 )          )  )
0007|[2024-09-10 18:56:44] DEBUG  : Add device
0008|[2024-09-10 18:56:46] DEBUG  :  wait 3 s
0009|[2024-09-10 18:56:48] DEBUG  :  wait 1 s
0010|[2024-09-10 18:56:49] DEBUG  : info:Array (     [0] => Array         (             [ip] => X             [device] => Y             [sku] => H7075             [bleVersionHard] => 3.05.01             [bleVersionSoft] => 1.00.33             [wifiVersionHard] => 1.04.01             [wifiVersionSoft] => 1.01.17         )      [1] => Array         (             [ip] => XX             [device] => YY             [sku] => H7075             [bleVersionHard] => 3.05.01             [bleVersionSoft] => 1.00.33             [wifiVersionHard] => 1.04.01             [wifiVersionSoft] => 1.01.17         )  )
0011|[2024-09-10 18:56:49] DEBUG  : Devices found

Aucun équipement ajouté & j’ai une erreur dans http.error:

0000|[Tue Sep 10 18:56:49.000402 2024] [php7:error] [pid 29100] [client Y:53336] PHP Fatal error:  Uncaught Error: Using $this when not in object context in /var/www/html/plugins/wifilightV2/core/class/wifilightV2.class.php:3245\nStack trace:\n#0 /var/www/html/plugins/wifilightV2/core/ajax/wifilightV2.ajax.php(38): wifilightV2::IncludeGoveeLAN('0')\n#1 {main}\n  thrown in /var/www/html/plugins/wifilightV2/core/class/wifilightV2.class.php on line 3245, referer: http://X/index.php?v=d&m=wifilightV2&p=wifilightV2

refaire pareil

TOP
Update OK
Log:

0000|[2024-09-10 19:24:29] DEBUG  : prepare send
0001|[2024-09-10 19:24:29] DEBUG  : start send/listen
0002|[2024-09-10 19:24:29] DEBUG  : info:{"msg":{"cmd":"scan","data":{"ip":"XX","device":"YY","sku":"H7075","bleVersionHard":"3.05.01","bleVersionSoft":"1.00.33","wifiVersionHard":"1.04.01","wifiVersionSoft":"1.01.17"}}}
0003|[2024-09-10 19:24:29] DEBUG  : dev:Array (     [msg] => Array         (             [cmd] => scan             [data] => Array                 (                     [ip] => XX                     [device] => YY                     [sku] => H7075                     [bleVersionHard] => 3.05.01                     [bleVersionSoft] => 1.00.33                     [wifiVersionHard] => 1.04.01                     [wifiVersionSoft] => 1.01.17                 )          )  )
0004|[2024-09-10 19:24:29] DEBUG  : Add device
0005|[2024-09-10 19:24:29] DEBUG  : info:{"msg":{"cmd":"scan","data":{"ip":"X","device":"Y","sku":"H7075","bleVersionHard":"3.05.01","bleVersionSoft":"1.00.33","wifiVersionHard":"1.04.01","wifiVersionSoft":"1.01.17"}}}
0006|[2024-09-10 19:24:29] DEBUG  : dev:Array (     [msg] => Array         (             [cmd] => scan             [data] => Array                 (                     [ip] => X                     [device] => Y                     [sku] => H7075                     [bleVersionHard] => 3.05.01                     [bleVersionSoft] => 1.00.33                     [wifiVersionHard] => 1.04.01                     [wifiVersionSoft] => 1.01.17                 )          )  )
0007|[2024-09-10 19:24:29] DEBUG  : Add device
0008|[2024-09-10 19:24:31] DEBUG  :  wait 3 s
0009|[2024-09-10 19:24:33] DEBUG  :  wait 1 s
0010|[2024-09-10 19:24:34] DEBUG  : info:Array (     [0] => Array         (             [ip] => XX             [device] => YY             [sku] => H7075             [bleVersionHard] => 3.05.01             [bleVersionSoft] => 1.00.33             [wifiVersionHard] => 1.04.01             [wifiVersionSoft] => 1.01.17         )      [1] => Array         (             [ip] => X             [device] => Y             [sku] => H7075             [bleVersionHard] => 3.05.01             [bleVersionSoft] => 1.00.33             [wifiVersionHard] => 1.04.01             [wifiVersionSoft] => 1.01.17         )  )
0011|[2024-09-10 19:24:34] DEBUG  : Devices found
0012|[2024-09-10 19:24:34] DEBUG  : Not exist
0013|[2024-09-10 19:24:34] DEBUG  :  Govee model :H7075unknown : bulb type is used instead
0014|[2024-09-10 19:24:34] DEBUG  : Not exist
0015|[2024-09-10 19:24:34] DEBUG  :  Govee model :H7075unknown : bulb type is used instead
0016|[2024-09-10 19:24:38] DEBUG  : End Govee LAN

image

Commande on off OK
Log de la commande off:

0000|[2024-09-10 19:29:07] DEBUG  : Cmd : {"msg":{"cmd":"turn","data":{"value":0}}}
0001|[2024-09-10 19:29:07] DEBUG  :     Bad response

nouvelle beta
le but est de tester stateget et ce que ça renvoie
effacer _cmd
stateget
envoyer _cmd

idem avec « on »

Alors un petit pb.
Update OK
Quand j’essaie d’accéder à la page wifilightv2 voici le message que j’obtiens :

Class 'wifilightV2' not found

corrigé en beta, désolé

Log cmd du stateget:

0000|[2024-09-10 21:11:15] DEBUG  :     Device not connected
0001|[2024-09-10 21:11:15] DEBUG  :     Device not connected
0002|[2024-09-10 21:11:30] DEBUG  :    ********* retstatus *******
0003|[2024-09-10 21:11:30] DEBUG  : Cmd :
0004|[2024-09-10 21:11:30] DEBUG  :     Receive:
0005|[2024-09-10 21:11:30] DEBUG  :     Receive:
0006|[2024-09-10 21:11:30] DEBUG  :     Receive:
0007|[2024-09-10 21:11:30] DEBUG  :     Receive:
0008|[2024-09-10 21:11:30] DEBUG  :     Receive:
0009|[2024-09-10 21:11:30] DEBUG  :     Receive:
0010|[2024-09-10 21:11:30] DEBUG  :     Receive:
0011|[2024-09-10 21:11:30] DEBUG  :     Receive:
0012|[2024-09-10 21:11:30] DEBUG  :     Receive:
0013|[2024-09-10 21:11:30] DEBUG  :     Receive:

Log avec en dernière lignes le on:

0000|[2024-09-10 21:11:15] DEBUG  :     Device not connected
0001|[2024-09-10 21:11:15] DEBUG  :     Device not connected
0002|[2024-09-10 21:11:30] DEBUG  :    ********* retstatus *******
0003|[2024-09-10 21:11:30] DEBUG  : Cmd :
0004|[2024-09-10 21:11:30] DEBUG  :     Receive:
0005|[2024-09-10 21:11:30] DEBUG  :     Receive:
0006|[2024-09-10 21:11:30] DEBUG  :     Receive:
0007|[2024-09-10 21:11:30] DEBUG  :     Receive:
0008|[2024-09-10 21:11:30] DEBUG  :     Receive:
0009|[2024-09-10 21:11:30] DEBUG  :     Receive:
0010|[2024-09-10 21:11:30] DEBUG  :     Receive:
0011|[2024-09-10 21:11:30] DEBUG  :     Receive:
0012|[2024-09-10 21:11:30] DEBUG  :     Receive:
0013|[2024-09-10 21:11:30] DEBUG  :     Receive:
0014|[2024-09-10 21:11:30] DEBUG  :     No response
0015|[2024-09-10 21:11:30] DEBUG  :     Device not connected
0016|[2024-09-10 21:11:46] DEBUG  :     Device not connected
0017|[2024-09-10 21:11:46] DEBUG  :     Device not connected
0018|[2024-09-10 21:12:17] DEBUG  :     Device not connected
0019|[2024-09-10 21:12:17] DEBUG  :     Device not connected
0020|[2024-09-10 21:12:48] DEBUG  :     Device not connected
0021|[2024-09-10 21:12:48] DEBUG  :     Device not connected
0022|[2024-09-10 21:13:12] DEBUG  : Cmd : {"msg":{"cmd":"turn","data":{"value":1}}}
0023|[2024-09-10 21:13:12] DEBUG  :    No response expected

nouvelle beta
uniquement stateget

Voici le log

0000|[2024-09-10 21:32:54] DEBUG  :    ********* retstatus *******
0001|[2024-09-10 21:32:54] DEBUG  : Cmd : {"msg":{"cmd":"devStatus","data":{}}}
0002|[2024-09-10 21:32:54] DEBUG  :     Receive:
0003|[2024-09-10 21:32:54] DEBUG  :     Receive:
0004|[2024-09-10 21:32:54] DEBUG  :     Receive:
0005|[2024-09-10 21:32:54] DEBUG  :     Receive:
0006|[2024-09-10 21:32:54] DEBUG  :     Receive:
0007|[2024-09-10 21:32:54] DEBUG  :     Receive:
0008|[2024-09-10 21:32:54] DEBUG  :     Receive:
0009|[2024-09-10 21:32:54] DEBUG  :     Receive:
0010|[2024-09-10 21:32:54] DEBUG  :     Receive:
0011|[2024-09-10 21:32:54] DEBUG  :     Receive:
0012|[2024-09-10 21:32:54] DEBUG  :     No response
0013|[2024-09-10 21:32:54] DEBUG  :     Device not connected
0014|[2024-09-10 21:32:56] DEBUG  :     Device not connected
0015|[2024-09-10 21:32:56] DEBUG  :     Device not connected

nouvelle beta
même test

et « on » aussi

0000|[2024-09-10 22:09:41] DEBUG  :    ********* retstatus *******
0001|[2024-09-10 22:09:41] DEBUG  : socket_bind() @X:4002 failed: reason: Cannot assign requested address
0002|[2024-09-10 22:09:41] DEBUG  :     Device not connected
0003|[2024-09-10 22:09:44] DEBUG  :     Device not connected
0004|[2024-09-10 22:09:44] DEBUG  :     Device not connected
0005|[2024-09-10 22:09:50] DEBUG  : socket_bind() @X:4002 failed: reason: Cannot assign requested address
0006|[2024-09-10 22:09:50] DEBUG  : socket_bind() @X:4002 failed: reason: Cannot assign requested address
0007|[2024-09-10 22:09:50] DEBUG  :     Device not connected
0008|[2024-09-10 22:10:15] DEBUG  :     Device not connected
0009|[2024-09-10 22:10:15] DEBUG  :     Device not connected

X = mon ip