[RESOLU] Domoticz Offline

Posez ici vos questions d'utilisation, de configuration de DomoticZ, de bugs, de conseils sur le logiciel lui même dans son utilisation et son paramétrage.
Des forums spécifiques sont ouverts ci-dessous pour regrouper les différents sujets.
Chrominator
Messages : 1042
Inscription : 19 déc. 2015, 07:29
Localisation : France

Re: Domoticz Offline

Message par Chrominator »

yuripa42 a écrit : 17 juin 2020, 15:56
Read more at: https://www.geekland-leblog.fr/controle ... -domoticz/#! /bin/sh
### BEGIN INIT INFO
# Provides: domoticz
# Required-Start: $network $remote_fs $syslog $time
C'était vraiment dans domoticz.sh ce que j'ai mis en gras ?
Pas étonnant que ton pi ait du mal à l'exécuter.

La première ligne est le shebang #!/bin/sh seul, normalement.

Bon, tu aurais gagné du temps en étant plus attentif, pas grave.
Un bon frein vaut mieux que deux sparadraps.

Ubuntu 24.04.3 LTS - Domoticz 2025.1 (build 16782)
Pentium G3220T 2.6GHz - 4Go DDR3
RFXtrx433 USB Ver Pro1/1043
Z-Stick GEN5 Version: 1.6-1136-g07ea22bb
Rtl433 RTL-SDR receiver
RFLink Gateway
Zigbee SLZB-06
Keros
Messages : 6638
Inscription : 23 juil. 2019, 20:57

Re: [RESOLU] Domoticz Offline

Message par Keros »

yuripa42 a écrit : 17 juin 2020, 13:12 J'ai essayer de supprimer ce que j'ai écris dans le fichier domoticz.sh, mais rien n'y fait.
Pour info, j'utilise aussi les GPIO. J'avais mis des lignes dans mon domoticz.sh mais aujourd'hui elles sont toutes commentées. J'ai utilisé une autre solution pour définir les GPIO. Ça fait un an maintenant et je n'ai pas garder la trace de ce que j'avais fait :roll: . Mais je l'avais trouvé ici ou sur le net.
Comment bien utiliser le forum : Poser une question, Mettre un script, un fichier, une image ou des logs
Mes petits guides : Débuter en programmation, Le débogage, Le choix de matériel, Les sauvegardes
Ma présentation - Mes Tutos
yuripa42
Messages : 7
Inscription : 17 juin 2020, 13:02

Re: Domoticz Offline

Message par yuripa42 »

Chrominator a écrit : 18 juin 2020, 20:43
yuripa42 a écrit : 17 juin 2020, 15:56
Read more at: https://www.geekland-leblog.fr/controle ... -domoticz/#! /bin/sh
### BEGIN INIT INFO
# Provides: domoticz
# Required-Start: $network $remote_fs $syslog $time
C'était vraiment dans domoticz.sh ce que j'ai mis en gras ?
Pas étonnant que ton pi ait du mal à l'exécuter.

La première ligne est le shebang #!/bin/sh seul, normalement.

Bon, tu aurais gagné du temps en étant plus attentif, pas grave.


Effectivement, j'ai eu le même problème après réinstallation.
J'ai supprimé ce que tu as mis en gras puis reboot et nickel ça fonctionne.

Merci en tout cas.
Jpp
Messages : 64
Inscription : 30 déc. 2017, 22:22

Re: [RESOLU] Domoticz Offline

Message par Jpp »

Bonjour,

J'ai un problème identique avec Domoticz offline. J'ai suivit la discussion mais je ne trouve pas de solution. Les relances stop et start ne fonctionnent pas.

Voici mon domoticz.sh (sous /home/domoticz/).

Si qq peut m'aide merci d'avance.


Code : Tout sélectionner

#! /bin/sh
### BEGIN INIT INFO
# Provides:          domoticz
# Required-Start:    $network $remote_fs $syslog $time
# Required-Stop:     $network $remote_fs $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Home Automation System
# Description:       This daemon will start the Domoticz Home Automation System
### END INIT INFO

# Do NOT "set -e"

PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin
DESC="Domoticz Home Automation System"
NAME=domoticz
USERNAME=pi
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME

DAEMON=/home/$USERNAME/domoticz/$NAME
DAEMON_ARGS="-daemon"
#DAEMON_ARGS="$DAEMON_ARGS -daemonname $NAME -pidfile $PIDFILE"
DAEMON_ARGS="$DAEMON_ARGS -www 8080"
DAEMON_ARGS="$DAEMON_ARGS -sslwww 443"
#DAEMON_ARGS="$DAEMON_ARGS -log /tmp/domoticz.txt"
#DAEMON_ARGS="$DAEMON_ARGS -syslog"

# Exit if the package is not installed
[ -x "$DAEMON" ] || exit 0

# Load the VERBOSE setting and other rcS variables
. /lib/init/vars.sh

# Define LSB log_* functions.
# Depend on lsb-base (>= 3.2-14) to ensure that this file is present
# and status_of_proc is working.
. /lib/lsb/init-functions

pidof_domoticz() {
    # if there is actually a domoticz process whose pid is in PIDFILE,
    # print it and return 0.
    if [ -e "$PIDFILE" ]; then
        if pidof domoticz | tr ' ' '\n' | grep -w $(cat $PIDFILE); then
            return 0
        fi
    fi
    return 1
}

#
# Function that starts the daemon/service
#
do_start()
{
        # Return
        #   0 if daemon has been started
        #   1 if daemon was already running
        #   2 if daemon could not be started
        start-stop-daemon --chuid $USERNAME --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \
                || return 1
        start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \
                $DAEMON_ARGS \
                || return 2
}

#
# Function that stops the daemon/service
#
do_stop()
{
        # Return
        #   0 if daemon has been stopped
        #   1 if daemon was already stopped
        #   2 if daemon could not be stopped
        #   other if a failure occurred
        start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME
        RETVAL="$?"
        [ "$RETVAL" = 2 ] && return 2
        # Wait for children to finish too if this is a daemon that forks
        # and if the daemon is only ever run from this initscript.
        # If the above conditions are not satisfied then add some other code
        # that waits for the process to drop all resources that could be
        # needed by services started subsequently.  A last resort is to
        # sleep for some time.
        start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON
        [ "$?" = 2 ] && return 2
        # Many daemons don't delete their pidfiles when they exit.
        rm -f $PIDFILE
        return "$RETVAL"
}

case "$1" in
  start)
        [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
        do_start
        case "$?" in
                0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
                2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
        esac
        ;;
  stop)
        [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME"
        do_stop
        case "$?" in
                0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
                2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
        esac
        ;;
  status)
        status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?
        ;;
  reload)
        log_daemon_msg "Reloading $DESC" "$NAME"
        PID=$(pidof_domoticz) || true
        if [ "${PID}" ]; then
                kill -HUP $PID
                log_end_msg 0
        else
                log_end_msg 1
        fi
        ;;
  restart)
        log_daemon_msg "Restarting $DESC" "$NAME"
        do_stop
        case "$?" in
          0|1)
                do_start
                case "$?" in
                        0) log_end_msg 0 ;;
                        1) log_end_msg 1 ;; # Old process is still running
                        *) log_end_msg 1 ;; # Failed to start
                esac
                ;;
          *)
                # Failed to stop
                log_end_msg 1
                ;;
        esac
        ;;
  *)
        echo "Usage: $SCRIPTNAME {start|stop|status|restart|reload}" >&2
        exit 3
        ;;
esac

:
Dernière modification par Keros le 30 déc. 2021, 17:10, modifié 1 fois.
Raison : Ajout des blasises code
RPi3 sous Dabian Bullseye, Domoticz version 2023.2
PiDrive, RFXcom 433 MHz, Creasol DomBus23, Teleinfo Linky (historique)
6 kWc PV avec micro-onduleurs ENPHASE et ENVOY/ENPHASE
PAC Panasonic
Keros
Messages : 6638
Inscription : 23 juil. 2019, 20:57

Re: [RESOLU] Domoticz Offline

Message par Keros »

Tu es sur une nouvelle installation ? Sur quelle version de Raspberry Pi OS ?

Tu as essayé de vider le cache ?
Comment bien utiliser le forum : Poser une question, Mettre un script, un fichier, une image ou des logs
Mes petits guides : Débuter en programmation, Le débogage, Le choix de matériel, Les sauvegardes
Ma présentation - Mes Tutos
Jpp
Messages : 64
Inscription : 30 déc. 2017, 22:22

Re: [RESOLU] Domoticz Offline

Message par Jpp »

Merci de me répondre.

Non ce n'est pas une nouvelle installation (2 ans)

Voici ma version de Rasbian :
Linux raspberrypi 4.19.97-v7+ #1294 SMP Thu Jan 30 13:15:58 GMT 2020 armv7l GNU/Linux

J'ai vidé le cache.

Par contre j'ai installé il y a quelques jours le Plugin : sysfs-switches.
Je ne sais pas le désinstaller proprement pour voir.

Voilà ce que j'ai par un domoticz.sh status :


pi@raspberrypi:~ $ sudo /etc/init.d/domoticz.sh status

● domoticz.service - SYSV: This daemon will start the Domoticz Home Automation System
Loaded: loaded (/etc/init.d/domoticz.sh; generated)
Active: failed (Result: exit-code) since Thu 2021-12-30 23:53:46 CET; 13min ago
Docs: man:systemd-sysv-generator(8)
Process: 1594 ExecStart=/etc/init.d/domoticz.sh start (code=exited, status=203/EXEC)

déc. 30 23:53:46 raspberrypi systemd[1]: Starting SYSV: This daemon will start the Domoticz Home Automation System...
déc. 30 23:53:46 raspberrypi systemd[1]: domoticz.service: Control process exited, code=exited, status=203/EXEC
déc. 30 23:53:46 raspberrypi systemd[1]: domoticz.service: Failed with result 'exit-code'.
déc. 30 23:53:46 raspberrypi systemd[1]: Failed to start SYSV: This daemon will start the Domoticz Home Automation System.
RPi3 sous Dabian Bullseye, Domoticz version 2023.2
PiDrive, RFXcom 433 MHz, Creasol DomBus23, Teleinfo Linky (historique)
6 kWc PV avec micro-onduleurs ENPHASE et ENVOY/ENPHASE
PAC Panasonic
Chrominator
Messages : 1042
Inscription : 19 déc. 2015, 07:29
Localisation : France

Re: [RESOLU] Domoticz Offline

Message par Chrominator »

