49_SSCam: Fragen, Hinweise, Neuigkeiten und mehr rund um dieses Modul

Begonnen von DS_Starter, 14 Dezember 2015, 16:19:08

Vorheriges Thema - Nächstes Thema

SeppiDeluxe

#2250
Hallo Heiko,

habe heute ein wenig Zeit investiert und mit DSM 7 probiert. Vor einigen Tagen lief es kurz aktuell bekomme ich es nicht mehr zum Laufen.  Testen mit simu_SVSversion bringt nur unterschiedliche Fehler zwischen 103 / 400. Der 400 mit User oder Passwort falsch geht nicht habe X mal neu angelegt und über die Oberfläche (DSM) erfolgreich probiert. Verbose 5 bring leider keine Klarheit.

Im Zentrum bleibt scheinbar die API und wie die unter DSM7 angesteuert wird. Kann ich ggf. noch Infos liefern, damit du Vermutungen anstellen kannst?

Danke Sebastian

PS: Device habe ich inzwischen komplett neu angelegt

2021.03.20 16:41:33 2: SeppiSurvi - WARNING - add "sscam" to attribute "iconpath" of FHEMWEB device "WEB" to get the SSCam control icons
2021.03.20 16:41:33 4: SeppiSurvi - ####################################################
2021.03.20 16:41:33 4: SeppiSurvi - ###    start cam operation gethomemodestate
2021.03.20 16:41:33 4: SeppiSurvi - ####################################################
2021.03.20 16:41:33 4: SeppiSurvi - --- Start getApiSites ---
2021.03.20 16:41:33 5: SeppiSurvi - HTTP-Call will be done with httptimeout-Value: 20 s
2021.03.20 16:41:33 4: SeppiSurvi - API imported:
$VAR1 = {
          'EVENT' => {
                       'NAME' => 'SYNO.SurveillanceStation.Event'
                     },
          'AUTH' => {
                      'NAME' => 'SYNO.API.Auth'
                    },
          'PTZ' => {
                     'NAME' => 'SYNO.SurveillanceStation.PTZ'
                   },
          'PRESET' => {
                        'NAME' => 'SYNO.SurveillanceStation.PTZ.Preset'
                      },
          'SNAPSHOT' => {
                          'NAME' => 'SYNO.SurveillanceStation.SnapShot'
                        },
          'SVSINFO' => {
                         'NAME' => 'SYNO.SurveillanceStation.Info'
                       },
          'CAM' => {
                     'NAME' => 'SYNO.SurveillanceStation.Camera'
                   },
          'INFO' => {
                      'VER' => 1,
                      'PATH' => 'query.cgi',
                      'NAME' => 'SYNO.API.Info'
                    },
          'VIDEOSTM' => {
                          'NAME' => 'SYNO.SurveillanceStation.VideoStreaming'
                        },
          'VIDEOSTMS' => {
                           'NAME' => 'SYNO.SurveillanceStation.VideoStream'
                         },
          'STM' => {
                     'NAME' => 'SYNO.SurveillanceStation.Stream'
                   },
          'EXTREC' => {
                        'NAME' => 'SYNO.SurveillanceStation.ExternalRecording'
                      },
          'HMODE' => {
                       'NAME' => 'SYNO.SurveillanceStation.HomeMode'
                     },
          'REC' => {
                     'NAME' => 'SYNO.SurveillanceStation.Recording'
                   },
          'LOG' => {
                     'NAME' => 'SYNO.SurveillanceStation.Log'
                   },
          'AUDIOSTM' => {
                          'NAME' => 'SYNO.SurveillanceStation.AudioStream'
                        },
          'CAMEVENT' => {
                          'NAME' => 'SYNO.SurveillanceStation.Camera.Event'
                        },
          'EXTEVT' => {
                        'NAME' => 'SYNO.SurveillanceStation.ExternalEvent'
                      }
        };


2021.03.20 16:41:33 4: SeppiSurvi - Call-Out now: http://surveillance.intranet.lan:5000/webapi/query.cgi?api=SYNO.API.Info&method=Query&version=1&query=SYNO.SurveillanceStation.Event,SYNO.API.Auth,SYNO.SurveillanceStation.PTZ,SYNO.SurveillanceStation.PTZ.Preset,SYNO.SurveillanceStation.SnapShot,SYNO.SurveillanceStation.Info,SYNO.SurveillanceStation.Camera,SYNO.API.Info,SYNO.SurveillanceStation.VideoStreaming,SYNO.SurveillanceStation.VideoStream,SYNO.SurveillanceStation.Stream,SYNO.SurveillanceStation.ExternalRecording,SYNO.SurveillanceStation.HomeMode,SYNO.SurveillanceStation.Recording,SYNO.SurveillanceStation.Log,SYNO.SurveillanceStation.AudioStream,SYNO.SurveillanceStation.Camera.Event,SYNO.SurveillanceStation.ExternalEvent
2021.03.20 16:41:33 3: SeppiSurvi - Polling now: 16:41:33 , next Polling: 16:45:03
2021.03.20 16:41:34 5: SeppiSurvi - JSON returned: $VAR1 = {
          'success' => bless( do{\(my $o = 1)}, 'JSON::PP::Boolean' ),
          'data' => {
                      'SYNO.SurveillanceStation.SnapShot' => {
                                                               'minVersion' => 1,
                                                               'requestFormat' => 'JSON',
                                                               'maxVersion' => 1,
                                                               'path' => 'entry.cgi'
                                                             },
                      'SYNO.SurveillanceStation.Recording' => {
                                                                'requestFormat' => 'JSON',
                                                                'maxVersion' => 6,
                                                                'path' => 'entry.cgi',
                                                                'minVersion' => 1
                                                              },
                      'SYNO.API.Auth' => {
                                           'maxVersion' => 7,
                                           'path' => 'entry.cgi',
                                           'minVersion' => 1
                                         },
                      'SYNO.SurveillanceStation.PTZ' => {
                                                          'minVersion' => 1,
                                                          'requestFormat' => 'JSON',
                                                          'path' => 'entry.cgi',
                                                          'maxVersion' => 6
                                                        },
                      'SYNO.SurveillanceStation.ExternalEvent' => {
                                                                    'maxVersion' => 1,
                                                                    'requestFormat' => 'JSON',
                                                                    'path' => 'entry.cgi',
                                                                    'minVersion' => 1
                                                                  },
                      'SYNO.SurveillanceStation.VideoStream' => {
                                                                  'minVersion' => 1,
                                                                  'path' => 'SurveillanceStation/videoStreaming.cgi',
                                                                  'maxVersion' => 1
                                                                },
                      'SYNO.SurveillanceStation.PTZ.Preset' => {
                                                                 'maxVersion' => 1,
                                                                 'requestFormat' => 'JSON',
                                                                 'path' => 'entry.cgi',
                                                                 'minVersion' => 1
                                                               },
                      'SYNO.API.Info' => {
                                           'maxVersion' => 1,
                                           'requestFormat' => 'JSON',
                                           'path' => 'entry.cgi',
                                           'minVersion' => 1
                                         },
                      'SYNO.SurveillanceStation.HomeMode' => {
                                                               'path' => 'entry.cgi',
                                                               'requestFormat' => 'JSON',
                                                               'maxVersion' => 1,
                                                               'minVersion' => 1
                                                             },
                      'SYNO.SurveillanceStation.Log' => {
                                                          'minVersion' => 1,
                                                          'requestFormat' => 'JSON',
                                                          'path' => 'entry.cgi',
                                                          'maxVersion' => 3
                                                        },
                      'SYNO.SurveillanceStation.AudioStream' => {
                                                                  'maxVersion' => 2,
                                                                  'path' => 'SurveillanceStation/audioStreaming.cgi',
                                                                  'minVersion' => 1
                                                                },
                      'SYNO.SurveillanceStation.Camera' => {
                                                             'minVersion' => 1,
                                                             'requestFormat' => 'JSON',
                                                             'path' => 'entry.cgi',
                                                             'maxVersion' => 9
                                                           },
                      'SYNO.SurveillanceStation.Camera.Event' => {
                                                                   'minVersion' => 1,
                                                                   'maxVersion' => 1,
                                                                   'requestFormat' => 'JSON',
                                                                   'path' => 'entry.cgi'
                                                                 },
                      'SYNO.SurveillanceStation.VideoStreaming' => {
                                                                     'minVersion' => 1,
                                                                     'requestFormat' => 'JSON',
                                                                     'maxVersion' => 1,
                                                                     'path' => 'entry.cgi'
                                                                   },
                      'SYNO.SurveillanceStation.Info' => {
                                                           'minVersion' => 1,
                                                           'requestFormat' => 'JSON',
                                                           'path' => 'entry.cgi',
                                                           'maxVersion' => 8
                                                         },
                      'SYNO.SurveillanceStation.Event' => {
                                                            'minVersion' => 1,
                                                            'path' => 'entry.cgi',
                                                            'requestFormat' => 'JSON',
                                                            'maxVersion' => 5
                                                          },
                      'SYNO.SurveillanceStation.Stream' => {
                                                             'minVersion' => 1,
                                                             'path' => 'entry.cgi',
                                                             'requestFormat' => 'JSON',
                                                             'maxVersion' => 1
                                                           },
                      'SYNO.SurveillanceStation.ExternalRecording' => {
                                                                        'minVersion' => 1,
                                                                        'requestFormat' => 'JSON',
                                                                        'maxVersion' => 3,
                                                                        'path' => 'entry.cgi'
                                                                      }
                    }
        };

2021.03.20 16:41:34 4: SeppiSurvi - installed SVS version is:
2021.03.20 16:41:34 4: SeppiSurvi - ------- Begin of adaption section -------
2021.03.20 16:41:34 4: SeppiSurvi - ------- End of adaption section -------
2021.03.20 16:41:34 4: SeppiSurvi - ------- Begin of simulation section -------
2021.03.20 16:41:34 4: SeppiSurvi - SVS version 815xxxx-simu will be simulated
2021.03.20 16:41:34 4: SeppiSurvi - Version of SYNO.SurveillanceStation.Camera adapted to: 9
2021.03.20 16:41:34 4: SeppiSurvi - Version of SYNO.API.Auth adapted to: 6
2021.03.20 16:41:34 4: SeppiSurvi - Version of SYNO.SurveillanceStation.ExternalRecording adapted to: 3
2021.03.20 16:41:34 4: SeppiSurvi - Version of SYNO.SurveillanceStation.PTZ adapted to: 5
2021.03.20 16:41:34 4: SeppiSurvi - ------- End of simulation section -------
2021.03.20 16:41:34 4: SeppiSurvi - API completed after retrieval and adaption:
$VAR1 = {
          'REC' => {
                     'VER' => 6,
                     'PATH' => 'entry.cgi',
                     'NAME' => 'SYNO.SurveillanceStation.Recording',
                     'MOD' => 'no'
                   },
          'LOG' => {
                     'PATH' => 'entry.cgi',
                     'NAME' => 'SYNO.SurveillanceStation.Log',
                     'MOD' => 'no',
                     'VER' => 3
                   },
          'AUDIOSTM' => {
                          'PATH' => 'SurveillanceStation/audioStreaming.cgi',
                          'NAME' => 'SYNO.SurveillanceStation.AudioStream',
                          'MOD' => 'no',
                          'VER' => 2
                        },
          'CAMEVENT' => {
                          'MOD' => 'no',
                          'NAME' => 'SYNO.SurveillanceStation.Camera.Event',
                          'PATH' => 'entry.cgi',
                          'VER' => 1
                        },
          'EXTEVT' => {
                        'MOD' => 'no',
                        'NAME' => 'SYNO.SurveillanceStation.ExternalEvent',
                        'PATH' => 'entry.cgi',
                        'VER' => 1
                      },
          'PARSET' => 1,
          'STM' => {
                     'PATH' => 'entry.cgi',
                     'NAME' => 'SYNO.SurveillanceStation.Stream',
                     'MOD' => 'no',
                     'VER' => 1
                   },
          'EXTREC' => {
                        'PATH' => 'entry.cgi',
                        'NAME' => 'SYNO.SurveillanceStation.ExternalRecording',
                        'MOD' => 'yes',
                        'VER' => '3'
                      },
          'HMODE' => {
                       'MOD' => 'no',
                       'NAME' => 'SYNO.SurveillanceStation.HomeMode',
                       'PATH' => 'entry.cgi',
                       'VER' => 1
                     },
          'VIDEOSTMS' => {
                           'VER' => 1,
                           'MOD' => 'no',
                           'NAME' => 'SYNO.SurveillanceStation.VideoStream',
                           'PATH' => 'SurveillanceStation/videoStreaming.cgi'
                         },
          'EVENT' => {
                       'VER' => 5,
                       'MOD' => 'no',
                       'NAME' => 'SYNO.SurveillanceStation.Event',
                       'PATH' => 'entry.cgi'
                     },
          'AUTH' => {
                      'MOD' => 'yes',
                      'NAME' => 'SYNO.API.Auth',
                      'PATH' => 'entry.cgi',
                      'VER' => '6'
                    },
          'PTZ' => {
                     'VER' => '5',
                     'PATH' => 'entry.cgi',
                     'NAME' => 'SYNO.SurveillanceStation.PTZ',
                     'MOD' => 'yes'
                   },
          'PRESET' => {
                        'VER' => 1,
                        'PATH' => 'entry.cgi',
                        'NAME' => 'SYNO.SurveillanceStation.PTZ.Preset',
                        'MOD' => 'no'
                      },
          'SNAPSHOT' => {
                          'VER' => 1,
                          'MOD' => 'no',
                          'NAME' => 'SYNO.SurveillanceStation.SnapShot',
                          'PATH' => 'entry.cgi'
                        },
          'SVSINFO' => {
                         'VER' => 8,
                         'MOD' => 'no',
                         'NAME' => 'SYNO.SurveillanceStation.Info',
                         'PATH' => 'entry.cgi'
                       },
          'CAM' => {
                     'MOD' => 'yes',
                     'NAME' => 'SYNO.SurveillanceStation.Camera',
                     'PATH' => 'entry.cgi',
                     'VER' => '9'
                   },
          'INFO' => {
                      'VER' => 1,
                      'MOD' => 'no',
                      'NAME' => 'SYNO.API.Info',
                      'PATH' => 'entry.cgi'
                    },
          'VIDEOSTM' => {
                          'PATH' => 'entry.cgi',
                          'NAME' => 'SYNO.SurveillanceStation.VideoStreaming',
                          'MOD' => 'no',
                          'VER' => 1
                        }
        };

2021.03.20 16:41:34 4: SeppiSurvi - ####################################################
2021.03.20 16:41:34 4: SeppiSurvi - ###    start cam operation gethomemodestate
2021.03.20 16:41:34 4: SeppiSurvi - ####################################################
2021.03.20 16:41:34 3: SeppiSurvi - no session ID found - get new one
2021.03.20 16:41:34 4: SeppiSurvi - --- Begin Function login ---
2021.03.20 16:41:34 4: SeppiSurvi - Credentials read from RAM: camadm ********
2021.03.20 16:41:34 4: SeppiSurvi - HTTP-Call login will be done with httptimeout-Value: 60 s
2021.03.20 16:41:34 4: SeppiSurvi - Call-Out now: http://surveillance.intranet.lan:5000/webapi/entry.cgi?api=SYNO.API.Auth&version=6&method=Login&account=camadm&passwd=*****&session=SurveillanceStation&format="sid"
2021.03.20 16:41:39 5: SeppiSurvi - JSON decoded: $VAR1 = {
          'success' => bless( do{\(my $o = 0)}, 'JSON::PP::Boolean' ),
          'error' => {
                       'code' => 400
                     }
        };

2021.03.20 16:41:39 3: SeppiSurvi - Login of User camadm unsuccessful. Code: 400 - Invalid user or password - try again
2021.03.20 16:41:39 4: SeppiSurvi - --- Begin Function login ---
2021.03.20 16:41:39 4: SeppiSurvi - Credentials read from RAM: camadm ********
2021.03.20 16:41:39 4: SeppiSurvi - HTTP-Call login will be done with httptimeout-Value: 60 s
2021.03.20 16:41:39 4: SeppiSurvi - Call-Out now: http://surveillance.intranet.lan:5000/webapi/entry.cgi?api=SYNO.API.Auth&version=6&method=Login&account=camadm&passwd=*****&session=SurveillanceStation&format="sid"
2021.03.20 16:41:45 5: SeppiSurvi - JSON decoded: $VAR1 = {
          'success' => bless( do{\(my $o = 0)}, 'JSON::PP::Boolean' ),
          'error' => {
                       'code' => 400
                     }
        };

2021.03.20 16:41:45 3: SeppiSurvi - Login of User camadm unsuccessful. Code: 400 - Invalid user or password - try again
2021.03.20 16:41:45 4: SeppiSurvi - --- Begin Function login ---
2021.03.20 16:41:45 4: SeppiSurvi - Credentials read from RAM: camadm ********
2021.03.20 16:41:45 4: SeppiSurvi - HTTP-Call login will be done with httptimeout-Value: 60 s
2021.03.20 16:41:45 4: SeppiSurvi - Call-Out now: http://surveillance.intranet.lan:5000/webapi/entry.cgi?api=SYNO.API.Auth&version=6&method=Login&account=camadm&passwd=*****&session=SurveillanceStation&format="sid"
2021.03.20 16:41:51 5: SeppiSurvi - JSON decoded: $VAR1 = {
          'error' => {
                       'code' => 400
                     },
          'success' => bless( do{\(my $o = 0)}, 'JSON::PP::Boolean' )
        };

2021.03.20 16:41:51 3: SeppiSurvi - Login of User camadm unsuccessful. Code: 400 - Invalid user or password - try again
2021.03.20 16:41:51 4: SeppiSurvi - --- Begin Function login ---
2021.03.20 16:41:51 4: SeppiSurvi - Credentials read from RAM: camadm ********
2021.03.20 16:41:51 2: SeppiSurvi - ERROR - Login or privilege of user camadm unsuccessful
2021.03.20 16:41:52 4: SeppiSurvi - Credentials read from RAM: camadm ********
2021.03.20 16:41:52 5: SeppiSurvi - The stored value of SMTPcredentials is empty
2021.03.20 16:41:52 4: SeppiSurvi - ####################################################
2021.03.20 16:41:52 4: SeppiSurvi - ###    start cam operation getsvslog
2021.03.20 16:41:52 4: SeppiSurvi - ####################################################
2021.03.20 16:41:52 4: SeppiSurvi - get logList with params: severity => , limit => 1, matchcode =>
2021.03.20 16:41:52 3: SeppiSurvi - no session ID found - get new one
2021.03.20 16:41:52 4: SeppiSurvi - --- Begin Function login ---
2021.03.20 16:41:52 4: SeppiSurvi - Credentials read from RAM: camadm ********
2021.03.20 16:41:52 4: SeppiSurvi - HTTP-Call login will be done with httptimeout-Value: 60 s
2021.03.20 16:41:52 4: SeppiSurvi - Call-Out now: http://surveillance.intranet.lan:5000/webapi/entry.cgi?api=SYNO.API.Auth&version=6&method=Login&account=camadm&passwd=*****&session=SurveillanceStation&format="sid"
2021.03.20 16:41:54 3: SeppiSurvi - Polling now: 16:41:54 , next Polling: 16:45:24
2021.03.20 16:41:58 5: SeppiSurvi - JSON decoded: $VAR1 = {
          'error' => {
                       'code' => 400
                     },
          'success' => bless( do{\(my $o = 0)}, 'JSON::PP::Boolean' )
        };

DS_Starter

Hallo Sebastian,

der Fehler scheint eindeutig, der Login mit dem gegebenen User/Passwort klappt nicht.
Setz die doch mal das Attr showPassInLog.
Dann wird dein Passwort im Log mit ausgegeben und du kannst checken ob es so ist wie es sein sollte.
Sonderzeichen etc. besonders beachten.

Vllt. gibts dann schon einen Aha Effekt.

LG,
Heiko
ESXi@NUC+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

DS_Starter

Noch ein Tipp, du verwendest session=SurveillanceStation.
Du kannst es auch mal mit session=DSM testen wenn es den camadm im DSM gibt was wohl der Fall ist.
ESXi@NUC+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

SeppiDeluxe

Wertvolle Tipps und in der richtigen Reihenfolge... ich denke die Kombi aus DMS Session, 8.1.5XXX Simu und nicht 8.2.0 haben den Ausschlag gegeben.

Danke und dir noch einen schönes Rest WE

FHEM_Starter

Hallo Heiko,

zunächst ein grosses Lob für dieses tolle Modul und den Support, den Du erbringst.

Zur Zeit versuche ich, eine Lampe in FHEM bei Bewegungserkennung zu schalten, scheitere aber daran. Im WIKI ist sehr schön beschrieben was dazu zu tun ist, jedoch gibt es in den Einstellungen bei den Aktionsregeln keinen Eintrag mehr für "Externes Gerät". Dafür gibt es jetzt den Eintrag "Webhook".

In diesem habe ich unzähliche Versuche unternommen, bekomme aber bei der Testübermittlung immer den Hinweis "Test fehlgeschlagen. Prüfen Sie die Einstellungen ...".

Was mache ich falsch? Und wenn Du etwas findest, könntest Du das WIKI für andere User updaten?

Danke und ein schönes Wochenende,
Wolfgang

DS_Starter

Hallo Wolfgang,

hast Recht, Synology hat offensichtlich hier mal ein Update vorgenommen. "Webhook" ist jetzt richtig. Ich passe das Wiki an.
Die Funktion an sich klappt aber noch. Man muß den Befehl hinten nur ergänzen, z.B.:

fhem.myds.me:8083/fhem?cmd=set%20eg.wz.vitrine%20off&XHR=1

Passe ich im Wiki auch an.
Dann klappt sowohl der Test als auch die Funktion als solche.
Solltest du immer noch Probleme haben, bräuchten wir mal den Kommandostring den du benutzt und ein List von dem FHEMWEB Device welches du als Zugang (hinter dem entsprechenden Port) benutzt.

LG und schönes WE,
Heiko

ESXi@NUC+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

FHEM_Starter

wow  :)

alles im grünen Bereich. Funktioniert wie gewünscht, Support erstklassig und super schnell.
Wenn Du uns jetzt noch einen Tipp gibst, was der Parameter ist und er bewirkt ...

Danke nochmals,
Wolfgang

DS_Starter

Zitat
Wenn Du uns jetzt noch einen Tipp gibst, was der Parameter ist und er bewirkt ...
Das ist Webtechnik und bedeutet dass ein XMLHttpRequest ausgelöst wird.
-> https://de.wikipedia.org/wiki/XMLHttpRequest

Damit funktioniert der Webhook weil die Kommunikation zwischen den Webservices es offensichtlich benötigt.
Bin aber nicht so der HTTP-Experte.  ;)

LG
ESXi@NUC+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

SouzA

Hallo,

ich kann nicht mehr den Homemode umschalten... Bekomme jetzt den Fehler:
Message not found for error code: 119
Seit wann dies so ist, entzieht sich meiner Kenntnis. Habe schon lange nicht mehr in den Log geguckt ;)
Kann jemand etwas mit dieser Fehlermeldung anfangen?

Thx und bis denn
SouzA
Raspi 4, EnOcean TCM310 USB, HM-MOD-UART-USB, Jeelink, hue, AMAD, fully, FRITZBOX, Signalbot, VIERA, Presence BT/Mac, TPLink, Gassistant, Shelly, fhempy, ZigBee

DS_Starter

Moin,

also grundsätzlich klappt das reibungslos, gerade getestet.

ZitatKann jemand etwas mit dieser Fehlermeldung anfangen?
Die Meldung besagt dass die SVS den Return Code 119 zurück gegeben hat. Dieser Code ist aber (mir) bisher unbekannt und deswegen dafür kein Text hinterlegt.

Schalte mal bitte verbose 4 oder 5 im Device ein und poste den output.

Grüße,
Heiko
ESXi@NUC+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

SouzA

Zitat von: DS_Starter am 29 April 2021, 09:14:23
Moin,

also grundsätzlich klappt das reibungslos, gerade getestet.
Die Meldung besagt dass die SVS den Return Code 119 zurück gegeben hat. Dieser Code ist aber (mir) bisher unbekannt und deswegen dafür kein Text hinterlegt.

Schalte mal bitte verbose 4 oder 5 im Device ein und poste den output.

Grüße,
Heiko
Moin,
danke für die Rückmeldung.
2021.04.29 11:18:59 4: SDS - ####################################################
2021.04.29 11:18:59 4: SDS - ###    start cam operation sethomemode         
2021.04.29 11:18:59 4: SDS - ####################################################
2021.04.29 11:18:59 4: SDS - --- Start sethomemode ---
2021.04.29 11:18:59 5: SDS - HTTP-Call will be done with httptimeout-Value: 20 s
2021.04.29 11:18:59 4: SDS - Call-Out now: http://192.168.XXX.XXX:5000/webapi/entry.cgi?api="SYNO.SurveillanceStation.HomeMode"&version="1"&method=Switch&on=false&_sid="XXXX"
2021.04.29 11:18:59 5: SDS - JSON returned: $VAR1 = {
          'success' => bless( do{\(my $o = 0)}, 'JSON::PP::Boolean' ),
          'error' => {
                       'code' => 119
                     }
        };

2021.04.29 11:18:59 2: SDS - ERROR - Operation sethomemode not successful. Cause: 119 - Message not found for error code: 119


Bei den großen "X"'en hab ich die Angaben "geschwärzt".

Thx und bis denn
SouzA
Raspi 4, EnOcean TCM310 USB, HM-MOD-UART-USB, Jeelink, hue, AMAD, fully, FRITZBOX, Signalbot, VIERA, Presence BT/Mac, TPLink, Gassistant, Shelly, fhempy, ZigBee

DS_Starter

Das sieht mir nach einem Rechteproblem aus.

Hast du das Attr session gesetzt ? Wenn ja wie ?

Setze bitte auch ein

get <> scanVirgin

ab und poste den output (verbose 5).
ESXi@NUC+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

SouzA

Zitat von: DS_Starter am 29 April 2021, 11:51:19
Das sieht mir nach einem Rechteproblem aus.

Hast du das Attr session gesetzt ? Wenn ja wie ?

Setze bitte auch ein

get <> scanVirgin

ab und poste den output (verbose 5).

Hi,
hast ne PM. Wollte das hier nicht alles öffentlich Posten.
Was mir aufgefallen ist, dass zwei verschiedene SID aufgeführt werden.
(1x mit XXXX ersetzt das andere mal mit YYYY)

Erkennst du was?

Bis denn
SouzA
Raspi 4, EnOcean TCM310 USB, HM-MOD-UART-USB, Jeelink, hue, AMAD, fully, FRITZBOX, Signalbot, VIERA, Presence BT/Mac, TPLink, Gassistant, Shelly, fhempy, ZigBee

DS_Starter

Ja, das sieht erstmal gut aus.

ZitatWas mir aufgefallen ist, dass zwei verschiedene SID aufgeführt werden.
(1x mit XXXX ersetzt das andere mal mit YYYY)
Ja, so soll es sein. Die alte SID wird abgemeldet und eine neue geholt.

Du verwendest session=SurveillanceStation.

Schau mal in der SVS nach ob der verwendete User auch das Recht hat den Homemode umzuschalten.
Du findest das unter Benutzer-> Berechtigung bearbeiten -> Erweitert -> Home Mode.

Ich vermute dort fehlen die Häkchen.
ESXi@NUC+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

SouzA

Zitat von: DS_Starter am 29 April 2021, 14:19:16
Ja, das sieht erstmal gut aus.
Ja, so soll es sein. Die alte SID wird abgemeldet und eine neue geholt.

Du verwendest session=SurveillanceStation.

Schau mal in der SVS nach ob der verwendete User auch das Recht hat den Homemode umzuschalten.
Du findest das unter Benutzer-> Berechtigung bearbeiten -> Erweitert -> Home Mode.

Ich vermute dort fehlen die Häkchen.
Hi,
User gecheckt... Alle Haken da.
Aber da du jetzt Hinweise auf den User gegeben hast, habe ich die Credentials noch mal neu eingegeben.
Funktioniert wieder... :D

Warum & weshalb sich da was geändert hat???!!!!

Herzlichen Dank!

Bis denn
SouzA
Raspi 4, EnOcean TCM310 USB, HM-MOD-UART-USB, Jeelink, hue, AMAD, fully, FRITZBOX, Signalbot, VIERA, Presence BT/Mac, TPLink, Gassistant, Shelly, fhempy, ZigBee