Does the log file state something about that the updated file was read ?
Does it still show a message about an entry has to be added to the whitelist ?
If I rename to .whitelis and rename back to .whitelist it’ll show:
2023-04-15 16:01:53.277 [WARN ] [c.internal.ExecWhitelistWatchService] - Cannot read whitelist file, exec binding commands won't be processed: G:\openHAB\conf\misc\exec.whitelist
2023-04-15 16:02:01.217 [WARN ] [ng.exec.internal.handler.ExecHandler] - Tried to execute 'G:\openHAB\conf\scripts\solar_readings_curl.bat', but it is not contained in whitelist.
It doesn’t show in the logs ‘loading exec.whitelist’ like it would when adding a .things file.
Couldn't transform response because transformationService of type 'REGEX' is unavailable
and events.log is showing:
G:\openHAB\userdata>curl -f -k -H "Accept: application/json" -H "Authorization: Bearer eyJra***" -X GET https://192.168.1.***/ivp/meters/readings
'curl' is not recognized as an internal or external command,
operable program or batch file.
'curl' is not recognized as an internal or external command,
operable program or batch file.
Any reason you are not using the enphase binding - you can get all this information much easier than using http request locally - i started the same way and realized it is much easier with the binding. The only tricky part is finding the admin password and there is a lot of information int he web on how to reverse engineer the password from the serial number. You can get inverter status/power/everything is there, let me know if you need any help
If you want to use http request you can use the http binidng with a JSON definition like this
Thing http:url:EnvoyProd "Envoy Production" [
baseURL="http://192.168.***.22/production.json",
refresh=30] {
Channels:
Type number : Prod "Production" [ stateTransformation="JSONPATH:$..production[1].wNow" ]
Type number : Use "Consumption 0" [ stateTransformation="JSONPATH:$..consumption[0].wNow" ]
Type number : Net "Consumption 1" [ stateTransformation="JSONPATH:$..consumption[1].wNow" ]
}
I only use it to tract production because data in binding updates every five minutes but production is close to real time.
@LORDUDE
What firmware version do you have on your Envoy? Mine has V7 which has changed from V5 with how you access the local API data. To the best of my knowledge you need to get a token and request the data using CURL commands.
The current version of the Enphase binding doesn’t work with V7. Its being looked at but the fix hasn’t been pushed to the stable build yet.
I got an email yesterday about from enphase about software updates, I hope it does not break my setup. You just ruined my day Give the http binding with the json transform a try - it should work.