Läuft: Heizung mit eBus-Schnittstelle

Begonnen von Prof. Dr. Peter Henning, 29 November 2014, 13:36:59

Vorheriges Thema - Nächstes Thema

pc1246

Zitat von: Matze_Bln am 01 August 2018, 20:25:29

--- edit ---


Moin
Kannst Du das bitte in Codetags setzen! Das ist der " # " ueber den Smilies!
Das geht auch nachtraeglich!
Danke und Gruss
Christoph
HP T610
Onkyo_AVR;3 Enigma2; SB_Server ; SB_Player; HM-USB mit 15 HM-CC-RT-DN, 3 HM_WDS10_TH_O, 6 HM-Sec-SCo, 4 HM-Sec-MDIR-2, 1 HM-Sen-MDIR-O-2, 8 Ferion 5000 OW ; PhilipsTV; 4 harmony hub; Jeelink mit 9 PCA301; Somfy; S7-300; 3 LGW; HUE; HM-IP auf Charly

john30

Zitat von: TiPpFeHlEr am 29 Juli 2018, 17:57:24
aber wieso geht

08.reco.csv nicht??
wieso sollte das denn gehen? der Automatismus streicht nur abschließende Ziffern nacheinander, bis ein Treffer gefunden wurde. "v" ist keine Ziffer ;)
author of ebusd

john30

Zitat von: Matze_Bln am 01 August 2018, 20:25:29
Ich habe noch ein wenig probiert. Wie vermutet, läd die csv vom Server. Damit ist klar, dass er dann natürlich keine csv für das VMS01 findet.
richtig. Wenn Du mit eigens erstellten/erweiterten Files arbeiten willst, musst Du mit einer aktuellen ebusd Version zwingend auch die "--configpath=..." Option verwenden.

Zitat von: Matze_Bln am 01 August 2018, 20:25:29
Solange ich mit scanconfig arbeite, verhält sich ebusd so.
Das sind nun wieder zwei paar Stiefel. scanconfig sollte man eigentlich immer einsetzen, wenn es irgendwie geht, denn andernfalls musst Du das Verzeichnis komplett ausdünnen und auf ganz genau die CSVs reduzieren, die Du auch wirklich brauchst. Nur mit scanconfig kann ebusd das alleine.
author of ebusd

TiPpFeHlEr

Probleme nach umstieg von wheezy auf jessie.

hi folks,

habe mein system auf jessie umgestellt und gleichmal die neueste ebusd version installiert.
leider weiss ich nicht wie ich ebusd service richtig starten kann, ich verwende 2 ebusadapter.

mit dem alten start script (/etc/init.d/ebusd) konnte mann 2  $EBUSD_OPTS angeben.

das jetzige startscript in (/etc/systemd/system/ebusd.service) kann nur 1 ExecStart= /usr/bin/ebusd $EBUSD_OPTS

meine /etc/default/ebusd enthält aber 2 definitionen für 2 Adapter / ports

EBUSD_OPTS1="--lograwdata=bytes --latency=100000 --receivetimeout=100000  --enablehex --scanconfig=08 -d /dev/serial/by-id/usb-E-Service_eBus_Coupler_Is$
EBUSD_OPTS2="--lograwdata=bytes --latency=100000 --receivetimeout=100000 -a ff --enablehex --scanconfig -d /dev/serial/by-id/usb-E-Service_eBus_Coupler_$


wie kann ich mit systemd beide ports starten??


MfG Maik

john30

Zitat von: TiPpFeHlEr am 05 August 2018, 15:25:01
Probleme nach umstieg von wheezy auf jessie.
eins vorweg: mit systemd ist alles anders!

Zitat von: TiPpFeHlEr am 05 August 2018, 15:25:01
mit dem alten start script (/etc/init.d/ebusd) konnte mann 2  $EBUSD_OPTS angeben.
das geht im Prinzip mit systemd auch, aber man braucht dafür jeweils ein eigenes systemd Startscript pro Instanz. Also wenn Du 2 ebusd Instanzen haben willst, musst Du das /usr/lib/systemd/system/ebusd.service File kopieren und entsprechend editieren, siehe auch den Kommentar-Block ab Zeile 18 hier:
https://github.com/john30/ebusd/blob/master/contrib/debian/default/ebusd#L18
author of ebusd

