Python Plugin: ebusd

Python and python framework

Moderator: leecollings

Barberousse
Posts: 139
Joined: Wednesday 02 December 2015 21:47
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: France
Contact:

Re: Python Plugin: ebusd

Post by Barberousse »

Gertschi wrote: Wednesday 23 January 2019 22:55 What am I doing wrong?
It could be a regression, what version of the plugin are you using? Could you post the content of http://IPOfEbusD:8889/data?def ?
Barberousse
Posts: 139
Joined: Wednesday 02 December 2015 21:47
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: France
Contact:

Re: Python Plugin: ebusd

Post by Barberousse »

Barberousse wrote: Thursday 24 January 2019 10:30
Gertschi wrote: Wednesday 23 January 2019 22:55 What am I doing wrong?
It could be a regression, what version of the plugin are you using? Could you post the content of http://IPOfEbusD:8889/data?def ?
I think I see where the problem is, I can't access my github account right now, but you can replace

Code: Select all

                            if bWritable:
                                #sTypeName = "Selector Switch"
                                iMainType = 0xF4
				iSubtype = 0x3E
with

Code: Select all

                            if bWritable:
                                #sTypeName = "Selector Switch"
                                iSwitchtype = 18
                                iMainType = 0xF4
				iSubtype = 0x3E
in plugin.py, delete the device and restart Domoticz.
Gertschi
Posts: 15
Joined: Monday 07 January 2019 12:15
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: Austria
Contact:

Re: Python Plugin: ebusd

Post by Gertschi »

Hi,
thanks for your answer!

This is my Version of the ebus deamon:
"version": "3.3.v3.3-10-gfa434e5",

Thit is from http://IPOfEbusD:8889/data?def ?:
Content.txt
(238.36 KiB) Downloaded 82 times
So I got it to work now!!! I do the upgrade in the plugin.py as you said. Thanks a lot!!

It wasn´t as easy as you would think, because I used the PPM for the ebusd bridge, so I couldn´t find the plugin.py. Now I installed the plugin manually, with the result that I have to fill in 2 entries in the plugin. But it works. :shock:
Image
Attachments
plugin.JPG
plugin.JPG (48.78 KiB) Viewed 2312 times
Barberousse
Posts: 139
Joined: Wednesday 02 December 2015 21:47
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: France
Contact:

Re: Python Plugin: ebusd

Post by Barberousse »

Gertschi wrote: Thursday 24 January 2019 15:48 It wasn´t as easy as you would think, because I used the PPM for the ebusd bridge, so I couldn´t find the plugin.py. Now I installed the plugin manually, with the result that I have to fill in 2 entries in the plugin. But it works. :shock:
Image
You shouldn't have twice entries! Probably an interaction problem with PPM. I will integrate the correction in next version, in a few days.
Gertschi
Posts: 15
Joined: Monday 07 January 2019 12:15
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: Austria
Contact:

Re: Python Plugin: ebusd

Post by Gertschi »

Thank you for this great work and for your help!!
Barberousse
Posts: 139
Joined: Wednesday 02 December 2015 21:47
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: France
Contact:

Re: Python Plugin: ebusd

Post by Barberousse »

Gertschi wrote: Thursday 24 January 2019 20:33 Thank you for this great work and for your help!!
I had some spare time this evening, the correction is integrated in version 1.3.7 of the plugin.
Gertschi
Posts: 15
Joined: Monday 07 January 2019 12:15
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: Austria
Contact:

Re: Python Plugin: ebusd

Post by Gertschi »

Barberousse wrote: Thursday 24 January 2019 21:03
Gertschi wrote: Thursday 24 January 2019 20:33 Thank you for this great work and for your help!!
I had some spare time this evening, the correction is integrated in version 1.3.7 of the plugin.
Thank you for this!!! I updated now to the new version 1.3.7.
But with no success: The 2 inputfields was still there.

