Search found 39 matches

by mgerhard74
Saturday 01 February 2025 19:43
Forum: Bugs and Problems
Topic: DzVents Script reports sometimes a wrong value
Replies: 19
Views: 734

Re: DzVents Script reports sometimes a wrong value

Can anyone tell me why a dzVents script does not run every minute (I can see it in the log) if this is entered in the script?

Code: Select all

timer = { 'every 1 minutes' }
by mgerhard74
Wednesday 29 January 2025 16:41
Forum: Bugs and Problems
Topic: DzVents Script reports sometimes a wrong value
Replies: 19
Views: 734

Re: DzVents Script reports sometimes a wrong value

Thank you waltervl , i will try this:
waltervl wrote: Wednesday 29 January 2025 9:57 You could try to leave out the 1 minute timer trigger.
Then when the Domoticz device 'Batterie_SOC' is updated (by another script or plugin), it will immediately be sent to the display. I see no need to send the data to the display every minute....
by mgerhard74
Wednesday 29 January 2025 7:09
Forum: Bugs and Problems
Topic: DzVents Script reports sometimes a wrong value
Replies: 19
Views: 734

Re: DzVents Script reports sometimes a wrong value

General/Percentage
by mgerhard74
Tuesday 28 January 2025 19:00
Forum: Bugs and Problems
Topic: DzVents Script reports sometimes a wrong value
Replies: 19
Views: 734

Re: DzVents Script reports sometimes a wrong value