TiPpFeHlEr

Zitat von: john30 am 05 August 2018, 17:13:01
eins vorweg: mit systemd ist alles anders!

::) ich habs mir gedacht

ich werds mal probieren.

MfG Maik

TiPpFeHlEr

#2706
@john

also, im Prinzip geht es aber ......


1. ein Fehler trotz Funktion -> Problem oder ignorieren?
Job for ebusd_2.service failed because of unavailable resources or another system error.
See "systemctl status ebusd_2.service" and "journalctl -xe" for details.

pi@FHEM_RPI:~ $ systemctl start ebusd_2.service
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Legitimierung ist zum Starten von »ebusd_2.service« notwendig.
Multiple identities can be used for authentication:
1.  ,,, (pi)
2.  root
Choose identity to authenticate as (1-2): 1
Password:
==== AUTHENTICATION COMPLETE ===
Job for ebusd_2.service failed because of unavailable resources or another system error.
See "systemctl status ebusd_2.service" and "journalctl -xe" for details.
pi@FHEM_RPI:~ $ systemctl status ebusd_2.service
● ebusd_2.service - ebusd, the daemon for communication with eBUS heating systems.
   Loaded: loaded (/etc/systemd/system/ebusd_2.service; disabled; vendor preset: enabled)
   Active: active (running) since Sun 2018-08-05 17:30:49 CEST; 14s ago
  Process: 1637 ExecStart=/usr/bin/ebusd $EBUSD_OPTS2 (code=exited, status=0/SUCCESS)
Main PID: 1638 (ebusd)
   CGroup: /system.slice/ebusd_2.service
           └─1638 /usr/bin/ebusd --lograwdata=bytes --latency=100000 --receivetimeout=100000 -a ff --enablehex --scanconfig -d /dev/serial/by-id/usb-E-Se

Aug 05 17:30:49 FHEM_RPI systemd[1]: Starting ebusd, the daemon for communication with eBUS heating systems....
Aug 05 17:30:49 FHEM_RPI systemd[1]: Started ebusd, the daemon for communication with eBUS heating systems..



