Log z Mosquitto brokera:
s6-rc: info: service legacy-services successfully started
[13:35:54] INFO: Starting mosquitto MQTT broker...
2024-06-05 13:35:54: Warning: Mosquitto should not be run as root/administrator.
2024-06-05 13:35:54: mosquitto version 2.0.18 starting
2024-06-05 13:35:54: Config loaded from /etc/mosquitto/mosquitto.conf.
2024-06-05 13:35:54: Loading plugin: /usr/share/mosquitto/go-auth.so
2024-06-05 13:35:54: ├── Username/password checking enabled.
2024-06-05 13:35:54: ├── TLS-PSK checking enabled.
2024-06-05 13:35:54: └── Extended authentication not enabled.
2024-06-05 13:35:54: Opening ipv4 listen socket on port 1883.
2024-06-05 13:35:54: Opening ipv6 listen socket on port 1883.
2024-06-05 13:35:54: Opening websockets listen socket on port 1884.
2024-06-05 13:35:54: mosquitto version 2.0.18 running
2024-06-05 13:35:54: New connection from 127.0.0.1:36350 on port 1883.
2024-06-05 13:35:54: Client <unknown> disconnected due to protocol error.
2024-06-05 13:35:55: New connection from 172.30.32.1:59554 on port 1883.
2024-06-05 13:35:55: New client connected from 172.30.32.1:59554 as mqtt-explorer-90f5a389 (p2, c1, k60, u'staszek').
[13:35:57] INFO: Successfully send discovery information to Home Assistant.
[13:35:58] INFO: Successfully send service information to the Supervisor.
2024-06-05 13:35:58: New connection from 192.168.1.119:46346 on port 1883.
2024-06-05 13:35:58: New client connected from 192.168.1.119:46346 as nodered_4f7918d4bf73aeb5 (p1, c1, k60, u'staszek').
s6-rc: info: service legacy-services: stopping
[11:36:03] INFO: Service restart after closing
2024-06-05 13:36:03: mosquitto version 2.0.18 terminating
2024-06-05 13:36:03: Saving in-memory database to /data//mosquitto.db.
[11:36:03] INFO: Service restart after closing
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
cont-init: info: running /etc/cont-init.d/mosquitto.sh
[13:36:10] INFO: Setting up user staszek
[13:36:11] INFO: SSL is not enabled
cont-init: info: /etc/cont-init.d/mosquitto.sh exited 0
cont-init: info: running /etc/cont-init.d/nginx.sh
cont-init: info: /etc/cont-init.d/nginx.sh exited 0
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun mosquitto (no readiness notification)
services-up: info: copying legacy longrun nginx (no readiness notification)
s6-rc: info: service legacy-services successfully started
[13:36:13] INFO: Starting NGINX for authentication handling...
[13:36:14] INFO: Starting mosquitto MQTT broker...
2024-06-05 13:36:14: Warning: Mosquitto should not be run as root/administrator.
2024-06-05 13:36:14: mosquitto version 2.0.18 starting
2024-06-05 13:36:14: Config loaded from /etc/mosquitto/mosquitto.conf.
2024-06-05 13:36:14: Loading plugin: /usr/share/mosquitto/go-auth.so
2024-06-05 13:36:14: ├── Username/password checking enabled.
2024-06-05 13:36:14: ├── TLS-PSK checking enabled.
2024-06-05 13:36:14: └── Extended authentication not enabled.
2024-06-05 13:36:14: Opening ipv4 listen socket on port 1883.
2024-06-05 13:36:14: Opening ipv6 listen socket on port 1883.
2024-06-05 13:36:14: Opening websockets listen socket on port 1884.
2024-06-05 13:36:14: mosquitto version 2.0.18 running
2024-06-05 13:36:14: New connection from 127.0.0.1:34418 on port 1883.
2024-06-05 13:36:14: Client <unknown> disconnected due to protocol error.
2024-06-05 13:36:15: New connection from 172.30.32.1:59874 on port 1883.
2024-06-05 13:36:15: New client connected from 172.30.32.1:59874 as mqtt-explorer-90f5a389 (p2, c1, k60, u'staszek').
[13:36:16] INFO: Successfully send discovery information to Home Assistant.
[13:36:17] INFO: Successfully send service information to the Supervisor.
2024-06-05 13:36:18: New connection from 192.168.1.119:44068 on port 1883.
2024-06-05 13:36:18: New client connected from 192.168.1.119:44068 as nodered_4f7918d4bf73aeb5 (p1, c1, k60, u'staszek').
2024-06-05 13:36:23: New connection from 172.30.32.1:56727 on port 1883.
2024-06-05 13:36:23: New client connected from 172.30.32.1:56727 as 6Z8geEy9f0F7i7LZ142bls (p2, c1, k60, u'staszek').
2024-06-05 13:36:34: New connection from 172.30.32.1:42023 on port 1883.
2024-06-05 13:36:34: New client connected from 172.30.32.1:42023 as 0QHsz5g5SXyDuqD1OZ0Q4z (p2, c1, k60, u'staszek').
2024-06-05 13:36:34: Client 0QHsz5g5SXyDuqD1OZ0Q4z disconnected.
2024-06-05 13:36:42: New connection from 172.30.32.1:38669 on port 1883.
2024-06-05 13:36:42: New client connected from 172.30.32.1:38669 as 55VweVEd471fWX83R2Qswy (p2, c1, k60, u'staszek').
2024-06-05 13:38:13: Client 6Z8geEy9f0F7i7LZ142bls has exceeded timeout, disconnecting.
2024-06-05 14:06:14: Saving in-memory database to /data//mosquitto.db.
2024-06-05 14:36:15: Saving in-memory database to /data//mosquitto.db.
2024-06-05 14:40:35: New connection from 172.30.32.1:48809 on port 1883.
2024-06-05 14:40:35: New client connected from 172.30.32.1:48809 as 4e5XyFe9GUMHY06ViX69Ix (p2, c1, k60, u'staszek').
2024-06-05 14:40:36: Client 4e5XyFe9GUMHY06ViX69Ix disconnected.
2024-06-05 14:56:24: Client 55VweVEd471fWX83R2Qswy closed its connection.
2024-06-05 14:56:41: New connection from 172.30.32.1:40163 on port 1883.
2024-06-05 14:56:41: New client connected from 172.30.32.1:40163 as 02IO1njmiYyjckPFsMKEgN (p2, c1, k60, u'staszek').
2024-06-05 15:06:16: Saving in-memory database to /data//mosquitto.db.
2024-06-05 15:36:17: Saving in-memory database to /data//mosquitto.db.
2024-06-05 15:40:01: Client nodered_4f7918d4bf73aeb5 disconnected.
2024-06-05 15:40:01: New connection from 192.168.1.119:40280 on port 1883.
2024-06-05 15:40:01: New client connected from 192.168.1.119:40280 as nodered_b2840be9ba911d2b (p1, c1, k60, u'staszek').
2024-06-05 15:40:33: Client nodered_b2840be9ba911d2b disconnected.
2024-06-05 15:40:33: New connection from 192.168.1.119:46792 on port 1883.
2024-06-05 15:40:33: New client connected from 192.168.1.119:46792 as nodered_f460909bc0e7394b (p1, c1, k60, u'staszek').
2024-06-05 16:06:18: Saving in-memory database to /data//mosquitto.db.
2024-06-05 16:36:19: Saving in-memory database to /data//mosquitto.db.
2024-06-05 17:06:20: Saving in-memory database to /data//mosquitto.db.
2024-06-05 17:36:21: Saving in-memory database to /data//mosquitto.db.
2024-06-05 18:06:22: Saving in-memory database to /data//mosquitto.db.
2024-06-05 18:36:23: Saving in-memory database to /data//mosquitto.db.
2024-06-05 19:06:24: Saving in-memory database to /data//mosquitto.db.
Mój NodeRed wygląda tak - npv/values pokazuje połączenie
[{"id":"4048fc1d9499fbe0","type":"tab","label":"Flow 1","disabled":false,"info":"","env":[]},{"id":"aec965478a8c4230","type":"http request","z":"4048fc1d9499fbe0","name":"get Inverter details","method":"use","ret":"obj","paytoqs":"ignore","url":"","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":670,"y":260,"wires":[["09320119dc0ffcf2","b56a3d2709e7376e"]]},{"id":"09320119dc0ffcf2","type":"debug","z":"4048fc1d9499fbe0","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":890,"y":280,"wires":[]},{"id":"b56a3d2709e7376e","type":"function","z":"4048fc1d9499fbe0","name":"","func":"\nif (msg.payload.success == !false)\n{\nmsg.payload = {\n \"Status\" : (msg.payload.dataList[51].value),\n \"Current_power\" : Number(msg.payload.dataList[29].value),\n \"PV1_DC_voltage\" : Number(msg.payload.dataList[12].value),\n \"PV2_DC_voltage\" : Number(msg.payload.dataList[13].value),\n \"PV1_DC_current\" : Number(msg.payload.dataList[14].value),\n \"PV2_DC_current\" : Number(msg.payload.dataList[15].value),\n \"Total_production\" : Number(msg.payload.dataList[31].value),\n \"Daily_production\" : Number(msg.payload.dataList[32].value),\n //\"Monthly_Production\" : Number(msg.payload.result.deviceWapper.dataJSON['1be']),\n \"PV1_resistance\" : Number(msg.payload.dataList[43].value),\n //\"PV2_resistance\" : Number(msg.payload.result.deviceWapper.dataJSON['1fr']),\n \"Temperature\" : Number(msg.payload.dataList[49].value),\n \"AC_Frequency\" : Number(msg.payload.dataList[25].value),\n \"AC_voltage_1\" : Number(msg.payload.dataList[19].value),\n \"AC_voltage_2\" : Number(msg.payload.dataList[20].value),\n \"AC_voltage_3\" : Number(msg.payload.dataList[21].value),\n \"AC_current_1\" : Number(msg.payload.dataList[22].value),\n \"AC_current_2\" : Number(msg.payload.dataList[23].value),\n \"AC_current_3\" : Number(msg.payload.dataList[24].value),\n };\n}\nelse\n{\n msg.payload = {\n \"Status\" : \"Off Line\"\n };\n}\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":730,"y":340,"wires":[["1272698d442523bc","5818854079eedb12"]]},{"id":"5818854079eedb12","type":"mqtt out","z":"4048fc1d9499fbe0","name":"","topic":"npv/values","qos":"0","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"d8e9f488.943b28","x":910,"y":340,"wires":[]},{"id":"1272698d442523bc","type":"debug","z":"4048fc1d9499fbe0","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":910,"y":420,"wires":[]},{"id":"3c88f0e4dbefa1ed","type":"inject","z":"4048fc1d9499fbe0","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":140,"y":80,"wires":[["1221e2bd7c64c57b"]]},{"id":"71868977.626ca8","type":"change","z":"4048fc1d9499fbe0","name":"","rules":[{"t":"set","p":"url","pt":"msg","to":" https://globalapi.solarmanpv.com/device/v1.0/currentData?appId=xxxxxxxxxxxxxxxxxxxxxxxxx&language=en&='","tot":"str"},{"t":"set","p":"payload","pt":"msg","to":"{\"deviceSn\":\"xxxxxxxxxxxxxx\"}","tot":"json"},{"t":"set","p":"method","pt":"msg","to":"POST","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":460,"y":240,"wires":[["aec965478a8c4230"]]},{"id":"dd21dc830a762432","type":"http request","z":"4048fc1d9499fbe0","name":"get login details","method":"use","ret":"obj","paytoqs":"ignore","url":"","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":260,"y":160,"wires":[["27204297e567d676","0b320a493c5c6065"]]},{"id":"f893ced7423f8535","type":"debug","z":"4048fc1d9499fbe0","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":850,"y":200,"wires":[]},{"id":"1221e2bd7c64c57b","type":"change","z":"4048fc1d9499fbe0","name":"","rules":[{"t":"set","p":"url","pt":"msg","to":" https://globalapi.solarmanpv.com/device/v1.0/token?appId=3023092638521694&language=en&='","tot":"str"},{"t":"set","p":"payload","pt":"msg","to":"{\"appSecret\":\"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\"email\":\"xxxxxxxx@xxxxxxxxxxxxx.com.pl\",\"password\":\"3b3fce624092671349d4c842f5c5a0b16102e89e488aeb4a2686985194f6f486\"}","tot":"json"},{"t":"set","p":"headers","pt":"msg","to":"{\"content-type\":\"application/json\"}","tot":"json"},{"t":"set","p":"method","pt":"msg","to":"POST","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":300,"y":100,"wires":[["dd21dc830a762432"]]},{"id":"27204297e567d676","type":"function","z":"4048fc1d9499fbe0","name":"","func":"\n\nmsg.headers = {\"Authorization\" : msg.payload.token_type + ' ' + msg.payload.access_token, \n\"content-type\": \"application/json\" \n};\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":220,"y":220,"wires":[["f893ced7423f8535","71868977.626ca8"]]},{"id":"0b320a493c5c6065","type":"debug","z":"4048fc1d9499fbe0","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":510,"y":160,"wires":[]},{"id":"d8e9f488.943b28","type":"mqtt-broker","name":"","broker":"192.168.1.119","port":"1883","clientid":"","autoConnect":true,"usetls":false,"compatmode":false,"protocolVersion":"3","keepalive":"60","cleansession":true,"autoUnsubscribe":true,"birthTopic":"","birthQos":"0","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willPayload":"","willMsg":{},"userProps":"","sessionExpiry":""}]
Nie wiem dlaczego w
Mam “brak urządzeń lub encji”
Chyba że znajdzie się dobra dusza i opisze proces dodawania falownika Afore do HA aby działało to poprawnie.