stas-demydiuk / ewpe-smart-mqtt

MQTT bridge for EWPE Smart powered devices
MIT License
64 stars 26 forks source link

Specifying multiple network addresses does not work #24

Closed pictop closed 3 years ago

pictop commented 3 years ago

Hello,

Unfortunately, the specification of several IP addresses does not work for me. I have tried the following: NETWORK=192.168.3.10;192.168.3.9 NETWORK=192.168.3.10; 192.168.3.9

The system uses only the first IP. Does anyone have an idea?

pi@pi01:~ $ su - Password: -bash: 192.168.3.9: command not found root@pi01:~# cd ewpe-smart-mqtt/ root@pi01:~/ewpe-smart-mqtt# npm start

ewpe-smart-mqtt@1.0.4 start /root/ewpe-smart-mqtt node index.js

2021-08-29T09:01:11.233Z [info]: Trying to connect to MQTT server mqtt://localhost ... 2021-08-29T09:01:11.677Z [info]: Successfully connected to MQTT server 2021-08-29T09:01:11.732Z [info]: Socket server is listening on 0.0.0.0:56331 2021-08-29T09:01:11.736Z [info]: Scanning network 192.168.3.10 for available devices... 2021-08-29T09:01:11.773Z [info]: New device found: 1ed* (f4911ed4***), binding... 2021-08-29T09:01:11.806Z [info]: New device bound: 1ed (192.168.3.10:7000) 2021-08-29T09:01:11.815Z [info]: MQTT message received: ewpe-smart/f4911ed {cid:f4911ed,bc:gree,brand:gree,catalog:gree,mac:f4911ed,mid:10002,model:gree,name:1ed,series:gree,vender:1,ver:V1.1.13,lock:0,address:192.168.3.10,port:7000,key:**} 2021-08-29T09:01:41.843Z [info]: MQTT message received: ewpe-smart/f4911ed*****/status {Pow:0,Mod:1,TemUn:0,SetTem:25,TemRec:0,WdSpd:0,Air:0,Blo:1,Health:0,SwhSlp:0,Lig:1,SwingLfRig:0,SwUpDn:0,Quiet:0,Tur:0,SvSt:0,TemSen:-40}

Thank you, pictop

pictop commented 3 years ago

Now it works.. The "" character was the problem!

NETWORK="192.168.3.10;192.168.3.9"