Now I deleted the PP-MANAGER plugin and the ebusd plugin installed from the PP-M plugin. Then I also deleted the DomoticzEbusd plugin, and restarted Domoticz.

Code: Select all

cd domoticz/plugins
sudo rm -r PP-MANAGER
sudo rm -r ebusd
sudo systemctl restart domoticz.service
Then I installed like your instruction on https://github.com/guillaumezin/Domotic ... installing.

I dont installed the PP-MANAGER again , because I only used it to test some plugins.

Now it works pretty good for me!
hanskenpensken
Posts: 5
Joined: Saturday 02 February 2019 9:18
Target OS: -
Domoticz version:
Contact:

Re: Python Plugin: ebusd

Post by hanskenpensken »

Goodmorning all,
First and foremost. Congratz with this plugin.

I have a question. As the plugin seems to be unable to read certain values. Especially the z1roomtemp would come in handy :)

Code: Select all

2019-02-02 08:18:03.616 (Heating) Device Heating - 700:z1nighttemp - tempv unit 27 and deviceid 700:z1nighttemp detected: night setpoint for zone 1
2019-02-02 08:18:03.617 (Heating) Device Heating - bai:waterpressure - press unit 28 and deviceid bai:waterpressure detected: Wasserdruck
2019-02-02 08:18:03.597 Error: (Heating) Device 700:hwcflowtemp is declared as ignore type in ebusd configuration
2019-02-02 08:18:03.598 Error: (Heating) Device 700:hcstoragetempbottom is declared as ignore type in ebusd configuration
2019-02-02 08:18:03.598 Error: (Heating) Device 700:hcstoragetemptop is declared as ignore type in ebusd configuration
2019-02-02 08:18:03.599 Error: (Heating) Device 700:hc1actualflowtempdesired is declared as ignore type in ebusd configuration
2019-02-02 08:18:03.600 Error: (Heating) Device 700:displayedoutsidetemp is declared as ignore type in ebusd configuration
2019-02-02 08:18:03.601 Error: (Heating) Device 700:z1roomtemp is declared as ignore type in ebusd configuration
2019-02-02 08:18:03.601 Error: (Heating) Device 700:hc1flowtemp is declared as ignore type in ebusd configuration
2019-02-02 08:18:03.609 Error: (Heating) Device 700:systemflowtemp is declared as ignore type in ebusd configuration
2019-02-02 08:18:03.612 Error: (Heating) Device 700:waterpressure is declared as ignore type in ebusd configuration
What seems strange to me is that the http output of ebusd gives me (via http://192.168.0.1xx:8889/data/

Code: Select all

 "z1RoomTemp": {
    "name": "z1RoomTemp",
    "passive": false,
    "write": false,
    "lastup": 1549093848,
    "zz": 21,
    "fields": {
     "tempv": {"value": 19.1875}
    }
which is very similar to z1NightTemp in terms of fields, and that one IS getting read by the plugin

Code: Select all

"z1NightTemp": {
    "name": "z1NightTemp",
    "passive": false,
    "write": false,
    "lastup": 1549093958,
    "zz": 21,
    "fields": {
     "tempv": {"value": 17}
    }
Any ideas? :shock:
Barberousse
Posts: 139
Joined: Wednesday 02 December 2015 21:47
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: France
Contact:

Re: Python Plugin: ebusd

Post by Barberousse »

hanskenpensken
Posts: 5
Joined: Saturday 02 February 2019 9:18
Target OS: -
Domoticz version:
Contact:

Re: Python Plugin: ebusd

Post by hanskenpensken »

At first i didn't get a value for z1RoomTemp.
Which i found strange, so i put the bashcommand "ebusctl read z1RoomTemp" out, resulted in a " ERR: CRC Error."
However, then, i tried again, and got a useful result (18.8125)

So finally,

z1RoomTemp": {
"name": "z1RoomTemp",
"passive": false,
"write": false,
"lastup": 1549287748,
"zz": 21,
"id": [181, 36, 2, 0, 3, 0, 15, 0],
"fields": {
"tempv": {"value": 18.8125}
},
"fielddefs": [
{ "name": "", "slave": true, "type": "IGN", "isbits": false, "length": 4, "unit": "", "comment": ""},
{ "name": "tempv", "slave": true, "type": "EXP", "isbits": false, "length": 4, "unit": "°C", "comment": "aktuelle Raumtemperatur in Zone 1"}
]
},


"z1NightTemp": {
"name": "z1NightTemp",
"passive": false,
"write": false,
"lastup": 1549287371,
"zz": 21,
"id": [181, 36, 2, 0, 3, 0, 9, 0],
"fields": {
"tempv": {"value": 17}
},
"fielddefs": [
{ "name": "", "slave": true, "type": "IGN", "isbits": false, "length": 4, "unit": "", "comment": ""},
{ "name": "tempv", "slave": true, "type": "EXP", "isbits": false, "length": 4, "unit": "°C", "comment": "night setpoint for zone 1"}
]
},[/code]
Barberousse
Posts: 139
Joined: Wednesday 02 December 2015 21:47
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: France
Contact:

Re: Python Plugin: ebusd

Post by Barberousse »

You should specify 700:z1RoomTemp:tempv in plugin configuration, or 700:z1RoomTemp:1 to ignore field 0. I will try to not count useless fields for fields index in a future release, so 700:z1RoomTemp:1 will not work anymore (but 700:z1RoomTemp:0 or 700:z1RoomTemp will), 700:z1RoomTemp:tempv should work in any cases.
hanskenpensken
Posts: 5
Joined: Saturday 02 February 2019 9:18
Target OS: -
Domoticz version:
Contact:

Re: Python Plugin: ebusd

Post by hanskenpensken »

Hi,
Thank you for the specification!
Barberousse
Posts: 139
Joined: Wednesday 02 December 2015 21:47
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: France
Contact:

Re: Python Plugin: ebusd

Post by Barberousse »

What surprises me now is that your z1NightTemp works...
Barberousse
Posts: 139
Joined: Wednesday 02 December 2015 21:47
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: France
Contact:

Re: Python Plugin: ebusd

Post by Barberousse »

Do you have a z1NightTemp-w in your http://ipofebusd:8889/data?def&write output? It would explain the difference.
Barberousse
Posts: 139
Joined: Wednesday 02 December 2015 21:47
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: France
Contact:

Re: Python Plugin: ebusd

Post by Barberousse »

Version 1.3.8 should make configuration easier: IGN fielddefs (meaning useless fields) are ignored automatically for index counting and name searching, for instance with this:

Code: Select all

z1RoomTemp": {
"name": "z1RoomTemp",
"passive": false,
"write": false,
"lastup": 1549287748,
"zz": 21,
"id": [181, 36, 2, 0, 3, 0, 15, 0],
"fields": {
"tempv": {"value": 18.8125}
},
"fielddefs": [
{ "name": "", "slave": true, "type": "IGN", "isbits": false, "length": 4, "unit": "", "comment": ""},
{ "name": "tempv", "slave": true, "type": "EXP", "isbits": false, "length": 4, "unit": "°C", "comment": "aktuelle Raumtemperatur in Zone 1"}
]
}
700:z1RoomTemp, 700:z1RoomTemp:0 and 700:z1RoomTemp:tempv will bring the Zone 1 temperature.

Or

Code: Select all

   "SetMode": {
    "name": "SetMode",
    "passive": true,
    "write": true,
    "lastup": 1549308254,
    "zz": 8,
    "id": [181, 16, 0],
    "fields": {
     "hcmode": {"value": "auto"},
     "flowtempdesired": {"value": 60.5},
     "hwctempdesired": {"value": 55.0},
     "hwcflowtempdesired": {"value": null},
     "disablehc": {"value": 0},
     "disablehwctapping": {"value": 0},
     "disablehwcload": {"value": 0},
     "remoteControlHcPump": {"value": 0},
     "releaseBackup": {"value": 0},
     "releaseCooling": {"value": 0}
    },
    "fielddefs": [
     { "name": "hcmode", "slave": false, "type": "UCH", "isbits": false, "length": 1, "values": { "0": "auto", "1": "off", "2": "water" }, "unit": "", "comment": "Boiler Modus"},
     { "name": "flowtempdesired", "slave": false, "type": "D1C", "isbits": false, "length": 1, "unit": "°C", "comment": "Temperatur"},
     { "name": "hwctempdesired", "slave": false, "type": "D1C", "isbits": false, "length": 1, "unit": "°C", "comment": "Temperatur"},
     { "name": "hwcflowtempdesired", "slave": false, "type": "UCH", "isbits": false, "length": 1, "unit": "°C", "comment": "Temperatur"},
     { "name": "", "slave": false, "type": "IGN", "isbits": false, "length": 1, "unit": "", "comment": ""},
     { "name": "disablehc", "slave": false, "type": "BI0", "isbits": true, "length": 1, "unit": "", "comment": ""},
     { "name": "disablehwctapping", "slave": false, "type": "BI1", "isbits": true, "length": 1, "unit": "", "comment": ""},
     { "name": "disablehwcload", "slave": false, "type": "BI2", "isbits": true, "length": 1, "unit": "", "comment": ""},
     { "name": "", "slave": false, "type": "IGN", "isbits": false, "length": 1, "unit": "", "comment": ""},
     { "name": "remoteControlHcPump", "slave": false, "type": "BI0", "isbits": true, "length": 1, "unit": "", "comment": ""},
     { "name": "releaseBackup", "slave": false, "type": "BI1", "isbits": true, "length": 1, "unit": "", "comment": ""},
     { "name": "releaseCooling", "slave": false, "type": "BI2", "isbits": true, "length": 1, "unit": "", "comment": ""}
    ]
   }
bai:SetMode:4 and bai:SetMode:disablehc will bring the same registers.
Piacco
Posts: 69
Joined: Friday 14 November 2014 9:33
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: ebusd

Post by Piacco »

Hello, thank you for this great plugin :D

I'm looking for the temperature of my roomthermostat but i can't find it, do you no what i doing wrong :shock:
I have included the content of http://IPOfEbusD:8889/data?def ?
Attachments
Ebusd.txt
(32.41 KiB) Downloaded 81 times
Barberousse
Posts: 139
Joined: Wednesday 02 December 2015 21:47
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: France
Contact:

Re: Python Plugin: ebusd

Post by Barberousse »

Piacco wrote: Thursday 07 February 2019 17:44 Hello, thank you for this great plugin :D

I'm looking for the temperature of my roomthermostat but i can't find it, do you no what i doing wrong :shock:
Hi,

What are your hardware models (boiler, remote control, mixing circuit, etc)? Could you send your data definition in a more complete format (keeping json separators) ? It is not easy to read as text only format without indentation.
Jumper3126
Posts: 105
Joined: Thursday 31 December 2015 15:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: ebusd

Post by Jumper3126 »

Ok, this was a stupid remark :?
Sorry :lol:
Last edited by Jumper3126 on Wednesday 20 February 2019 21:15, edited 1 time in total.
fantom
Posts: 269
Joined: Thursday 26 March 2015 10:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Poland
Contact:

Re: Python Plugin: ebusd

Post by fantom »

First is not plugin to domoticz. This is full daemon for eBus

Fantom
Piacco
Posts: 69
Joined: Friday 14 November 2014 9:33
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: ebusd

Post by Piacco »

I find out that there are no configuration files available for my hardware.
I have a controler wich is an examaster SBX00 and my roomthermostat is a exacontrol E7C00 (the configuration file for de wirelles version E7f unfortunately didn't work :( ).

Code: Select all

version: ebusd 3.3.v3.3
signal: acquired
symbol rate: 23
max symbol rate: 113
min arbitration micros: 1147
max arbitration micros: 3566
min symbol latency: 5
max symbol latency: 6
reconnects: 0
masters: 4
messages: 66
conditional: 0
poll: 0
update: 9
address 03: master #11
address 08: slave #11, scanned "MF=Vaillant;ID=HMU01;SW=0302;HW=8802", loaded "vaillant/08.hmu.csv"
address 10: master #2
address 15: slave #2, scanned "MF=Vaillant;ID=SBX00;SW=0326;HW=4802"
address 30: master #3
address 31: master #8, ebusd
address 35: slave #3, scanned "MF=Vaillant;ID=E7C00;SW=0206;HW=7402"
address 36: slave #8, ebusd
address e8: slave, scanned "MF=Vaillant;ID=FMU00;SW=0202;HW=6502"

Code: Select all

"scan.35": {
  "messages": {
   "": {
    "name": "",
    "passive": false,
    "write": false,
    "lastup": 1550913272,
    "zz": 53,
    "id": [7, 4],
    "fields": {
     "MF": {"value": "Vaillant"},
     "ID": {"value": "E7C00"},
     "SW": {"value": "0206"},
     "HW": {"value": "7402"}
    },
    "fielddefs": [
     { "name": "MF", "slave": true, "type": "UCH", "isbits": false, "length": 1, "values": { "6": "Dungs", "15": "FH Ostfalia", "16": "TEM", "17": "Lamberti", "20": "CEB", "21": "Landis-Staefa", "22": "FERRO", "23": "MONDIAL", "24": "Wikon", "25": "Wolf", "32": "RAWE", "48": "Satronic", "64": "ENCON", "80": "Kromschroeder", "96": "Eberle", "101": "EBV", "117": "Graesslin", "133": "ebm-papst", "149": "SIG", "165": "Theben", "167": "Thermowatt", "181": "Vaillant", "192": "Toby", "197": "Weishaupt", "253": "ebusd.eu" }, "unit": "", "comment": ""},
     { "name": "ID", "slave": true, "type": "STR", "isbits": false, "length": 5, "unit": "", "comment": ""},
     { "name": "SW", "slave": true, "type": "PIN", "isbits": false, "length": 2, "unit": "", "comment": ""},
     { "name": "HW", "slave": true, "type": "PIN", "isbits": false, "length": 2, "unit": "", "comment": ""}
    ]
   },
   "id": {
    "name": "id",
    "passive": false,
    "write": false,
    "lastup": 1550913273,
    "zz": 53,
    "id": [181, 9],
    "fields": {
     "prefix": {"value": "21"},
     "year": {"value": "14"},
     "week": {"value": "16"},
     "product": {"value": "0020118080"},
     "supplier": {"value": "0082"},
     "counter": {"value": "005471"},
     "suffix": {"value": "N1"}
    },
    "fielddefs": [
     { "name": "", "slave": true, "type": "IGN", "isbits": false, "length": 1, "unit": "", "comment": ""},
     { "name": "prefix", "slave": true, "type": "STR", "isbits": false, "length": 2, "unit": "", "comment": ""},
     { "name": "year", "slave": true, "type": "STR", "isbits": false, "length": 2, "unit": "", "comment": ""},
     { "name": "week", "slave": true, "type": "STR", "isbits": false, "length": 2, "unit": "", "comment": ""},
     { "name": "product", "slave": true, "type": "STR", "isbits": false, "length": 10, "unit": "", "comment": ""},
     { "name": "supplier", "slave": true, "type": "STR", "isbits": false, "length": 4, "unit": "", "comment": ""},
     { "name": "counter", "slave": true, "type": "STR", "isbits": false, "length": 6, "unit": "", "comment": ""},
     { "name": "suffix", "slave": true, "type": "STR", "isbits": false, "length": 2, "unit": "", "comment": ""}
    ]
   }
  }
 },
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest