Search found 50 matches

by Copitano
Wednesday 05 March 2025 17:38
Forum: Python
Topic: Python plugin: Modbus RTU / ASCII / TCP/IP
Replies: 401
Views: 144586

Re: Python plugin: Modbus RTU / ASCII / TCP/IP

Hi All, I rewrote the script of the Read plugin and it reads the modbus RTU and modbus TCP/IP registers correctly. I have no way to check modbus RTU over IP. Just replace the plugin.py file in the location .../domoticz/plugins/modbus-read and restart Domoticz I will work on the plugin for writing ...
by Copitano
Sunday 29 September 2024 18:11
Forum: Python
Topic: Python plugin: Modbus RTU / ASCII / TCP/IP
Replies: 401
Views: 144586

Re: Python plugin: Modbus RTU / ASCII / TCP/IP

Hi All, I rewrote the script of the Read plugin and it reads the modbus RTU and modbus TCP/IP registers correctly. Hi Rosomak, I solved the problem of not creating devices/widgets by a clean install of the operating system and python 3.9.6 Below the result. Looks as if its working for me aswell :D ...
by Copitano
Saturday 28 September 2024 13:27
Forum: Python
Topic: Python plugin: Modbus RTU / ASCII / TCP/IP
Replies: 401
Views: 144586

Re: Python plugin: Modbus RTU / ASCII / TCP/IP

Hi All, I rewrote the script of the Read plugin and it reads the modbus RTU and modbus TCP/IP registers correctly. I have no way to check modbus RTU over IP. Just replace the plugin.py file in the location .../domoticz/plugins/modbus-read and restart Domoticz I will work on the plugin for writing ...
by Copitano
Wednesday 25 September 2024 0:40
Forum: Python
Topic: Python plugin: Modbus RTU / ASCII / TCP/IP
Replies: 401
Views: 144586

Re: Python plugin: Modbus RTU / ASCII / TCP/IP

As I said, I tested today with the new plugin.py version 2024 beta. Unfortunately, I now have the problem back that I also mentioned above. No widget is created. I have not been able to change that yet as with the previous version because those lines in the script are commented out.
by Copitano
Tuesday 24 September 2024 1:24
Forum: Python
Topic: Python plugin: Modbus RTU / ASCII / TCP/IP
Replies: 401
Views: 144586

Re: Python plugin: Modbus RTU / ASCII / TCP/IP

Hi All, I rewrote the script of the Read plugin and it reads the modbus RTU and modbus TCP/IP registers correctly. I have no way to check modbus RTU over IP. Just replace the plugin.py file in the location .../domoticz/plugins/modbus-read and restart Domoticz I will work on the plugin for writing ...
by Copitano
Monday 26 August 2024 16:37
Forum: Python
Topic: Python plugin: Modbus RTU / ASCII / TCP/IP
Replies: 401
Views: 144586

Re: Python plugin: Modbus RTU / ASCII / TCP/IP

My version is still working fine on 2024.4 https://github.com/simat-git/SDM120-Modbus Easy to adapt to any modbus meter if you know the register numbers. I have looked at your version, but I can't figure out how to adapt it for more general use. So not only specifically for your meter, but also for ...
by Copitano
Monday 26 August 2024 16:34
Forum: Python
Topic: Python plugin: Modbus RTU / ASCII / TCP/IP
Replies: 401
Views: 144586

Re: Python plugin: Modbus RTU / ASCII / TCP/IP

You can try to downgrade Python but that is not an easy process. The Docker version of Domoticz runs with python 3.8 I believe. Perhaps it that an option? On second thought, that doesn't seem to be the way to go. I think that will get in the way of every further update. But I don't have another ...
by Copitano
Thursday 06 June 2024 18:25
Forum: Python
Topic: Python plugin: Modbus RTU / ASCII / TCP/IP
Replies: 401
Views: 144586

Re: Python plugin: Modbus RTU / ASCII / TCP/IP

@simat I just saw your response now. I had given up for the time being because my knowledge of Phyton does not extend that far. But I'll definitely see if I can get things working again with your solution. Although it would be very nice if a next version of Domoticz could include a native version ...
by Copitano
Monday 25 March 2024 21:19
Forum: dzVents
Topic: dzVents error parsing json to LUA table
Replies: 5
Views: 449

Re: dzVents error parsing json to LUA table

I suggest you put some extra logging statements into your script to see exactly where the error occurs. As far as I can see the json is correctly formatted. Not sure if it works or not, but I would not use "if item.json ~= nil". I would use "if item.isJSON". I assume the extra space in "item.json ...
by Copitano
Sunday 24 March 2024 22:39
Forum: dzVents
Topic: dzVents error parsing json to LUA table
Replies: 5
Views: 449

dzVents error parsing json to LUA table