beide ports gehen (kein Signal weil ohne Adapter (Testsystem)

pi@FHEM_RPI:~ $ ebusctl -p 8889 info
version: ebusd 3.2.v3.2-5-g671c8d2
signal: no signal
reconnects: 0
masters: 1
messages: 11
conditional: 0
poll: 0
update: 4
address 31: master #8, ebusd
address 36: slave #8, ebusd

pi@FHEM_RPI:~ $ ebusctl -p 8888 info
version: ebusd 3.2.v3.2-5-g671c8d2
signal: no signal
reconnects: 0
masters: 1
messages: 11
conditional: 0
poll: 0
update: 4
address 04: slave #25, ebusd
address ff: master #25, ebusd


2. Autostart geht nicht, beim boot vom PI wird der service nicht gestartet, er muss von Hand gestartet werden, inkl. einer neuen Rechteabfrage die ich noch nicht kenne.

pi@FHEM_RPI:~ $ systemctl start ebusd.service
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Legitimierung ist zum Starten von »ebusd.service« notwendig.
Multiple identities can be used for authentication:
1.  ,,, (pi)
2.  root
Choose identity to authenticate as (1-2): 1
Password:
==== AUTHENTICATION COMPLETE ===


MfG Maik

TiPpFeHlEr

#2707
folgende Fehler beim Autostart

pi@FHEM_RPI:~ $ systemctl status ebusd.service
● ebusd.service - ebusd, the daemon for communication with eBUS heating systems.
   Loaded: loaded (/etc/systemd/system/ebusd.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sun 2018-08-05 17:52:59 CEST; 3min 2s ago
  Process: 476 ExecStart=/usr/bin/ebusd $EBUSD_OPTS1 (code=exited, status=22)

Aug 05 17:52:59 FHEM_RPI systemd[1]: ebusd.service: Control process exited, code=exited status=22
Aug 05 17:52:59 FHEM_RPI systemd[1]: Failed to start ebusd, the daemon for communication with eBUS heating systems..
Aug 05 17:52:59 FHEM_RPI systemd[1]: ebusd.service: Unit entered failed state.
Aug 05 17:52:59 FHEM_RPI systemd[1]: ebusd.service: Failed with result 'exit-code'.
Aug 05 17:52:59 FHEM_RPI systemd[1]: ebusd.service: Service hold-off time over, scheduling restart.
Aug 05 17:52:59 FHEM_RPI systemd[1]: Stopped ebusd, the daemon for communication with eBUS heating systems..
Aug 05 17:52:59 FHEM_RPI systemd[1]: ebusd.service: Start request repeated too quickly.
Aug 05 17:52:59 FHEM_RPI systemd[1]: Failed to start ebusd, the daemon for communication with eBUS heating systems..
Aug 05 17:52:59 FHEM_RPI systemd[1]: ebusd.service: Unit entered failed state.
Aug 05 17:52:59 FHEM_RPI systemd[1]: ebusd.service: Failed with result 'exit-code'.

pi@FHEM_RPI:~ $ systemctl status ebusd_2.service
● ebusd_2.service - ebusd, the daemon for communication with eBUS heating systems.
   Loaded: loaded (/etc/systemd/system/ebusd_2.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sun 2018-08-05 17:52:59 CEST; 3min 30s ago
  Process: 477 ExecStart=/usr/bin/ebusd $EBUSD_OPTS2 (code=exited, status=22)

Aug 05 17:52:59 FHEM_RPI systemd[1]: ebusd_2.service: Control process exited, code=exited status=22
Aug 05 17:52:59 FHEM_RPI systemd[1]: Failed to start ebusd, the daemon for communication with eBUS heating systems..
Aug 05 17:52:59 FHEM_RPI systemd[1]: ebusd_2.service: Unit entered failed state.
Aug 05 17:52:59 FHEM_RPI systemd[1]: ebusd_2.service: Failed with result 'exit-code'.
Aug 05 17:52:59 FHEM_RPI systemd[1]: ebusd_2.service: Service hold-off time over, scheduling restart.
Aug 05 17:52:59 FHEM_RPI systemd[1]: Stopped ebusd, the daemon for communication with eBUS heating systems..
Aug 05 17:52:59 FHEM_RPI systemd[1]: ebusd_2.service: Start request repeated too quickly.
Aug 05 17:52:59 FHEM_RPI systemd[1]: Failed to start ebusd, the daemon for communication with eBUS heating systems..
Aug 05 17:52:59 FHEM_RPI systemd[1]: ebusd_2.service: Unit entered failed state.
Aug 05 17:52:59 FHEM_RPI systemd[1]: ebusd_2.service: Failed with result 'exit-code'.

pi@FHEM_RPI:~ $ journalctl | grep ebusd
Aug 05 17:52:58 FHEM_RPI systemd[1]: Starting ebusd, the daemon for communication with eBUS heating systems....
Aug 05 17:52:58 FHEM_RPI systemd[1]: Starting ebusd, the daemon for communication with eBUS heating systems....
Aug 05 17:52:58 FHEM_RPI ebusd[418]: 2018-08-05 17:52:58.414 [main error] invalid configPath URL
Aug 05 17:52:58 FHEM_RPI ebusd[414]: 2018-08-05 17:52:58.414 [main error] invalid configPath URL
Aug 05 17:52:58 FHEM_RPI systemd[1]: ebusd.service: Control process exited, code=exited status=22
Aug 05 17:52:58 FHEM_RPI systemd[1]: Failed to start ebusd, the daemon for communication with eBUS heating systems..
Aug 05 17:52:58 FHEM_RPI systemd[1]: ebusd.service: Unit entered failed state.
Aug 05 17:52:58 FHEM_RPI systemd[1]: ebusd.service: Failed with result 'exit-code'.
Aug 05 17:52:58 FHEM_RPI systemd[1]: ebusd_2.service: Control process exited, code=exited status=22
Aug 05 17:52:58 FHEM_RPI systemd[1]: Failed to start ebusd, the daemon for communication with eBUS heating systems..
Aug 05 17:52:58 FHEM_RPI systemd[1]: ebusd_2.service: Unit entered failed state.
Aug 05 17:52:58 FHEM_RPI systemd[1]: ebusd_2.service: Failed with result 'exit-code'.
Aug 05 17:52:58 FHEM_RPI systemd[1]: ebusd_2.service: Service hold-off time over, scheduling restart.
Aug 05 17:52:58 FHEM_RPI systemd[1]: ebusd.service: Service hold-off time over, scheduling restart.
Aug 05 17:52:58 FHEM_RPI systemd[1]: Stopped ebusd, the daemon for communication with eBUS heating systems..
Aug 05 17:52:58 FHEM_RPI systemd[1]: Starting ebusd, the daemon for communication with eBUS heating systems....
Aug 05 17:52:58 FHEM_RPI systemd[1]: Stopped ebusd, the daemon for communication with eBUS heating systems..
Aug 05 17:52:58 FHEM_RPI systemd[1]: Starting ebusd, the daemon for communication with eBUS heating systems....
Aug 05 17:52:58 FHEM_RPI ebusd[451]: 2018-08-05 17:52:58.709 [main error] invalid configPath URL
Aug 05 17:52:58 FHEM_RPI systemd[1]: ebusd.service: Control process exited, code=exited status=22
Aug 05 17:52:58 FHEM_RPI systemd[1]: Failed to start ebusd, the daemon for communication with eBUS heating systems..
Aug 05 17:52:58 FHEM_RPI systemd[1]: ebusd.service: Unit entered failed state.
Aug 05 17:52:58 FHEM_RPI systemd[1]: ebusd.service: Failed with result 'exit-code'.
Aug 05 17:52:58 FHEM_RPI ebusd[453]: 2018-08-05 17:52:58.730 [main error] invalid configPath URL
Aug 05 17:52:58 FHEM_RPI systemd[1]: ebusd_2.service: Control process exited, code=exited status=22
Aug 05 17:52:58 FHEM_RPI systemd[1]: Failed to start ebusd, the daemon for communication with eBUS heating systems..
Aug 05 17:52:58 FHEM_RPI systemd[1]: ebusd_2.service: Unit entered failed state.
Aug 05 17:52:58 FHEM_RPI systemd[1]: ebusd_2.service: Failed with result 'exit-code'.
Aug 05 17:52:58 FHEM_RPI systemd[1]: ebusd.service: Service hold-off time over, scheduling restart.
Aug 05 17:52:58 FHEM_RPI systemd[1]: Stopped ebusd, the daemon for communication with eBUS heating systems..
Aug 05 17:52:58 FHEM_RPI systemd[1]: Starting ebusd, the daemon for communication with eBUS heating systems....
Aug 05 17:52:58 FHEM_RPI ebusd[461]: 2018-08-05 17:52:58.855 [main error] invalid configPath URL
Aug 05 17:52:58 FHEM_RPI systemd[1]: ebusd.service: Control process exited, code=exited status=22
Aug 05 17:52:58 FHEM_RPI systemd[1]: Failed to start ebusd, the daemon for communication with eBUS heating systems..
Aug 05 17:52:58 FHEM_RPI systemd[1]: ebusd.service: Unit entered failed state.
Aug 05 17:52:58 FHEM_RPI systemd[1]: ebusd.service: Failed with result 'exit-code'.
Aug 05 17:52:58 FHEM_RPI systemd[1]: ebusd_2.service: Service hold-off time over, scheduling restart.
Aug 05 17:52:58 FHEM_RPI systemd[1]: Stopped ebusd, the daemon for communication with eBUS heating systems..
Aug 05 17:52:58 FHEM_RPI systemd[1]: Starting ebusd, the daemon for communication with eBUS heating systems....
Aug 05 17:52:58 FHEM_RPI ebusd[464]: 2018-08-05 17:52:58.899 [main error] invalid configPath URL
Aug 05 17:52:58 FHEM_RPI systemd[1]: ebusd_2.service: Control process exited, code=exited status=22
Aug 05 17:52:58 FHEM_RPI systemd[1]: Failed to start ebusd, the daemon for communication with eBUS heating systems..
Aug 05 17:52:58 FHEM_RPI systemd[1]: ebusd_2.service: Unit entered failed state.
Aug 05 17:52:58 FHEM_RPI systemd[1]: ebusd_2.service: Failed with result 'exit-code'.
Aug 05 17:52:58 FHEM_RPI systemd[1]: ebusd.service: Service hold-off time over, scheduling restart.
Aug 05 17:52:58 FHEM_RPI systemd[1]: Stopped ebusd, the daemon for communication with eBUS heating systems..
Aug 05 17:52:58 FHEM_RPI systemd[1]: Starting ebusd, the daemon for communication with eBUS heating systems....
Aug 05 17:52:59 FHEM_RPI ebusd[470]: 2018-08-05 17:52:59.005 [main error] invalid configPath URL
Aug 05 17:52:59 FHEM_RPI systemd[1]: ebusd_2.service: Service hold-off time over, scheduling restart.
Aug 05 17:52:59 FHEM_RPI systemd[1]: ebusd.service: Control process exited, code=exited status=22
Aug 05 17:52:59 FHEM_RPI systemd[1]: Failed to start ebusd, the daemon for communication with eBUS heating systems..
Aug 05 17:52:59 FHEM_RPI systemd[1]: ebusd.service: Unit entered failed state.
Aug 05 17:52:59 FHEM_RPI systemd[1]: ebusd.service: Failed with result 'exit-code'.
Aug 05 17:52:59 FHEM_RPI systemd[1]: Stopped ebusd, the daemon for communication with eBUS heating systems..
Aug 05 17:52:59 FHEM_RPI systemd[1]: Starting ebusd, the daemon for communication with eBUS heating systems....
Aug 05 17:52:59 FHEM_RPI ebusd[472]: 2018-08-05 17:52:59.052 [main error] invalid configPath URL
Aug 05 17:52:59 FHEM_RPI systemd[1]: ebusd_2.service: Control process exited, code=exited status=22
Aug 05 17:52:59 FHEM_RPI systemd[1]: Failed to start ebusd, the daemon for communication with eBUS heating systems..
Aug 05 17:52:59 FHEM_RPI systemd[1]: ebusd_2.service: Unit entered failed state.
Aug 05 17:52:59 FHEM_RPI systemd[1]: ebusd_2.service: Failed with result 'exit-code'.
Aug 05 17:52:59 FHEM_RPI systemd[1]: ebusd_2.service: Service hold-off time over, scheduling restart.
Aug 05 17:52:59 FHEM_RPI systemd[1]: ebusd.service: Service hold-off time over, scheduling restart.
Aug 05 17:52:59 FHEM_RPI systemd[1]: Stopped ebusd, the daemon for communication with eBUS heating systems..
Aug 05 17:52:59 FHEM_RPI systemd[1]: Starting ebusd, the daemon for communication with eBUS heating systems....
Aug 05 17:52:59 FHEM_RPI systemd[1]: Stopped ebusd, the daemon for communication with eBUS heating systems..
Aug 05 17:52:59 FHEM_RPI systemd[1]: Starting ebusd, the daemon for communication with eBUS heating systems....
Aug 05 17:52:59 FHEM_RPI ebusd[476]: 2018-08-05 17:52:59.211 [main error] invalid configPath URL
Aug 05 17:52:59 FHEM_RPI systemd[1]: ebusd.service: Control process exited, code=exited status=22
Aug 05 17:52:59 FHEM_RPI systemd[1]: Failed to start ebusd, the daemon for communication with eBUS heating systems..
Aug 05 17:52:59 FHEM_RPI ebusd[477]: 2018-08-05 17:52:59.222 [main error] invalid configPath URL
Aug 05 17:52:59 FHEM_RPI systemd[1]: ebusd.service: Unit entered failed state.
Aug 05 17:52:59 FHEM_RPI systemd[1]: ebusd.service: Failed with result 'exit-code'.
Aug 05 17:52:59 FHEM_RPI systemd[1]: ebusd_2.service: Control process exited, code=exited status=22
Aug 05 17:52:59 FHEM_RPI systemd[1]: Failed to start ebusd, the daemon for communication with eBUS heating systems..
Aug 05 17:52:59 FHEM_RPI systemd[1]: ebusd_2.service: Unit entered failed state.
Aug 05 17:52:59 FHEM_RPI systemd[1]: ebusd_2.service: Failed with result 'exit-code'.
Aug 05 17:52:59 FHEM_RPI systemd[1]: ebusd.service: Service hold-off time over, scheduling restart.
Aug 05 17:52:59 FHEM_RPI systemd[1]: ebusd_2.service: Service hold-off time over, scheduling restart.
Aug 05 17:52:59 FHEM_RPI systemd[1]: Stopped ebusd, the daemon for communication with eBUS heating systems..
Aug 05 17:52:59 FHEM_RPI systemd[1]: ebusd_2.service: Start request repeated too quickly.
Aug 05 17:52:59 FHEM_RPI systemd[1]: Failed to start ebusd, the daemon for communication with eBUS heating systems..
Aug 05 17:52:59 FHEM_RPI systemd[1]: ebusd_2.service: Unit entered failed state.
Aug 05 17:52:59 FHEM_RPI systemd[1]: ebusd_2.service: Failed with result 'exit-code'.
Aug 05 17:52:59 FHEM_RPI systemd[1]: Stopped ebusd, the daemon for communication with eBUS heating systems..
Aug 05 17:52:59 FHEM_RPI systemd[1]: ebusd.service: Start request repeated too quickly.
Aug 05 17:52:59 FHEM_RPI systemd[1]: Failed to start ebusd, the daemon for communication with eBUS heating systems..
Aug 05 17:52:59 FHEM_RPI systemd[1]: ebusd.service: Unit entered failed state.
Aug 05 17:52:59 FHEM_RPI systemd[1]: ebusd.service: Failed with result 'exit-code'.


Danach von Hand gestartet

Aug 05 17:58:21 FHEM_RPI polkitd(authority=local)[690]: Operator of unix-process:1160:31563 successfully authenticated as unix-user:pi to gain ONE-SHOT authorization for action org.freedesktop.systemd1.manage-units for system-bus-name::1.23 [systemctl start ebusd_2.service] (owned by unix-user:pi)
Aug 05 17:58:21 FHEM_RPI systemd[1]: Starting ebusd, the daemon for communication with eBUS heating systems....
Aug 05 17:58:21 FHEM_RPI systemd[1]: Started ebusd, the daemon for communication with eBUS heating systems..
Aug 05 17:58:31 FHEM_RPI polkitd(authority=local)[690]: Operator of unix-process:1188:32781 successfully authenticated as unix-user:pi to gain ONE-SHOT authorization for action org.freedesktop.systemd1.manage-units for system-bus-name::1.26 [systemctl start ebusd.service] (owned by unix-user:pi)
Aug 05 17:58:31 FHEM_RPI systemd[1]: Starting ebusd, the daemon for communication with eBUS heating systems....
Aug 05 17:58:31 FHEM_RPI systemd[1]: ebusd.service: Failed to read PID from file /var/run/ebusd.pid: Invalid argument
Aug 05 17:58:31 FHEM_RPI systemd[1]: ebusd.service: Daemon never wrote its PID file. Failing.
Aug 05 17:58:31 FHEM_RPI systemd[1]: Failed to start ebusd, the daemon for communication with eBUS heating systems..
Aug 05 17:58:31 FHEM_RPI systemd[1]: ebusd.service: Unit entered failed state.
Aug 05 17:58:31 FHEM_RPI systemd[1]: ebusd.service: Failed with result 'resources'.
Aug 05 17:58:31 FHEM_RPI systemd[1]: ebusd.service: Service hold-off time over, scheduling restart.
Aug 05 17:58:31 FHEM_RPI systemd[1]: Stopped ebusd, the daemon for communication with eBUS heating systems..
Aug 05 17:58:31 FHEM_RPI systemd[1]: Starting ebusd, the daemon for communication with eBUS heating systems....
Aug 05 17:58:31 FHEM_RPI systemd[1]: Started ebusd, the daemon for communication with eBUS heating systems..


MfG Maik

cs-online

hmmm, ich muss bei mir EBUSD immer als Sudo starten, sonst will das nicht, du hast ihn als PI starten wollen, evtl. liegt da das Problem ?
FHEM auf RPI 4 4GB, HM-WLAN-Gateway, einige HM-Aktoren,2x EBUSD an Heizung+Solar, ESP8266 am Strom-,Gas-,Wasserzähler, in WLAN-Steckdosen und Relaisleisten, Sonoff S20, Shelly1,2 und 2.5,Lacrosse-Gateway und Sensoren,Sduino,Alexa-Fhem,Huawei PV mit Speicher, alles auf einem RPI und da geht noch mehr

Matze_Bln

Zitat von: john30 am 05 August 2018, 13:42:44
richtig. Wenn Du mit eigens erstellten/erweiterten Files arbeiten willst, musst Du mit einer aktuellen ebusd Version zwingend auch die "--configpath=..." Option verwenden.
Das sind nun wieder zwei paar Stiefel. scanconfig sollte man eigentlich immer einsetzen, wenn es irgendwie geht, denn andernfalls musst Du das Verzeichnis komplett ausdünnen und auf ganz genau die CSVs reduzieren, die Du auch wirklich brauchst. Nur mit scanconfig kann ebusd das alleine.
Irgendwas hatte ich falsch gemacht, da ich scanconfig und configpath bei meinen Versuchen nie gemeinsam starten konnte, nun geht es aber und die csv wird erkannt.

Sven77

Zitat von: john30 am 05 August 2018, 13:42:44
Wenn Du mit eigens erstellten/erweiterten Files arbeiten willst, musst Du mit einer aktuellen ebusd Version zwingend auch die "--configpath=..." Option verwenden.

Hab das erst jetzt nochmal richtig gelesen... darf ich nachfragen, warum das so ist (und wo das dokumentiert ist)?
Oder meinte das nur, wenn man statt der vorgefertigten CSVs lieber eigene erstellt oder eine erweiterte Kopie irgendwo ablegt, kann man in neueren Versionen mit "--configpath" arbeiten, statt die Originale zu ändern?
VG, Sven

john30

Zitat von: Sven77 am 07 August 2018, 12:57:39
Hab das erst jetzt nochmal richtig gelesen... darf ich nachfragen, warum das so ist (und wo das dokumentiert ist)?
Oder meinte das nur, wenn man statt der vorgefertigten CSVs lieber eigene erstellt oder eine erweiterte Kopie irgendwo ablegt, kann man in neueren Versionen mit "--configpath" arbeiten, statt die Originale zu ändern?
dokumentiert hier: https://github.com/john30/ebusd/blob/master/ChangeLog.md
dient der Vereinfachung für das Gros der Benutzer, die nicht an den CSVs rumschrauben wollen.
author of ebusd

TiPpFeHlEr

#2712
Zitat von: cs-online am 07 August 2018, 08:44:28
hmmm, ich muss bei mir EBUSD immer als Sudo starten, sonst will das nicht, du hast ihn als PI starten wollen, evtl. liegt da das Problem ?

OK?

ich dachte es wird als root gestartet, wie kann ich den Autostart als root volziehen??
Ich hatte einfach alles so wie im ebusd/wiki beschrieben gemacht.

ZitatStart ebusd automatically

To start ebusd automatically on startup on debian based system use this command to create the file ebusd.service:

sudo nano -w /etc/systemd/system/ebusd.service

Copy the following content inside the file:

[Unit]
Description=ebusd, the daemon for communication with eBUS heating systems.
After=network.target
ConditionPathExists=/var/log

[Service]
Type=forking
Restart=always
PIDFile=/var/run/ebusd.pid
EnvironmentFile=-/etc/default/ebusd
ExecStart=/usr/bin/ebusd $EBUSD_OPTS

[Install]
WantedBy=multi-user.target



vorher kann das jessie system nicht ein gesetzt werden. :(

MfG Maik

TiPpFeHlEr

#2713
workaround für mein Problem

der ebusd.service konnte nicht starten und wollte erneut starten. Dies ging nicht weil der ebusd  kein reload unterstützt?

systemctl show -p CanReload ebusd
CanReload=no


habe also folgendes zur ebusd.service hinzugefügt
StartLimitBurst=0

nun startet der ebusd beim boot automatisch

pi@FHEM_RPI:~ $ systemctl status ebusd
● ebusd.service - ebusd_1
   Loaded: loaded (/etc/systemd/system/ebusd.service; enabled; vendor preset: enabled)
   Active: active (running) since Sat 2018-08-11 15:59:23 CEST; 47s ago
  Process: 780 ExecStart=/usr/bin/ebusd $EBUSD_OPTS1 (code=exited, status=0/SUCCESS)
Main PID: 784 (ebusd)
   CGroup: /system.slice/ebusd.service
           └─784 /usr/bin/ebusd --lograwdata=bytes --latency=100000 --receivetimeout=100000 --enablehex --scanconfig=08 -d /dev/serial/by-id/usb-E-Servic

Aug 11 15:59:23 FHEM_RPI systemd[1]: Stopped ebusd_1.
Aug 11 15:59:23 FHEM_RPI systemd[1]: Starting ebusd_1...
Aug 11 15:59:23 FHEM_RPI systemd[1]: Started ebusd_1.


Die Frage ist immernoch was ihn beim ersten mal daran hindert richtig mit Status 0 zu starten!?

was braucht ebusd.service noch ausser network.target?
Sollte er auf noch einen service warten??

MfG Maik

TiPpFeHlEr

update


so, neues sytem ist online (es ist nicht jessie sondern stretch  ::))
nun lädt er allerdings wieder die csv nicht

2018-08-12 17:43:26.848 [main notice] ebusd 3.2.v3.2-5-g671c8d2 started with single scan
2018-08-12 17:43:28.441 [bus notice] bus started with own address 31/36
2018-08-12 17:43:28.443 [bus notice] signal acquired
2018-08-12 17:43:38.442 [main notice] starting initial scan for 08
2018-08-12 17:43:38.576 [bus notice] new master 03, master count 2
2018-08-12 17:43:38.576 [bus notice] scan 08: ;Vaillant;recoV;0217;0203
2018-08-12 17:43:38.576 [update notice] store 08 ident: done
2018-08-12 17:43:38.576 [update notice] sent scan-read scan.08  QQ=31: Vaillant;recoV;0217;0203
2018-08-12 17:43:38.577 [bus notice] scan 08: ;Vaillant;recoV;0217;0203
2018-08-12 17:43:38.653 [main error] unable to load scan config 08: no file from vaillant with prefix 08 matches ID "recov", SW0217, HW0203
2018-08-12 17:43:38.653 [main error] initial scan failed: ERR: element not found


die Datei existiert aber!

pi@OSPI:~ $ ls -l /etc/ebusd/vaillant/
insgesamt 120
-rw-r--r-- 1 pi pi  3317 Aug  5 16:08 08.bai.csv
-rw-r--r-- 1 pi pi  1958 Aug  5 16:08 08.recov.csv
-rw-r--r-- 1 pi pi 22168 Aug  5 16:08 15.470.csv
-rw-r--r-- 1 pi pi  1990 Aug  5 16:08 38.v32.csv
-rw-r--r-- 1 pi pi 17010 Aug  5 16:08 bai.308523.inc
-rw-r--r-- 1 pi pi   620 Aug  5 16:08 broadcast.csv
-rw-r--r-- 1 pi pi   245 Aug  5 16:08 currentservice.inc
-rw-r--r-- 1 pi pi   527 Aug  5 16:08 errors.inc
-rw-r--r-- 1 pi pi   738 Aug  5 16:08 hcmode.inc
-rw-r--r-- 1 pi pi   301 Aug  5 16:08 hwcmode.inc
-rw-r--r-- 1 pi pi   409 Aug  5 16:08 mcmode.inc
-rw-r--r-- 1 pi pi   316 Aug  5 16:08 quick.inc
-rw-r--r-- 1 pi pi   238 Aug  5 16:08 roomtempoffset.inc
-rw-r--r-- 1 pi pi   792 Aug  5 16:08 scan.csv
-rw-r--r-- 1 pi pi  2379 Aug  5 16:08 _templates.csv
-rw-r--r-- 1 pi pi   709 Aug  5 16:08 tempsetpoints.inc
-rw-r--r-- 1 pi pi   647 Aug  5 16:08 timercc.inc
-rw-r--r-- 1 pi pi   677 Aug  5 16:08 timercool.inc
-rw-r--r-- 1 pi pi   633 Aug  5 16:08 timerhc.inc
-rw-r--r-- 1 pi pi   647 Aug  5 16:08 timerhwc.inc
-rw-r--r-- 1 pi pi   979 Aug  5 16:08 timer.inc


wer hat jetze Recht ??

welchen Grund könnte er haben die Datei nicht zu finden??

MfG Maik