Le plus explicite dans ce cas, c'est de lancer domoticz à partir de la ligne de commande dans son répertoire d'installation ;
Le log s'affiche à l'écran et on verra sur quoi ça butte.
Un bon frein vaut mieux que deux sparadraps.

Ubuntu 24.04.3 LTS - Domoticz 2025.1 (build 16782)
Pentium G3220T 2.6GHz - 4Go DDR3
RFXtrx433 USB Ver Pro1/1043
Z-Stick GEN5 Version: 1.6-1136-g07ea22bb
Rtl433 RTL-SDR receiver
RFLink Gateway
Zigbee SLZB-06
Jpp
Messages : 64
Inscription : 30 déc. 2017, 22:22

Re: [RESOLU] Domoticz Offline

Message par Jpp »

Voilà avec le début du log.
Malheureusement les choses en rouge d'apparaissent pas lorsque je colle le log ici.

Code : Tout sélectionner

pi@raspberrypi:~/domoticz $ ./domoticz
2021-12-31 09:18:09.423  Status: Domoticz V2021.1 (c)2012-2021 GizMoCuz
2021-12-31 09:18:09.424  Status: Build Hash: 8547c5b7e, Date: 2021-04-17 17:29:11
2021-12-31 09:18:09.424  Status: Startup Path: /home/pi/domoticz/
2021-12-31 09:18:09.653  Sunrise: 08:16:00 SunSet: 17:04:00
2021-12-31 09:18:09.654  Day length: 08:48:00 Sun at south: 12:40:00
2021-12-31 09:18:09.654  Civil twilight start: 07:42:00 Civil twilight end: 17:38:00
2021-12-31 09:18:09.654  Nautical twilight start: 07:05:00 Nautical twilight end: 18:15:00
2021-12-31 09:18:09.654  Astronomical twilight start: 06:29:00 Astronomical twilight end: 18:51:00
2021-12-31 09:18:10.964  Status: PluginSystem: Started, Python version '3.7.3'.
2021-12-31 09:18:11.112  Active notification Subsystems: pushbullet (1/13)
2021-12-31 09:18:11.172  Status: WebServer(HTTP) started on address: :: with port 8080
2021-12-31 09:18:11.270  Error: WebServer(SSL) startup failed on address 0.0.0.0 with port: 443: bind: Permission denied
2021-12-31 09:18:11.270  Error: WebServer(SSL) check privileges for opening ports below 1024
2021-12-31 09:18:11.276  Starting shared server on: :::6144
2021-12-31 09:18:11.278  Status: RxQueue: queue worker started...
2021-12-31 09:18:11.278  Status: TCPServer: shared server started...
2021-12-31 09:18:13.278  Status: RFXCOM: Worker started...
2021-12-31 09:18:13.278  Status: ENVOY: Worker started...
2021-12-31 09:18:13.330  Status: Conso: (Conso) Entering work loop.
2021-12-31 09:18:13.330  Conso hardware started.
2021-12-31 09:18:13.330  Status: Conso: (Conso) Started.
2021-12-31 09:18:13.331  Status: Prod: (Prod) Entering work loop.
2021-12-31 09:18:13.331  Prod hardware started.
2021-12-31 09:18:13.331  Status: Prod: (Prod) Started.
2021-12-31 09:18:13.332  Status: GPIO - Plugin: (GPIO - Plugin) Entering work loop.
2021-12-31 09:18:13.332  GPIO - Plugin hardware started.
2021-12-31 09:18:13.332  Status: GPIO - Plugin: (GPIO - Plugin) Started.
2021-12-31 09:18:13.332  Status: NotificationSystem: thread started...
2021-12-31 09:18:13.333  Status: EventSystem: reset all events...
2021-12-31 09:18:13.371  Status: EventSystem: reset all device statuses...
2021-12-31 09:18:13.756  Status: PluginSystem: 3 plugins started.
2021-12-31 09:18:13.831  Status: Z-Stick GEN5: OpenZWave: using config in: /home/pi/domoticz/Config/
2021-12-31 09:18:14.173 Always, OpenZwave Version 1.6-1911-gc6a420ef Starting Up
2021-12-31 09:18:14.283  Status: RFXCOM: Using serial port: /dev/ttyUSB0
2021-12-31 09:18:14.410 Always, Using Language Localization 
2021-12-31 09:18:14.554  Status: Z-Stick GEN5: OpenZWave: Starting...
2021-12-31 09:18:14.554  Status: Z-Stick GEN5: OpenZWave: Version: 1.6-1911-gc6a420ef
2021-12-31 09:18:14.859  
2021-12-31 09:18:14.935  subtype           = Interface Response
Sequence nbr      = 2
response on cmnd  = Get Status
Transceiver type  = 433.92MHz
Firmware version  = 1022
Firmware type     = Ext
Hardware version  = 1.3
Undec             off
X10               enabled
ARC               enabled
AC                enabled
HomeEasy EU       disabled
Meiantech/Atlantic disabled
Oregon Scientific enabled
ATI/Cartelectronic disabled
Visonic           enabled
Mertik            disabled
AD                disabled
Hideki            disabled
La Crosse         disabled
Legrand           disabled
MSG4Reserved5     disabled
BlindsT0          disabled
BlindsT1          disabled
AE                enabled
RUBiCSON          enabled
FineOffset        enabled
Lighting4         enabled
Conrad RSL        disabled
ByronSX           disabled
IMAGINTRONIX      enabled
KEELOQ            disabled
Home Confort      disabled
2021-12-31 09:18:15.338  Status: Conso: (Conso) Initialized version 2.4.2, author 'Barberousse'
2021-12-31 09:18:15.419  Conso: (Conso) Heures creuses mises à 1h50-7h50 12h50-14h50
2021-12-31 09:18:15.421  Conso: (Conso) Consommation à montrer sur le tableau de bord mis à value_day / peak_day
2021-12-31 09:18:15.424  Conso: (Conso) Nombre de jours à récupérer pour la vue par heures mis à 7
2021-12-31 09:18:15.426  Conso: (Conso) Nombre de jours à récupérer pour les autres vues mis à 7
2021-12-31 09:18:15.428  Conso: (Conso) Nombre de jours à récupérer pour le calcul du pic mis à 1
2021-12-31 09:18:15.430  Conso: (Conso) Debug mis à 1
2021-12-31 09:18:15.431  Status: Conso: (Conso) Log dans le fichier /tmp/DomoticzLinky_2021_12_31_09_18_15_ucndkuow.log pour le matériel Conso avec la version 2.4.2 du plugin
2021-12-31 09:18:15.635  Conso: (Conso) Cache chargé depuis le disque
2021-12-31 09:18:16.406  Conso: (Conso) Si vous ne voyez pas assez de données dans la vue par heures, augmentez le paramètre Log des capteurs qui se trouve dans Réglages / Paramètres / Historique des logs
2021-12-31 09:18:16.933  Status: GPIO - Plugin: (GPIO - Plugin) Initialized version 1.0.0, author 'dnpwwo'
2021-12-31 09:18:17.165  Status: Python EventSystem: Initalizing event module.
2021-12-31 09:18:17.165  Status: EventSystem: Started
2021-12-31 09:18:17.166  Status: EventSystem: Queue thread started...
2021-12-31 09:18:17.425  Status: Prod: (Prod) Initialized version 2.4.2, author 'Barberousse'
2021-12-31 09:18:17.432  Prod: (Prod) Heures creuses désactivées
2021-12-31 09:18:17.432  Prod: (Prod) Consommation à montrer sur le tableau de bord mis à value_day / peak_day
2021-12-31 09:18:17.433  Prod: (Prod) Nombre de jours à récupérer pour la vue par heures mis à 7
2021-12-31 09:18:17.434  Prod: (Prod) Nombre de jours à récupérer pour les autres vues mis à 7
2021-12-31 09:18:17.434  Prod: (Prod) Nombre de jours à récupérer pour le calcul du pic mis à 1
2021-12-31 09:18:17.435  Prod: (Prod) Debug mis à 1
2021-12-31 09:18:17.435  Status: Prod: (Prod) Log dans le fichier /tmp/DomoticzLinky_2021_12_31_09_18_17_4cr_4o64.log pour le matériel Prod avec la version 2.4.2 du plugin
2021-12-31 09:18:17.445  Prod: (Prod) Pas de cache trouvé sur le disque
2021-12-31 09:18:17.446  Prod: (Prod) Si vous ne voyez pas assez de données dans la vue par heures, augmentez le paramètre Log des capteurs qui se trouve dans Réglages / Paramètres / Historique des logs
2021-12-31 09:18:17.450  GPIO - Plugin: (GPIO - Plugin) Parameter is: '-1'
2021-12-31 09:18:17.450  GPIO - Plugin: (GPIO - Plugin) Debug logging mask set to: PYTHON PLUGIN QUEUE IMAGE DEVICE CONNECTION MESSAGE 
2021-12-31 09:18:17.451  GPIO - Plugin: (GPIO - Plugin) 'HardwareID':'12'
2021-12-31 09:18:17.451  GPIO - Plugin: (GPIO - Plugin) 'HomeFolder':'/home/pi/domoticz/plugins/Domoticz-GPIO-Plugin/'
2021-12-31 09:18:17.451  GPIO - Plugin: (GPIO - Plugin) 'StartupFolder':'/home/pi/domoticz/'
2021-12-31 09:18:17.451  GPIO - Plugin: (GPIO - Plugin) 'UserDataFolder':'/home/pi/domoticz/'
2021-12-31 09:18:17.451  GPIO - Plugin: (GPIO - Plugin) 'Database':'/home/pi/domoticz/domoticz.db'
2021-12-31 09:18:17.451  GPIO - Plugin: (GPIO - Plugin) 'Language':'fr'
2021-12-31 09:18:17.451  GPIO - Plugin: (GPIO - Plugin) 'Version':'1.0.0'
2021-12-31 09:18:17.451  GPIO - Plugin: (GPIO - Plugin) 'Author':'dnpwwo'
2021-12-31 09:18:17.451  GPIO - Plugin: (GPIO - Plugin) 'Name':'GPIO - Plugin'
2021-12-31 09:18:17.451  GPIO - Plugin: (GPIO - Plugin) 'Port':'0'
2021-12-31 09:18:17.451  GPIO - Plugin: (GPIO - Plugin) 'Key':'RPiGPIO'
2021-12-31 09:18:17.451  GPIO - Plugin: (GPIO - Plugin) 'Mode1':'39:NO'
2021-12-31 09:18:17.452  GPIO - Plugin: (GPIO - Plugin) 'Mode2':'1,2,3,4'
2021-12-31 09:18:17.452  GPIO - Plugin: (GPIO - Plugin) 'Mode3':'200'
2021-12-31 09:18:17.452  GPIO - Plugin: (GPIO - Plugin) 'Mode5':'10'
2021-12-31 09:18:17.452  GPIO - Plugin: (GPIO - Plugin) 'Mode6':'-1'
2021-12-31 09:18:17.452  GPIO - Plugin: (GPIO - Plugin) 'DomoticzVersion':'2021.1'
2021-12-31 09:18:17.452  GPIO - Plugin: (GPIO - Plugin) 'DomoticzHash':'8547c5b7e'
2021-12-31 09:18:17.452  GPIO - Plugin: (GPIO - Plugin) 'DomoticzBuildTime':'2021-04-17 17:29:11'
2021-12-31 09:18:17.452  GPIO - Plugin: (GPIO - Plugin) Device count: 1
2021-12-31 09:18:17.452  GPIO - Plugin: (GPIO - Plugin) Device:           39 - ID: 1377, Name: 'GPIO - Plugin - Output 39', nValue: 0, sValue: ''
2021-12-31 09:18:17.452  GPIO - Plugin: (GPIO - Plugin) Device ID:       '1377'
2021-12-31 09:18:17.452  GPIO - Plugin: (GPIO - Plugin) Device Name:     'GPIO - Plugin - Output 39'
2021-12-31 09:18:17.452  GPIO - Plugin: (GPIO - Plugin) Device nValue:    0
2021-12-31 09:18:17.452  GPIO - Plugin: (GPIO - Plugin) Device sValue:   ''
2021-12-31 09:18:17.452  GPIO - Plugin: (GPIO - Plugin) Device LastLevel: 0
2021-12-31 09:18:17.453  GPIO - Plugin: (GPIO - Plugin) Pushing 'PollIntervalDirective' on to queue
2021-12-31 09:18:17.453  GPIO - Plugin: (GPIO - Plugin) RPi.GPIO imported, Version: 0.7.0, Raspberry Pi board revision: 3
2021-12-31 09:18:17.453  Error: GPIO - Plugin: (GPIO - Plugin) Exception in onStart, processing Output Pins
2021-12-31 09:18:17.453  Error: GPIO - Plugin: (GPIO - Plugin) Exception detail: 'The channel sent is invalid on a Raspberry Pi'
2021-12-31 09:18:17.453  Error: GPIO - Plugin: (GPIO - Plugin) 'onStart' failed 'ValueError'.
2021-12-31 09:18:17.453  Error: GPIO - Plugin: (GPIO - Plugin) ----> Line 88 in '/home/pi/domoticz/plugins/Domoticz-GPIO-Plugin/plugin.py', function onStart
2021-12-31 09:18:17.453  GPIO - Plugin: (GPIO - Plugin) Local context:
2021-12-31 09:18:17.453  GPIO - Plugin: (GPIO - Plugin) ----> 'Devices'              '{39: <Domoticz.Device object at 0x6a074e00>}'
2021-12-31 09:18:17.453  GPIO - Plugin: (GPIO - Plugin) ----> 'Domoticz'             '<module 'Domoticz' (built-in)>'
2021-12-31 09:18:17.454  GPIO - Plugin: (GPIO - Plugin) ----> 'GPIO'                 '<module 'RPi.GPIO' from '/usr/lib/python3/dist-packages/RPi/GPIO/__init__.py'>'
2021-12-31 09:18:17.454  GPIO - Plugin: (GPIO - Plugin) ----> 'Images'               '{}'
2021-12-31 09:18:17.454  GPIO - Plugin: (GPIO - Plugin) ----> 'Parameters'           '{'HardwareID': 12, 'HomeFolder': '/home/pi/domoticz/plugins/Domoticz-GPIO-Plugin/', 'StartupFolder': '/home/pi/domoticz/', 'UserDataFolder': '/home/pi/domoticz/', 'WebRoot': '', 'Database': '/home/pi/domoticz/domoticz.db', 'Language': 'fr', 'Version': '1.0.0', 'Author': 'dnpwwo', 'Name': 'GPIO - Plugin', 'Address': '', 'Port': '0', 'SerialPort': '', 'Username': '', 'Password': '', 'Key': 'RPiGPIO', 'Mode1': '39:NO', 'Mode2': '1,2,3,4', 'Mode3': '200', 'Mode4': '', 'Mode5': '10', 'Mode6': '-1', 'DomoticzVersion': '2021.1', 'DomoticzHash': '8547c5b7e', 'DomoticzBuildTime': '2021-04-17 17:29:11'}'
2021-12-31 09:18:17.454  GPIO - Plugin: (GPIO - Plugin) ----> 'Settings'             '{'DB_Version': '148', 'Title': 'St Ismier', 'LightHistoryDays': '30', 'MeterDividerEnergy': '1000', 'MeterDividerGas': '100', 'MeterDividerWater': '100', 'RandomTimerFrame': '15', 'ElectricVoltage': '230', 'CM113DisplayType': '0', '5MinuteHistoryDays': '7', 'SensorTimeout': '60', 'SensorTimeoutNotification': '0', 'UseAutoUpdate': '1', 'UseAutoBackup': '1', 'CostEnergy': '2149', 'CostEnergyT2': '2149', 'CostEnergyR1': '800', 'CostEnergyR2': '800', 'CostGas': '6218', 'CostWater': '16473', 'UseEmailInNotifications': '1', 'SendErrorNotifications': '0', 'EmailPort': '25', 'EmailAsAttachment': '0', 'DoorbellCommand': '0', 'SmartMeterType': '0', 'EnableTabLights': '1', 'EnableTabTemp': '1', 'EnableTabWeather': '1', 'EnableTabUtility': '1', 'EnableTabCustom': '1', 'EnableTabScenes': '1', 'EnableTabFloorplans': '0', 'NotificationSensorInterval': '43200', 'NotificationSwitchInterval': '0', 'RemoteSharedPort': '6144', 'Language': 'fr', 'DashboardType': '0', 'MobileType': '0', 'WindUnit': '0', 'TempUnit': '0', 'WeightUnit': '0', 'SecStatus': '0', 'SecOnDelay': '30', 'AuthenticationMethod': '0', 'ReleaseChannel': '0', 'RaspCamParams': '-w 800 -h 600 -t 1', 'UVCParams': '-S80 -B128 -C128 -G80 -x800 -y600 -q100', 'AcceptNewHardware': '1', 'ZWavePollInterval': '60', 'ZWaveEnableDebug': '0', 'ZWaveNetworkKey': '0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10', 'ZWaveEnableNightlyNetworkHeal': '0', 'BatteryLowNotification': '0', 'AllowWidgetOrdering': '1', 'ActiveTimerPlan': '0', 'HideDisabledHardwareSensors': '1', 'EnableEventScriptSystem': '1', 'EventSystemLogFullURL': '1', 'DisableDzVentsSystem': '0', 'DzVentsLogLevel': '3', 'LogEventScriptTrigger': '1', 'WebTheme': 'default', 'FloorplanPopupDelay': '750', 'FloorplanFullscreenMode': '0', 'FloorplanAnimateZoom': '1', 'FloorplanShowSensorValues': '1', 'FloorplanShowSwitchValues': '0', 'FloorplanShowSceneNames': '1', 'FloorplanRoomColour': 'Blue', 'FloorplanActiveOpacity': '25', 'FloorplanInactiveOpacity': '5', 'TempHome': '20', 'TempAway': '15', 'TempComfort': '22.0', 'DegreeDaysBaseTemperature': '18.0', 'HTTPURL': 'aHR0cHM6Ly93d3cuc29tZWdhdGV3YXkuY29tL3B1c2h1cmwucGhwP3VzZXJuYW1lPSNGSUVMRDEmcGFzc3dvcmQ9I0ZJRUxEMiZhcGlrZXk9I0ZJRUxEMyZmcm9tPSNGSUVMRDQmdG89I1RPJm1lc3NhZ2U9I01FU1NBR0U=', 'HTTPPostContentType': 'YXBwbGljYXRpb24vanNvbg==', 'ShowUpdateEffect': '0', 'ShortLogInterval': '5', 'SendErrorsAsNotification': '0', 'IFTTTEnabled': '0', 'EmailEnabled': '1', 'Location': '45.255169;5.819578', 'ClickatellEnabled': '0', 'ClickatellAPI': '0', 'ClickatellTo': '0', 'EmailFrom': '0', 'EmailServer': '0', 'EmailTo': '0', 'EmailPassword': '0', 'EmailUsername': '0', 'FCMEnabled': '0', 'HTTPEnabled': '0', 'HTTPField1': '0', 'HTTPField2': '0', 'HTTPField3': '0', 'HTTPField4': '0', 'HTTPPostData': '0', 'HTTPPostHeaders': '0', 'HTTPTo': '0', 'KodiIPAddress': '224.0.0.1', 'KodiEnabled': '0', 'KodiPort': '9777', 'KodiTimeToLive': '5', 'LmsPlayerMac': '0', 'LmsDuration': '5', 'LmsEnabled': '0', 'ProwlAPI': '0', 'ProwlEnabled': '0', 'PushALotAPI': '0', 'PushALotEnabled': '0', 'PushbulletAPI': 'o.tTkZce1Jd1IOcy6Mh8xQYgQ7anmAypP6', 'PushbulletEnabled': '1', 'PushoverAPI': '0', 'PushoverUser': '0', 'PushoverEnabled': '0', 'PushsaferAPI': '0', 'PushsaferImage': '0', 'PushsaferEnabled': '0', 'TelegramAPI': '0', 'TelegramChat': '0', 'TelegramEnabled': '0', 'WebUserName': 'RG9tb0pQ', 'WebPassword': '498cc96caed3cb04b5cff44c7c2f7342', 'WebLocalNetworks': '0', 'WebRemoteProxyIPs': '0', 'SecPassword': 'd41d8cd98f00b204e9800998ecf8427e', 'ProtectionPassword': 'd41d8cd98f00b204e9800998ecf8427e', 'MyDomoticzUserId': '0', 'MyDomoticzSubsystems': '0', 'OneWireSensorPollPeriod': '0', 'OneWireSwitchPollPeriod': '0', 'IFTTTAPI': '0', 'MaxElectricPower': '6000', 'ClickatellFrom': '0', 'ZWaveAeotecBlinkEnabled': '0', 'ZWaveAssumeAwake': '1'}'
2021-12-31 09:18:17.455  (GPIO - Plugin) Processing 'PollIntervalDirective' message
2021-12-31 09:18:17.455  GPIO - Plugin: (GPIO - Plugin) Heartbeat interval set to: 10.
2021-12-31 09:18:18.663  ENVOY: General/kWh (Enphase kWh Production)
2021-12-31 09:18:18.665  ENVOY: P1 Smart Meter (Enphase Production kWh Total)
2021-12-31 09:18:18.670  ENVOY: General/kWh (Enphase kWh Consumption)
2021-12-31 09:18:18.670  ENVOY: P1 Smart Meter (Enphase Consumption kWh Total)
2021-12-31 09:18:18.676  ENVOY: General/kWh (Enphase kWh Net Consumption)
2021-12-31 09:18:18.677  ENVOY: P1 Smart Meter (Enphase Net Consumption kWh Total)
2021-12-31 09:18:20.842 Error, ERROR: Cannot open serial port /dev/ttyACM0. Error code 2
2021-12-31 09:18:20.842 Always, 
2021-12-31 09:18:20.842 Always, Dumping queued log messages
2021-12-31 09:18:20.842 Always, 
2021-12-31 09:18:20.842 Always, 
2021-12-31 09:18:20.842 Always, End of queued log message dump
2021-12-31 09:18:20.843 Always, 
2021-12-31 09:18:20.843 Error, ERROR: Failed to open serial port /dev/ttyACM0
2021-12-31 09:18:20.843 Always, 
2021-12-31 09:18:20.843 Always, Dumping queued log messages
2021-12-31 09:18:20.843 Always, 
2021-12-31 09:18:20.843 Always, 
2021-12-31 09:18:20.843 Always, End of queued log message dump
2021-12-31 09:18:20.843 Always, 
2021-12-31 09:18:23.015  GPIO - Plugin: (GPIO - Plugin) Pushing 'onHeartbeatCallback' on to queue
2021-12-31 09:18:23.061  Status: Prod: (Prod) Récupération des données avec l'historique court
2021-12-31 09:18:23.066  (GPIO - Plugin) Processing 'onHeartbeatCallback' message
2021-12-31 09:18:23.329  Status: Conso: (Conso) Récupération des données avec l'historique court
2021-12-31 09:18:23.335  Status: Conso: (Conso) Traitement pour le point de livraison 19394500712389
2021-12-31 09:18:23.365  GPIO - Plugin: (GPIO - Plugin) Message handler 'onHeartbeat' not callable, ignored.
2021-12-31 09:18:25.205  RFXCOM: Energy (OWL)
2021-12-31 09:18:25.247  Error: Prod: (Prod) Connectez-vous à l'adresse https://enedis.domoticz.russandol.pro/device?code=ENHP-BDPU pour lancer la demande de consentement avec le code ENHP-BDPU
2021-12-31 09:18:25.843 Error, ERROR: Cannot open serial port /dev/ttyACM0. Error code 2
2021-12-31 09:18:25.843 Always,
Dernière modification par Keros le 31 déc. 2021, 13:30, modifié 1 fois.
Raison : Ajout des balises code pour les logs
RPi3 sous Dabian Bullseye, Domoticz version 2023.2
PiDrive, RFXcom 433 MHz, Creasol DomBus23, Teleinfo Linky (historique)
6 kWc PV avec micro-onduleurs ENPHASE et ENVOY/ENPHASE
PAC Panasonic
Chrominator
Messages : 1042
Inscription : 19 déc. 2015, 07:29
Localisation : France

