Python Plugin: ebusd

Python and python framework

Moderator: leecollings

Post Reply
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 »

pigloox wrote: Sunday 18 March 2018 18:18 10 seconds, I know it's little but it always worked before without any error
But now, with last beta and last plugin, I try to watch for timeout. Would you increase your refresh rate to 60s for instance, to see if the problem disappears? Depending on your feedback, I may relax the timeout condition.
pigloox
Posts: 22
Joined: Tuesday 09 February 2016 23:02
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: France
Contact:

Re: Python Plugin: ebusd

Post by pigloox »

Barberousse wrote: Sunday 18 March 2018 23:24 But now, with last beta and last plugin, I try to watch for timeout. Would you increase your refresh rate to 60s for instance, to see if the problem disappears? Depending on your feedback, I may relax the timeout condition.
Ok, I changed the value, I test a little longer and I tell you.

By cons, even with a value of 60s I feel that my widget is much less updated (up to 5 minutes and more for other). For a temperature reading, I think it's a lot
RPI3 Stretch (Hard disk)
-RFXtrx433 USB
-OpenZwave USB
-Teleinfo USB
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 »

pigloox wrote: Monday 19 March 2018 8:32 Ok, I changed the value, I test a little longer and I tell you.

By cons, even with a value of 60s I feel that my widget is much less updated (up to 5 minutes and more for other). For a temperature reading, I think it's a lot
Could you try version 1.2.4? Temperature are not changing that quickly I think, but it depends on your needs...
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 »

By the way, I still have 4 PCB of eBus USB Adapter (https://www.mikrocontroller.net/topic/346833), I can send remaining ones for free to the first ones that send me a stamped envelope, send me a private message if interested.
pigloox
Posts: 22
Joined: Tuesday 09 February 2016 23:02
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: France
Contact:

Re: Python Plugin: ebusd

Post by pigloox »

Barberousse wrote: Monday 19 March 2018 14:33
Could you try version 1.2.4? Temperature are not changing that quickly I think, but it depends on your needs...
So,

With 60s, no timeout errors but before, for the temperature, it seemed to me that the update of the widget was done more regularly. There, for example, the last update goes back to 1h

I'll test 1.2.4 and i'll tell u
RPI3 Stretch (Hard disk)
-RFXtrx433 USB
-OpenZwave USB
-Teleinfo USB
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 »

pigloox wrote: Monday 19 March 2018 22:03 There, for example, the last update goes back to 1h
On the versions starting 1.2.2, updates are sent to Domoticz only on refresh time AND if the device value has changed, it prevents domoticz database overloads, and it makes more sense, for instance for a selector switch, instead of filling the database with the same value every x seconds.
Lachris
Posts: 7
Joined: Tuesday 31 May 2016 12:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: ebusd

Post by Lachris »

Hello,

Maybe a stupid question but can you make changes to the boiler with this hardware/plugin?

How does it look like in Domoticz? :)
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 »

Lachris wrote: Saturday 08 September 2018 7:36Maybe a stupid question but can you make changes to the boiler with this hardware/plugin?

How does it look like in Domoticz? :)
There is no stupid question.

Yes you can, some parameters or the boiler are read/write, for instance:

Screenshot_20180908_093233.png
Screenshot_20180908_093233.png (33.52 KiB) Viewed 2511 times

Screenshot_20180908_093517.png
Screenshot_20180908_093517.png (44.5 KiB) Viewed 2511 times

Screenshot_20180908_093757.png
Screenshot_20180908_093757.png (26.98 KiB) Viewed 2511 times

Sometimes it's difficult to understand what are the parameters for, but I can help, do you have a specific need?
Lachris
Posts: 7
Joined: Tuesday 31 May 2016 12:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: ebusd

Post by Lachris »

Wow it looks nice :)

Can you set the day and night tempeture on the boiler for the heating.

Can you turn on the boiler when you need it?

Example if you have a room that needs heating, it turns on the boiler and valve get set to max?

My biggest problem is i still need the hardware :)
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 »

Lachris wrote: Saturday 08 September 2018 10:50Can you set the day and night tempeture on the boiler for the heating.

Can you turn on the boiler when you need it?

Example if you have a room that needs heating, it turns on the boiler and valve get set to max?
I guess it depends on your specific boiler model. On mine, I can set it with f47:Hc1DayTemp f47:Hc1NightTemp for my first heating circuit but cannot find the temperature registers for the mixing circuit of my second heating zone:

Screenshot_20180908_133715.png
Screenshot_20180908_133715.png (27.57 KiB) Viewed 2497 times

In my dzVents script example, I switch between holidays and normal mode depending on a virtual switch "Mode absence" where I use Domoticz planning feature.

You can also switch between auto/night/on/summer mode for each heating circuit with f47:Hc1OPMode for 1st zone and mc:InternalOperatingMode470 for 2nd zone on my installation. This can be done using dzVents or Blocky scripts or from interface:

Screenshot_20180908_093233.png
Screenshot_20180908_093233.png (33.52 KiB) Viewed 2498 times
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 »