Thank you for your tips, but the problem still exists :-( current script is: return { on = { devices = {'Batterie_SOC'}, timer = { 'every 1 minutes' } }, execute = function(domoticz, device) local BAT = domoticz.devices('Batterie_SOC').percentage; print ("Batt SOC " .. tostring(BAT) .. '%') domoticz ...
by mgerhard74
Sunday 26 January 2025 10:43
Forum: Bugs and Problems
Topic: DzVents Script reports sometimes a wrong value
Replies: 19
Views: 734

Re: DzVents Script reports sometimes a wrong value

Thank you, will try "local BAT=..."
This is definitly no timing issue: Batterie_SOC is 10% for hours, because this is the end-SOC of discharging. The script sends almost every time 10% to the pixel display, and then once for example 62%.
by mgerhard74
Sunday 26 January 2025 8:08
Forum: Bugs and Problems
Topic: DzVents Script reports sometimes a wrong value
Replies: 19
Views: 734

DzVents Script reports sometimes a wrong value

Hello, I have a problem with a dzVents script. Version: 2024.7 Build 16355 Platform: Raspi 3B, Raspbian 11 (bullseye) run on a SSD In about 3% of all script runs, wrong values will sent to my Ulanzi TC001 pixel display. Other values (temperatures, PV power, grid power,...) are correct, only the ...
by mgerhard74
Sunday 15 September 2024 14:28
Forum: Show your projects
Topic: Energy Dashboard (Build in)
Replies: 287
Views: 44622

Re: Energy Dashboard (Build in)

Thank you for the energy-dashboard. Looks great (for start). Costs are always "0,00€"... maybe a configuration failure....
I displayed grid smartmeter, PV-production, PV battery data.
by mgerhard74
Friday 10 March 2023 13:04
Forum: LUA
Topic: Rest API JSON POST script needed
Replies: 17
Views: 3195

Re: Rest API JSON POST script needed

Add you script in Domoticz in Setup / more options / events. (+) Lua
Paste your script here. Save.
View Logs for Errors. The script update the sensor with the id of the script.
by mgerhard74
Wednesday 08 March 2023 18:39
Forum: LUA
Topic: Rest API JSON POST script needed
Replies: 17
Views: 3195

Re: Rest API JSON POST script needed

Hello, i dont understand your question. The only device you must create is with one http call - i think you have the device created. Your Ahoy dtu is running? In the same IP area of domoticz? In Ahoy dtu you add at least one Hoymiles inverter, the first has number 0. Do you have errors in domoticz ...
by mgerhard74
Tuesday 07 March 2023 19:28
Forum: LUA
Topic: Rest API JSON POST script needed
Replies: 17
Views: 3195

Re: Rest API JSON POST script needed

You must change a few things in the script
viewtopic.php?t=39976
to "fit" your environment:
Change 10.0.0.156 to the IP of your Ahoy dtu
Change in the line with "commandArray[1]=..." the "141" to the id of your HOYMILES sensor.
by mgerhard74
Tuesday 07 March 2023 18:20
Forum: LUA
Topic: Rest API JSON POST script needed
Replies: 17
Views: 3195

Re: Rest API JSON POST script needed

No, the first inverter added to Ahoy dtu has number "0" - in this case do no edits in the script. No extra hardware needed. With that url in your brower you add a device "Hoymiles": http://[ip of domoticz]:8080/json.htm?type=createvirtualsensor&idx=4&sensorname=HOYMILES&sensortype=248 Yield of day ...
by mgerhard74
Wednesday 22 February 2023 18:05
Forum: LUA
Topic: Rest API JSON POST script needed
Replies: 17
Views: 3195

Re: Rest API JSON POST script needed

niekniek89 wrote: Tuesday 21 February 2023 19:40 Hello,

sorry it hasn't worked yet.
I'm also still working on getting the data into domoticz.
I still can't do this either.
Please look at viewtopic.php?t=39976
lg
Gerhard
by mgerhard74
Wednesday 22 February 2023 18:04
Forum: Show your projects
Topic: Ahoy Dtu and Hoymiles HM-xxx integration
Replies: 19
Views: 9177

Ahoy Dtu and Hoymiles HM-xxx integration

Hello, i build a cheap Ahoy Dtu (13€) which is able to communicate with all Hoymiles HM-xxx PV microinverters. Ahoy allows to interact with Mqtt and Rest Api standards. There is a documentation at the Ahoy Dtu project page online. I made a LUA script to read the PV output power: (This is only a demo ...
by mgerhard74
Tuesday 21 February 2023 19:34
Forum: LUA
Topic: Rest API JSON POST script needed
Replies: 17
Views: 3195

Re: Rest API JSON POST script needed

Hi, i tryed a LUA, but i have a error in xml parsing. Create a new sensor: http://[DOMOTICZ-IP]:8080/json.htm?type=createvirtualsensor&idx=4&sensorname=Hoymiles&sensortype=248 Put in the DeviceIDx (here: 141) in the Lua code: JSON = (loadfile "/home/pi/domoticz/scripts/lua/JSON.lua")() commandArray ...
by mgerhard74
Saturday 18 February 2023 17:45
Forum: Suggestions
Topic: aWattar integration
Replies: 17
Views: 2829

Re: aWattar integration

The problem is that triggerItem.isHTTPResponse is always "false". As i checked with Firefox the https://api.awattar.at/v1/marketdata returns a content-type application/json; charset=utf-8. The Api is described at https://www.awattar.at/services/api Domoticz V2023.1 on a Raspi 3B Raspbian 10 Buster ...
by mgerhard74
Thursday 16 February 2023 21:33
Forum: Suggestions
Topic: aWattar integration
Replies: 17
Views: 2829

no HTTPResponse?

My Awattar script normally runs once per day (14:03), but in most cases, it did not correct finish. Log: Status: dzVents: Info: ------ Start internal script: aWattar:, trigger: "every minute" Status: dzVents: Info: ------ Finished aWattar return { on = {timer = { 'at 14:03'}, httpResponses = { 'WATT ...
by mgerhard74
Thursday 16 February 2023 19:20
Forum: LUA
Topic: Rest API JSON POST script needed
Replies: 17
Views: 3195

Re: Rest API JSON POST script needed

OK, also dzvents scipts are welcome.
by mgerhard74
Thursday 16 February 2023 17:39
Forum: LUA
Topic: Rest API JSON POST script needed
Replies: 17
Views: 3195

Rest API JSON POST script needed

I want to control a Hoymiles microinverter (HM-800) with a Lua script, because it runs more often than a dzVents script. A special hardware Ahoy DTU in between domoticz and the microinverter. I want to send a Json string to a specific url. As in https://github.com/lumapu/ahoy/blob/main/User_Manual ...