Re: [RESOLU] Domoticz Offline

Message par Chrominator »

Lance-le sous root avec sudo, là on a des problèmes d'autorisation qui n'apparaissent peut-être pas normalement.
Un bon frein vaut mieux que deux sparadraps.

Ubuntu 24.04.3 LTS - Domoticz 2025.1 (build 16782)
Pentium G3220T 2.6GHz - 4Go DDR3
RFXtrx433 USB Ver Pro1/1043
Z-Stick GEN5 Version: 1.6-1136-g07ea22bb
Rtl433 RTL-SDR receiver
RFLink Gateway
Zigbee SLZB-06
Jpp
Messages : 64
Inscription : 30 déc. 2017, 22:22

Re: [RESOLU] Domoticz Offline

Message par Jpp »

Voilà lancé avec sudo.

Voici trois bloques du log avec des erreurs :



Code : Tout sélectionner

2021-12-31 09:42:06.192  GPIO - Plugin: (GPIO - Plugin) Device sValue:   ''
2021-12-31 09:42:06.192  GPIO - Plugin: (GPIO - Plugin) Device LastLevel: 0
2021-12-31 09:42:06.192  GPIO - Plugin: (GPIO - Plugin) Pushing 'PollIntervalDirective' on to queue
2021-12-31 09:42:06.193  GPIO - Plugin: (GPIO - Plugin) RPi.GPIO imported, Version: 0.7.0, Raspberry Pi board revision: 3
2021-12-31 09:42:06.193  Error: GPIO - Plugin: (GPIO - Plugin) Exception in onStart, processing Output Pins
2021-12-31 09:42:06.193  Error: GPIO - Plugin: (GPIO - Plugin) Exception detail: 'The channel sent is invalid on a Raspberry Pi'
2021-12-31 09:42:06.193  Error: GPIO - Plugin: (GPIO - Plugin) 'onStart' failed 'ValueError'.
2021-12-31 09:42:06.193  Error: GPIO - Plugin: (GPIO - Plugin) ----> Line 88 in '/home/pi/domoticz/plugins/Domoticz-GPIO-Plugin/plugin.py', function onStart
2021-12-31 09:42:06.193  GPIO - Plugin: (GPIO - Plugin) Local context:
2021-12-31 09:42:06.193  GPIO - Plugin: (GPIO - Plugin) ----> 'Devices'              '{39: <Domoticz.Device object at 0x68e1e320>}'
2021-12-31 09:42:06.193  GPIO - Plugin: (GPIO - Plugin) ----> 'Domoticz'             '<module 'Domoticz' (built-in)>'
2021-12-31 09:42:06.193  GPIO - Plugin: (GPIO - Plugin) ----> 'GPIO'                 '<module 'RPi.GPIO' from '/usr/lib/python3/dist-packages/RPi/GPIO/__init__.py'>'


ByronSX disabled
IMAGINTRONIX enabled
KEELOQ disabled
Home Confort disabled

Code : Tout sélectionner

2021-12-31 09:42:07.573 Error, ERROR: Cannot open serial port /dev/ttyACM0. Error code 2
2021-12-31 09:42:07.574 Always, 
2021-12-31 09:42:07.574 Always, Dumping queued log messages
2021-12-31 09:42:07.574 Always, 
2021-12-31 09:42:07.574 Always, 
2021-12-31 09:42:07.574 Always, End of queued log message dump
2021-12-31 09:42:07.574 Always, 
2021-12-31 09:42:07.574 Error, ERROR: Failed to open serial port /dev/ttyACM0
2021-12-31 09:42:07.574 Always, 
2021-12-31 09:42:07.574 Always, Dumping queued log messages
2021-12-31 09:42:07.574 Always, 
2021-12-31 09:42:07.574 Always, 
2021-12-31 09:42:07.574 Always, End of queued log message dump
2021-12-31 09:42:07.574 Always, 
2021-12-31 09:42:10.056  ENVOY: General/kWh (Enphase kWh Production)
2021-12-31 09:42:10.058  ENVOY: P1 Smart Meter (Enphase Production kWh Total)
2021-12-31 09:42:10.066  ENVOY: General/kWh (Enphase kWh Consumption)
2021-12-31 09:42:10.068  ENVOY: P1 Smart Meter (Enphase Consumption kWh Total)
2021-12-31 09:42:10.076  ENVOY: General/kWh (Enphase kWh Net Consumption)
2021-12-31 09:42:10.077  ENVOY: P1 Smart Meter (Enphase Net Consumption kWh Total)
2021-12-31 09:42:12.575 Error, ERROR: Cannot open serial port /dev/ttyACM0. Error code 2
2021-12-31 09:42:12.575 Always, 
2021-12-31 09:42:12.575 Always, Dumping queued log messages
2021-12-31 09:42:12.575 Always, 
2021-12-31 09:42:12.575 Always, 
2021-12-31 09:42:12.575 Always, End of queued log message dump
2021-12-31 09:42:12.575 Always, 
2021-12-31 09:42:12.575 Error, ERROR: Failed to open serial port /dev/ttyACM0
2021-12-31 09:42:12.575 Always, 
2021-12-31 09:42:12.575 Always, Dumping queued log messages
2021-12-31 09:42:12.575 Always, 



2021-12-31 09:42:14.135  Status: Conso: (Conso) Traitement pour le point de livraison 19394500712389
2021-12-31 09:42:15.208  Status: Conso: (Conso) Prochaine connexion : 2022-01-01 08:11:14
2021-12-31 09:42:15.398  Error: Prod: (Prod) Connectez-vous à l'adresse https://enedis.domoticz.russandol.pro/device?code=XVFG-USNJ pour lancer la demande de consentement avec le code XVFG-USNJ
2021-12-31 09:42:17.576 Error, ERROR: Cannot open serial port /dev/ttyACM0. Error code 2
2021-12-31 09:42:17.576 Always, 
2021-12-31 09:42:17.576 Always, Dumping queued log messages
2021-12-31 09:42:17.576 Always, 
2021-12-31 09:42:17.576 Always, 
2021-12-31 09:42:17.577 Always, End of queued log message dump
2021-12-31 09:42:17.577 Always, 
2021-12-31 09:42:17.577 Error, ERROR: Failed to open serial port /dev/ttyACM0
2021-12-31 09:42:17.577 Always, 
2021-12-31 09:42:17.577 Always, Dumping queued log messages
2021-12-31 09:42:17.577 Always, 
2021-12-31 09:42:17.577 Always, 
2021-12-31 09:42:17.577 Always, End of queued log message dump
2021-12-31 09:42:17.577 Always, 
2021-12-31 09:42:22.578 Error, ERROR: Cannot open serial port /dev/ttyACM0. Error code 2
2021-12-31 09:42:22.578 Always, 
2021-12-31 09:42:22.578 Always, Dumping queued log messages
2021-12-31 09:42:22.578 Always,
Dernière modification par Keros le 31 déc. 2021, 13:31, modifié 1 fois.
Raison : Ajout des balises code pour les logs
RPi3 sous Dabian Bullseye, Domoticz version 2023.2
PiDrive, RFXcom 433 MHz, Creasol DomBus23, Teleinfo Linky (historique)
6 kWc PV avec micro-onduleurs ENPHASE et ENVOY/ENPHASE
PAC Panasonic
Répondre