Description: Raspbian GNU/Linux 10 (buster) Release: 10 Codename: buster Dz Version: 2022.2 Build Hash: eea9db734 Compile Date: 2022-11-05 13:05:35 dzVents Version: 3.1.8 Python Version: 3.7.3 (default, Jun 29 2023, 18:03:57) [GCC 8.3.0] After Enphase found it necessary to place an unsolicited ...
by Copitano
Friday 22 March 2024 0:47
Forum: Python
Topic: Python plugin: Modbus RTU / ASCII / TCP/IP
Replies: 401
Views: 144586

Re: Python plugin: Modbus RTU / ASCII / TCP/IP

Same problem here. Found no solution yet. Has anybody seen @DomoticX around on the forum. Mybe he can provide a solution? USER STATISTICS DomoticX Joined:Sunday 07 January 2018 21:19 Last active:Sunday 30 August 2020 21:26 So do not expect a solution from him/her.... Did you check the wiki on this ...
by Copitano
Thursday 21 March 2024 20:31
Forum: Python
Topic: Python plugin: Modbus RTU / ASCII / TCP/IP
Replies: 401
Views: 144586

Re: Python plugin: Modbus RTU / ASCII / TCP/IP

Tested the Python plugin: Modbus RTU / ASCII / TCP/IP with de edited plugin.py scripts. Unfortunately I cheered too early. Although the devices are now displayed properly, no data enters the devices after connecting the CH341-UART converter. As far as I can tell, I don't see anything crazy with ...
by Copitano
Wednesday 20 March 2024 16:22
Forum: Python
Topic: Python plugin: Modbus RTU / ASCII / TCP/IP
Replies: 401
Views: 144586

Re: Python plugin: Modbus RTU / ASCII / TCP/IP

FlyingDomotic wrote: Thursday 07 March 2024 23:36 It seems that pymodbus changed.

Instead of pymodbus.client.sync, try pymodbus.client.serial in the plugin.
See above :oops: :lol:
by Copitano
Wednesday 20 March 2024 16:20
Forum: Python
Topic: Python plugin: Modbus RTU / ASCII / TCP/IP
Replies: 401
Views: 144586

Re: Python plugin: Modbus RTU / ASCII / TCP/IP

by FlyingDomotic » Friday 08 March 2024 0:36 It seems that pymodbus changed. Instead of pymodbus.client.sync, try pymodbus.client.serial in the plugin. Tried your suggestion. At first I got another error, but after also replacing 'pymodbus.client.sync' in the TCP part bij 'pymodbus.client.tcp' at ...
by Copitano
Tuesday 19 March 2024 13:37
Forum: Utility
Topic: enphase envoy with (HTTP) interface
Replies: 159
Views: 151063

Re: enphase envoy with (HTTP) interface

@ Xavier82 Yes I tried all of that, except with the right username. Using the one of my installer account instead of my user account worked. :oops: Thank you for your question. It made mi think it over again and think of my installer account. Now I'm curious how long the token will continue to work ...
by Copitano
Tuesday 19 March 2024 0:23
Forum: Utility
Topic: enphase envoy with (HTTP) interface
Replies: 159
Views: 151063

Re: enphase envoy with (HTTP) interface

Until last Thursday I was working with a DzVents script to read the data from my Envoy into Domoticz. That worked fine from 2020 with firmware version 5.0.55 on the Envoy. Last Thursday evening an update took place (unsolicited) to firmware version 7.0.88. From that moment on, nothing enters ...
by Copitano
Thursday 07 March 2024 15:03
Forum: Python
Topic: Python plugin: Modbus RTU / ASCII / TCP/IP
Replies: 401
Views: 144586

Re: Python plugin: Modbus RTU / ASCII / TCP/IP

Same problem here. Found no solution yet. Has anybody seen @DomoticX around on the forum. Mybe he can provide a solution?
by Copitano
Monday 27 March 2023 23:21
Forum: dzVents
Topic: Domoticz chart2csv
Replies: 10
Views: 805

Re: Domoticz chart2csv

Hi, I'm not exactly sure where you're looking for but maybe this will help you. Every hour I write my power and gas consumption to a csv-file on my Synology NAS. I have an Excel spreadsheet that imports the csv-file and creates the graphs. return { on = { timer = { 'every hour', } }, execute ...
by Copitano
Saturday 25 March 2023 20:11
Forum: dzVents
Topic: Domoticz chart2csv
Replies: 10
Views: 805

Re: Domoticz chart2csv

@waltervl @ gizmocuz In the meantime i managed to modify waaren's script https://www.domoticz.com/forum/viewtopic.php?p=259542#p259542 to my needs. Here is the full modified script: --[[ -- sqliteDump.lua Dumps daily data as csv file requires sqlite3 install command on linux: sudo apt install ...
by Copitano
Saturday 25 March 2023 1:02
Forum: dzVents
Topic: Domoticz chart2csv
Replies: 10
Views: 805

Re: Domoticz chart2csv

Then I'm presumably looking for this?