Created At
Sep 01, 2020
Created At
Sep 01, 2020
Last Update
Jan 13, 2023
Platforms
HC 3 Lite, Z-box Hub, Yubii Home Pro, Yubii Home, Venture WISE, HC 3
Views
5860
Download
550
Setup:
1. change dataLoggerSN variable to your data logger serial number (this can be found in solarman application)
2. In case of connection problems change inverterIp variable to your sofar inverter IP in your local wifi network (it should work in auto mode but if not send me a message)
3. If you still have some problems pleas enable debugs - change debug variable value to true and send me logs from HC user interface with description.
v1.3
Działa tak jak powinna. Dziękuję
--TODO Util function QuickApp:getHc3Ip() local hc3Ip = nil local settings = api.get("/proxy?url=http://localhost:11112/api/settings/network") --it should be settings = api.get("/api/settings/network/interfaces") - but it does not work - 50x response if settings.networkConfig.eth0.enabled then hc3Ip = settings.networkConfig.eth0.ipConfig.ip elseif settings.networkConfig.wlan0.enabled then hc3Ip = settings.networkConfig.ipConfig.wlan0.ip -- main.lua:173 hc3Ip = settings.networkConfig.ipConfig.wlan1.ip end return hc3Ip end [30.08.2021] [12:06:00] [ERROR] [QUICKAPP312]: QuickApp crashed [30.08.2021] [12:06:00] [ERROR] [QUICKAPP312]: main.lua:173: attempt to index a nil value (field 'ipConfig')
Problem rozwiązany. W przypadku podłączenia po wifi HC3 powinno być: hc3Ip = settings.networkConfig.wlan0.ipConfig.ip lub hc3Ip = settings.networkConfig.wlan1.ipConfig.ip Adres ip Sofara musiałem wpisać na sztywno w zmiennej. Wszystko działa.
Czy może mi ktoś napisać jak pobrać dane do wyświetlenia z WU i jakie parametry są dostępne ? test1 = ???? fibaro:call(thisdevice,'setProperty','ui.Label1.value','test1');
Works great, Marcin