After disconnected ebus i have bug:
2018-09-30 17:44:47.802 Error: (ebus) Error from telnet client: no signal
2018-09-30 17:44:52.814 Error: (ebus) Error from telnet client: no signal
2018-09-30 17:45:02.837 Error: (ebus) Error from telnet client: no signal
2018-09-30 17:45:07.799 Error: (ebus) Error from telnet client: no signal
2018-09-30 17:59:45.188 Error: (ebus) Timeout during handleFifo, restart plugin
2018-09-30 17:59:45.190 Error: (ebus) 'onHeartbeat' failed 'KeyError'.
2018-09-30 17:59:45.190 Error: (ebus) ----> Line 914 in '/home/pi/domoticz/plugins/DomoticzEbusd/plugin.py', function onHeartbeat
2018-09-30 17:59:45.190 Error: (ebus) ----> Line 853 in '/home/pi/domoticz/plugins/DomoticzEbusd/plugin.py', function onHeartbeat

version 1.2.9

Fantom
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 »

fantom wrote: Sunday 30 September 2018 18:50 After disconnected ebus i have bug:
Hello,

What do you mean by "after disconnected ebus", can you be more specific on the way to reproduce the bug ?

Thank you.
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 »

I'm not sure. I do not remember.
I stopped ebusd daemon or disconnected ebus wire or disconnected ebus converter board form RPi.
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 »

fantom wrote: Monday 01 October 2018 7:42 I'm not sure. I do not remember.
I stopped ebusd daemon or disconnected ebus wire or disconnected ebus converter board form RPi.
Ok, I'll see what I can do in next version, not an easy one though, when telnet is forced disconnected, it seems to be done asynchronously with the hearbeat function...
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 »

fantom wrote: Sunday 30 September 2018 18:502018-09-30 17:45:07.799 Error: (ebus) Error from telnet client: no signal
2018-09-30 17:59:45.188 Error: (ebus) Timeout during handleFifo, restart plugin
2018-09-30 17:59:45.190 Error: (ebus) 'onHeartbeat' failed 'KeyError'.
2018-09-30 17:59:45.190 Error: (ebus) ----> Line 914 in '/home/pi/domoticz/plugins/DomoticzEbusd/plugin.py', function onHeartbeat
2018-09-30 17:59:45.190 Error: (ebus) ----> Line 853 in '/home/pi/domoticz/plugins/DomoticzEbusd/plugin.py', function onHeartbeat
Could you try version 1.3.0?
misko903
Posts: 51
Joined: Thursday 27 September 2018 22:58
Target OS: Raspberry Pi / ODroid
Domoticz version: Latest
Location: Trencin, Slovakia
Contact:

Re: Python Plugin: ebusd

Post by misko903 »

Hello,
my ebusd plugin keeps me reminding:
raspberrypi:Domoticz Plugin Updates Available for ebusd bridge
ebusd bridge has updates available!!


I have installed plugin throug Python plugins manager. How can I update it, through PPM?

Thank you,
Michal
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 »

misko903 wrote: Tuesday 30 October 2018 10:16 I have installed plugin throug Python plugins manager. How can I update it, through PPM?
I don't use PPM, but it should be automatic... I see that you asked the question on PPM thread too, but no answer yet, I guess I have to test PPM myself, last time I wasn't very successful.
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 »

misko903 wrote: Tuesday 30 October 2018 10:16 I have installed plugin throug Python plugins manager. How can I update it, through PPM?
Now I remember, I already pushed a patch because PPM doesn't work on some git versions or on localized versions, cf. here: https://github.com/ycahome/pp-manager/pull/8

I was during May, it's still not merged, it seems that the project is dead.
misko903
Posts: 51
Joined: Thursday 27 September 2018 22:58
Target OS: Raspberry Pi / ODroid
Domoticz version: Latest
Location: Trencin, Slovakia
Contact:

Re: Python Plugin: ebusd

Post by misko903 »

Barberousse wrote: Tuesday 30 October 2018 10:32
misko903 wrote: Tuesday 30 October 2018 10:16 I have installed plugin throug Python plugins manager. How can I update it, through PPM?
Now I remember, I already pushed a patch because PPM doesn't work on some git versions or on localized versions, cf. here: https://github.com/ycahome/pp-manager/pull/8

I was during May, it's still not merged, it seems that the project is dead.
solved! You just need to repeat the installation procedure - it was working for me.
https://www.domoticz.com/wiki/Python_Plugin_Manager

Thank you,
Michal
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 »

Hello, I also use the ebusd plugin.Great work!!! Everything has worked so far.

The two entries

Code: Select all

mc:OperatingMode hwc:OperatingMode
provided each a selector-switch, with the working buttons for mc: "Auto, Eco, Heizen, Absenken, On" and for the hwc: "Off, On, Auto" (I do not remember the order).

Now I have removed all my tested components and created all needed again. Now the two entries deliver a selctor-switch in the devicelist, but the switches are created as normal-switches (without buttons).
Devicelist.JPG
Devicelist.JPG (22.64 KiB) Viewed 2082 times
mc.JPG
mc.JPG (31.15 KiB) Viewed 2082 times
I have tried:
to remove all devices
Remove hardware in the list
Restart Domoticz
all sorts of other entries

What am I doing wrong?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest