[Gelöst] externen PC via Fhem steuern, zBSp Programme starten

Begonnen von Hackstall, 26 Juli 2020, 21:31:02

Vorheriges Thema - Nächstes Thema

amenomade

Und warum machst Du es nicht wie beschrieben über den dafür vorgesehenen Knopf in der Menüleiste, der noch mehr Information (wie z.B. Registry Keys) liefert?
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

Hackstall

Hallo,

Verstehe ich nicht.

Der Inhalt, den ich hier angehängt habe, ist produziert von dem gewuenschren Knopf in der Menueleiste von WinControl-GUI auf dem PC.

Gruß Andreas


Hackstall

Hallo aber ich dachte die IP Adressen wären nicht so interessant.
Da es ja eh nur lokale sind anbei nochmal das volllständige log ohne Modifikationen:

Ich muss sagen dass ich zum Test mal auf ein anderes FHEM System gewechselt bin


My.Computer Informationen
[code]
My.Computer.OSFullName          = Microsoft Windows 10 Home
My.Computer.OSPlatform          = Win32NT
My.Computer.OSVersion           = 6.2.9200.0
My.Computer.Name                = PC-AK
My.Computer.Network.IsAvailable = True


GUI Registry Informationen HKEY_CURRENT_USER\Software\Michael Winkler\WinControl

EULA=1
update_auto=true
motion_difference=1000000
motion_quailty=1
motion_second=10
motion_changes=70
picture_framerate=15
picture_waitbefor=0
microphone_changes=10
tts_language=Microsoft Hedda Desktop
startscreen_hide=False
Server_ConnectPort=8183
speechquality=70
user_aktividletime=60
fhem_ssl=False
fhem_ignorwarning=True
fhem_ssl_ssl3=False
fhem_ssl_tls10=False
fhem_ssl_tls11=False
fhem_ssl_tls12=True
fhem_ip=192.168.0.33
fhem_devicename=KG.WzK.PC_AK_WIN10Connect
fhem_port=8083
fhem_url=fhem
GUI_windowstate=1
fhem_debugmode=False
fhem_benutzername=
fhem_benutzerkennwort=*********************
fhem_benutzercreate=PC-AKAndreas
update_fhemversion=1596485913
fhem_devicename_gui=WinConnect.PC-AK


GUI Log erste 50 Zeilen

04.08.2020 20:25:35 CONFIG: MS .Net       4.6 or later
04.08.2020 20:25:35 CONFIG: Version       0.0.27
04.08.2020 20:25:35 CONFIG: IPAdresse     192.168.0.33
04.08.2020 20:25:35 CONFIG: Port          8083
04.08.2020 20:25:35 CONFIG: URL           fhem
04.08.2020 20:25:35 CONFIG: CSRFTOKEN     
04.08.2020 20:25:35 CONFIG: Anmeldung     False
04.08.2020 20:25:35 CONFIG: Devicename    KG.WzK.PC_AK_WIN10Connect
04.08.2020 20:25:35 CONFIG: Idletime      60
04.08.2020 20:25:35 CONFIG: Speechquality 70
04.08.2020 20:25:35 CONFIG: Per. Interval 45000
04.08.2020 20:25:35 CONFIG: Run User      PC-AK\Andreas
04.08.2020 20:25:35 CONFIG: Service Aktiv False
04.08.2020 20:25:35 CONFIG: RunAsService  False
04.08.2020 20:25:35 CAMERA: Devicename = no device found
04.08.2020 20:25:35 CONFIG: PC IP 0       fe80::d4ad:27e8:19ca:9351%7
04.08.2020 20:25:35 CONFIG: PC IP 1       192.168.0.45
04.08.2020 20:25:35 AUDIO:  Devicename = 3 - LG TV
04.08.2020 20:25:35 MIC:    Devicename = no device found
04.08.2020 20:25:36 FHEM:   FHEM_ConnectCheck: FHEM Connect Port Check!
04.08.2020 20:25:36 FHEM:   FHEM_ConnectCheck:   FHEM SSL   = False
04.08.2020 20:25:36 FHEM:   FHEM_ConnectCheck:   FHEM SSL W = True
04.08.2020 20:25:36 FHEM:   FHEM_ConnectCheck:   FHEM IP    = 192.168.0.33
04.08.2020 20:25:36 FHEM:   FHEM_ConnectCheck:   FHEM Port  = 8083
04.08.2020 20:25:36 SERVER: wait for connection
04.08.2020 20:25:37 FHEM:   265,607 - CSRFTOKEN
04.08.2020 20:25:37 FHEM:   FHEM_ConnectCheck:   FHEM Check = OK
04.08.2020 20:25:37 FHEM:   31,248 - list KG.WzK.PC_AK_WIN10Connect Bereich = FHEM_IsDeviceAvalible
04.08.2020 20:25:37 FHEM:   INFO: FHEM Connected
04.08.2020 20:25:37 FHEM:   62,4953 - deletereading KG.WzK.PC_AK_WIN10Connect picture_dir
04.08.2020 20:25:37 FHEM:   62,4949 - deletereading KG.WzK.PC_AK_WIN10Connect file_dir
04.08.2020 20:25:37 FHEM:   15,6239 - list KG.WzK.PC_AK_WIN10Connect Bereich = Check_Services
04.08.2020 20:25:37 FHEM:   15,6242 - list KG.WzK.PC_AK_WIN10Connect Bereich = Check_Process
04.08.2020 20:25:37 CONFIG: Spracherkennung NICHT aktiviert
04.08.2020 20:25:37 CONFIG:   ERROR: C:\Apps\WinControl\grammar.xml
04.08.2020 20:25:38 FHEM:   FHEM_Readings_Delete start... Check_DriveInfo
04.08.2020 20:25:38 FHEM:   249,9829 - list KG.WzK.PC_AK_WIN10Connect Bereich = Check_DriveInfo
04.08.2020 20:25:38 FHEM:   15,6238 - deletereading KG.WzK.PC_AK_WIN10Connect drive_C_Format
04.08.2020 20:25:38 FHEM:   31,2479 - deletereading KG.WzK.PC_AK_WIN10Connect drive_C_Label
04.08.2020 20:25:38 FHEM:   46,8718 - deletereading KG.WzK.PC_AK_WIN10Connect drive_C_Space_AvailableFree
04.08.2020 20:25:38 FHEM:   93,7438 - deletereading KG.WzK.PC_AK_WIN10Connect drive_C_Space_Total
04.08.2020 20:25:38 FHEM:   46,8718 - deletereading KG.WzK.PC_AK_WIN10Connect drive_C_Space_Used
04.08.2020 20:25:38 FHEM:   107,6668 - deletereading KG.WzK.PC_AK_WIN10Connect drive_C_Type
04.08.2020 20:25:38 FHEM:   76,8791 - deletereading KG.WzK.PC_AK_WIN10Connect drive_E_Format
04.08.2020 20:25:38 FHEM:   46,8712 - deletereading KG.WzK.PC_AK_WIN10Connect drive_E_Label
04.08.2020 20:25:38 FHEM:   46,8722 - deletereading KG.WzK.PC_AK_WIN10Connect drive_E_Space_AvailableFree
04.08.2020 20:25:38 FHEM:   46,8724 - deletereading KG.WzK.PC_AK_WIN10Connect drive_E_Space_Total
04.08.2020 20:25:38 FHEM:   46,8708 - deletereading KG.WzK.PC_AK_WIN10Connect drive_E_Space_Used
04.08.2020 20:25:38 FHEM:   31,2477 - deletereading KG.WzK.PC_AK_WIN10Connect drive_E_Type
04.08.2020 20:25:38 FHEM:   46,8721 - deletereading KG.WzK.PC_AK_WIN10Connect drive_F_Format


GUI Log letzte 50 Zeilen

05.08.2020 10:04:16 SERVER: Request: /FHEM/POWERSTATE=ON;0.0.27;0
05.08.2020 10:04:16 TODO:   powerstate
05.08.2020 10:04:16 SERVER: wait for connection
05.08.2020 10:04:31 SERVER: client 192.168.0.33 connected by ip
05.08.2020 10:04:31 SERVER: Request: /FHEM/POWERSTATE=OFF;0.0.27;0
05.08.2020 10:04:31 TODO:   powerstate
05.08.2020 10:04:31 SERVER: wait for connection
05.08.2020 10:04:32 FHEM:   15,6245 - set KG.WzK.PC_AK_WIN10Connect on
05.08.2020 10:04:47 SERVER: client 192.168.0.33 connected by ip
05.08.2020 10:04:47 SERVER: Request: /FHEM/POWERSTATE=ON;0.0.27;0
05.08.2020 10:04:47 TODO:   powerstate
05.08.2020 10:04:47 SERVER: wait for connection
05.08.2020 10:05:01 FHEM:   0 - setreading KG.WzK.PC_AK_WIN10Connect os_RunTime_minutes 820
05.08.2020 10:05:02 SERVER: client 192.168.0.33 connected by ip
05.08.2020 10:05:02 SERVER: Request: /FHEM/POWERSTATE=OFF;0.0.27;0
05.08.2020 10:05:02 TODO:   powerstate
05.08.2020 10:05:02 SERVER: wait for connection
05.08.2020 10:05:02 FHEM:   0 - set KG.WzK.PC_AK_WIN10Connect on
05.08.2020 10:05:17 SERVER: client 192.168.0.33 connected by ip
05.08.2020 10:05:17 SERVER: Request: /FHEM/POWERSTATE=ON;0.0.27;0
05.08.2020 10:05:17 TODO:   powerstate
05.08.2020 10:05:17 SERVER: wait for connection
05.08.2020 10:05:32 SERVER: client 192.168.0.33 connected by ip
05.08.2020 10:05:32 SERVER: Request: /FHEM/POWERSTATE=OFF;0.0.27;0
05.08.2020 10:05:32 TODO:   powerstate
05.08.2020 10:05:32 SERVER: wait for connection
05.08.2020 10:05:32 FHEM:   15,6246 - set KG.WzK.PC_AK_WIN10Connect on
05.08.2020 10:05:47 SERVER: client 192.168.0.33 connected by ip
05.08.2020 10:05:47 SERVER: Request: /FHEM/POWERSTATE=ON;0.0.27;0
05.08.2020 10:05:47 TODO:   powerstate
05.08.2020 10:05:47 SERVER: wait for connection
05.08.2020 10:06:00 FHEM:   78,11 - setreading KG.WzK.PC_AK_WIN10Connect os_RunTime_minutes 821
05.08.2020 10:06:02 SERVER: client 192.168.0.33 connected by ip
05.08.2020 10:06:02 SERVER: Request: /FHEM/POWERSTATE=OFF;0.0.27;0
05.08.2020 10:06:02 TODO:   powerstate
05.08.2020 10:06:02 SERVER: wait for connection
05.08.2020 10:06:03 FHEM:   0 - set KG.WzK.PC_AK_WIN10Connect on
05.08.2020 10:06:10 FHEM:   0 - setreading KG.WzK.PC_AK_WIN10Connect user_aktiv true
05.08.2020 10:06:10 FHEM:   15,6234 - setreading KG.WzK.PC_AK_WIN10Connect memory_available 12.955
05.08.2020 10:06:17 SERVER: client 192.168.0.33 connected by ip
05.08.2020 10:06:17 SERVER: Request: /FHEM/POWERSTATE=ON;0.0.27;0
05.08.2020 10:06:17 TODO:   powerstate
05.08.2020 10:06:17 SERVER: wait for connection
05.08.2020 10:06:21 FHEM:   69,005 - setreading KG.WzK.PC_AK_WIN10Connect memory_available 12.619
05.08.2020 10:06:32 SERVER: client 192.168.0.33 connected by ip
05.08.2020 10:06:32 SERVER: Request: /FHEM/POWERSTATE=OFF;0.0.27;0
05.08.2020 10:06:32 TODO:   powerstate
05.08.2020 10:06:32 SERVER: wait for connection
05.08.2020 10:06:33 FHEM:   0 - set KG.WzK.PC_AK_WIN10Connect on



SERVICE Log erste 50 Zeilen

02.08.2020 16:43:35 CONFIG: MS .Net       4.6 or later
02.08.2020 16:43:35 CONFIG: Version       0.0.27
02.08.2020 16:43:35 CONFIG: IPAdresse     192.168.0.30
02.08.2020 16:43:35 CONFIG: Port          8083
02.08.2020 16:43:35 CONFIG: URL           fhem
02.08.2020 16:43:35 CONFIG: CSRFTOKEN     
02.08.2020 16:43:35 CONFIG: Anmeldung     False
02.08.2020 16:43:35 CONFIG: Devicename    Win10AKKeller
02.08.2020 16:43:35 CONFIG: Idletime      60
02.08.2020 16:43:35 CONFIG: Speechquality 70
02.08.2020 16:43:35 CONFIG: Per. Interval 45000
02.08.2020 16:43:35 CONFIG: Run User      NT-AUTORITÄT\SYSTEM
02.08.2020 16:43:35 CONFIG: Service Aktiv True
02.08.2020 16:43:35 CONFIG: RunAsService  True
02.08.2020 16:43:35 CAMERA: Devicename = no device found
02.08.2020 16:43:36 CONFIG: PC IP 0       fe80::d4ad:27e8:19ca:9351%7
02.08.2020 16:43:36 CONFIG: PC IP 1       192.168.0.45
02.08.2020 16:43:36 AUDIO:  Devicename = 3 - LG TV
02.08.2020 16:43:36 MIC:    Devicename = no device found
02.08.2020 16:43:37 SERVER: wait for connection
02.08.2020 16:43:37 FHEM:   FHEM_ConnectCheck: FHEM Connect Port Check!
02.08.2020 16:43:37 FHEM:   FHEM_ConnectCheck:   FHEM SSL   = True
02.08.2020 16:43:37 FHEM:   FHEM_ConnectCheck:   FHEM SSL W = False
02.08.2020 16:43:37 FHEM:   FHEM_ConnectCheck:   FHEM IP    = 192.168.0.30
02.08.2020 16:43:37 FHEM:   FHEM_ConnectCheck:   FHEM Port  = 8083


SERVICE Log letzte 50 Zeilen



FHEM Device Infolist

Internals:
   DEF        192.168.0.45 15
   FUUID      5f287115-f33f-9943-1597-820f7cbd0983523f
   INTERVAL   15
   NAME       KG.WzK.PC_AK_WIN10Connect
   NR         363
   STATE      on
   TYPE       WINCONNECT
   OLDREADINGS:
   READINGS:
     2020-08-04 20:25:44   audio           off
     2020-08-04 20:25:40   audio_devicename 3 - LG TV
     2020-08-04 20:25:43   battery_ChargeStatus NoSystemBattery
     2020-08-04 20:25:43   battery_LifePercent 100
     2020-08-04 20:25:43   battery_LifeRemainingsMin 0
     2020-08-04 20:25:43   battery_PowerLineStatus Online
     2020-08-04 20:25:42   bios_boardmanufacturer Gigabyte Technology Co., Ltd.
     2020-08-04 20:25:42   bios_boardproduct H81M-D2V
     2020-08-04 20:25:42   bios_boardversion To be filled by O.E.M.
     2020-08-04 20:25:42   bios_releasedate 08/20/2013
     2020-08-04 20:25:42   bios_vendor     American Megatrends Inc.
     2020-08-04 20:25:42   bios_version    F1 YG
     2020-08-04 20:25:43   brightness      200
     2020-08-04 20:25:43   core_temp_state not_installed
     2020-08-04 20:25:42   cpu_0_mhz       3093
     2020-08-04 20:25:42   cpu_0_name      Intel(R) Core(TM) i5-4440 CPU @ 3.10GHz
     2020-08-04 20:25:42   cpu_1_mhz       3093
     2020-08-04 20:25:42   cpu_1_name      Intel(R) Core(TM) i5-4440 CPU @ 3.10GHz
     2020-08-04 20:25:42   cpu_2_mhz       3093
     2020-08-04 20:25:42   cpu_2_name      Intel(R) Core(TM) i5-4440 CPU @ 3.10GHz
     2020-08-04 20:25:42   cpu_3_mhz       3093
     2020-08-04 20:25:42   cpu_3_name      Intel(R) Core(TM) i5-4440 CPU @ 3.10GHz
     2020-08-04 20:25:43   drive_C_Format  NTFS
     2020-08-04 20:25:43   drive_C_Label   Windows
     2020-08-05 08:25:48   drive_C_Space_AvailableFree 854462
     2020-08-04 20:25:43   drive_C_Space_Total 976116
     2020-08-05 08:25:47   drive_C_Space_Used 121653
     2020-08-04 20:25:43   drive_C_Type    Fixed
     2020-08-04 20:25:43   drive_E_Format  NTFS
     2020-08-04 20:25:43   drive_E_Label   WD1TBRed-1
     2020-08-04 20:25:43   drive_E_Space_AvailableFree 843484
     2020-08-04 20:25:43   drive_E_Space_Total 953867
     2020-08-04 20:25:43   drive_E_Space_Used 110383
     2020-08-04 20:25:43   drive_E_Type    Fixed
     2020-08-04 20:25:43   drive_F_Format  NTFS
     2020-08-04 20:25:43   drive_F_Label   WD1TBRed-2
     2020-08-04 20:25:43   drive_F_Space_AvailableFree 953735
     2020-08-04 20:25:43   drive_F_Space_Total 953867
     2020-08-04 20:25:43   drive_F_Space_Used 132
     2020-08-04 20:25:43   drive_F_Type    Fixed
     2020-08-04 20:25:41   file_filter     *.*
     2020-08-04 20:25:43   file_fullname   no file found
     2020-08-04 20:25:43   file_name       no file found
     2020-08-04 20:25:41   file_order      descending
     2020-08-05 10:06:20   memory_available 12.619
     2020-08-04 20:25:42   memory_total    16.272
     2020-08-04 20:25:40   microphone_detect False
     2020-08-04 20:25:40   microphone_devicename no device found
     2020-08-03 22:19:16   model           Windows 10 Home
     2020-08-04 20:25:41   motion_autodetect False
     2020-08-04 20:25:41   motion_detect   False
     2020-08-04 20:25:44   mute            off
     2020-08-04 20:25:42   os_Domainname   PC-AK
     2020-08-04 20:25:42   os_Hostname     PC-AK
     2020-08-04 20:25:41   os_InstallDate  28.07.2020 14:39:57
     2020-08-04 20:25:41   os_Name         Windows 10 Home
     2020-08-04 20:25:42   os_ReleasID     2004
     2020-08-04 20:25:44   os_RunTime_days 0
     2020-08-05 09:25:15   os_RunTime_hours 0
     2020-08-05 10:06:02   os_RunTime_minutes 0
     2020-08-04 20:25:41   os_StartTime    04.08.2020 20:24:57
     2020-08-04 20:25:41   os_Type         Client
     2020-08-04 20:25:42   os_Username     Andreas
     2020-08-04 20:25:42   os_Version      10.0.19041.388
     2020-08-04 20:25:42   printer_aktiv   false
     2020-08-04 20:25:42   printer_names   no_printing
     2020-08-04 20:25:42   speechcontrol   off
     2020-08-04 20:25:42   speechquality   70
     2020-08-05 10:06:32   state           on
     2020-08-05 10:06:17   user_aktiv      false
     2020-08-04 20:25:42   user_aktividletime 60
     2020-08-04 20:25:44   volume          100
     2020-08-04 20:25:41   wincontrol      0.0.27
     2020-08-03 22:24:25   wincontrol_error Download new version = 0.0.27
     2020-08-03 22:24:25   wincontrol_gitlab 0.0.27
     2020-08-03 22:24:25   wincontrol_gitlab_serviceurl https://gitlab.com/michael.winkler/winconnect/raw/master/WinControlService_0.0.27.exe
     2020-08-03 22:24:25   wincontrol_gitlab_url https://gitlab.com/michael.winkler/winconnect/raw/master/WinControl_0.0.27.exe
     2020-08-04 20:25:41   wincontrol_starttime 04.08.2020 20:25:35
     2020-08-04 20:25:40   wincontrol_type GUI without service
     2020-08-03 22:24:25   wincontrol_update 1596485913
     2020-08-04 20:25:41   wincontrol_user PC-AK\Andreas
   helper:
     ADDRESS    192.168.0.45
Attributes:
   autoupdatewincontrol 0
   icon       it_server
   win_resetreadings 1



Hoffe das hilft etwas weiter

Gruss Andreas

[/code]

michael.winkler

ok, laut LOG passt alles zusammen. Kannst Du das Device mal mit verbose 5 betreiben? Dann mal ein set probieren und LOG dann noch mal zusenden. Hier benötige ich aber dann das FHEM Log

Hackstall

So habe verbose auf 5 gestellt und der Fhem log sieht wie folgt aus:

Ein Set kann ich machen und es wird auch das Windows Programm gestartet jedoch nur wenn der Device State ON ist.

Ich denke mal diese empty answer wird wohl da Problem sein:

http://192.168.0.45:8183/fhem/powerstate=off;0.0.27;0: empty answer received


Ich sehe auch im GUI Log dass das immer wieder der powerstate request kommt aber nicht geantwortet wird.
Zumindestens wird in der GUI nur jedes 2te mal ein set <deivce> on message geschrieben und wohl auch retourniert.


2020.08.05 20:10:26 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: called function WINCONNECT_Set()
2020.08.05 20:10:26 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: called function WINCONNECT_Set()
2020.08.05 20:10:26 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: called function WINCONNECT_Set()
2020.08.05 20:10:26 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: called function WINCONNECT_Set()
2020.08.05 20:10:31 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: called function WINCONNECT_Set()
2020.08.05 20:10:31 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: called function WINCONNECT_Set()
2020.08.05 20:10:34 1: RMDIR: .//restoreDir/save/2020-07-26
2020.08.05 20:10:39 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: called function WINCONNECT_GetStatus()
2020.08.05 20:10:39 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: filename  = ././www/winconnect/WinControl.exe filemtime = 1596485913
2020.08.05 20:10:39 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: called function WINCONNECT_SendCommand()
2020.08.05 20:10:39 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: GET http://192.168.0.45:8183/fhem/powerstate=off;0.0.27;0
2020.08.05 20:10:39 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: error while requesting http://192.168.0.45:8183/fhem/powerstate=off;0.0.27;0 - http://192.168.0.45:8183/fhem/powerstate=off;0.0.27;0: empty answer received
2020.08.05 20:10:40 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: called function WINCONNECT_Set()
2020.08.05 20:10:40 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: called function WINCONNECT_Set()
2020.08.05 20:10:41 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: called function WINCONNECT_Set()
2020.08.05 20:10:55 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: called function WINCONNECT_GetStatus()
2020.08.05 20:10:55 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: filename  = ././www/winconnect/WinControl.exe filemtime = 1596485913
2020.08.05 20:10:55 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: called function WINCONNECT_SendCommand()
2020.08.05 20:10:55 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: GET http://192.168.0.45:8183/fhem/powerstate=on;0.0.27;0
2020.08.05 20:10:55 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: error while requesting http://192.168.0.45:8183/fhem/powerstate=on;0.0.27;0 - http://192.168.0.45:8183/fhem/powerstate=on;0.0.27;0: empty answer received
2020.08.05 20:10:55 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: called function WINCONNECT_Set()
2020.08.05 20:10:59 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: called function WINCONNECT_Set()
2020.08.05 20:11:10 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: called function WINCONNECT_GetStatus()
2020.08.05 20:11:10 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: filename  = ././www/winconnect/WinControl.exe filemtime = 1596485913
2020.08.05 20:11:10 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: called function WINCONNECT_SendCommand()
2020.08.05 20:11:10 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: GET http://192.168.0.45:8183/fhem/powerstate=off;0.0.27;0
2020.08.05 20:11:10 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: error while requesting http://192.168.0.45:8183/fhem/powerstate=off;0.0.27;0 - http://192.168.0.45:8183/fhem/powerstate=off;0.0.27;0: empty answer received
2020.08.05 20:11:10 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: called function WINCONNECT_Set()
2020.08.05 20:11:10 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: called function WINCONNECT_Set()
2020.08.05 20:11:10 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: called function WINCONNECT_Set()
2020.08.05 20:11:25 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: called function WINCONNECT_GetStatus()
2020.08.05 20:11:25 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: filename  = ././www/winconnect/WinControl.exe filemtime = 1596485913
2020.08.05 20:11:25 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: called function WINCONNECT_SendCommand()
2020.08.05 20:11:25 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: GET http://192.168.0.45:8183/fhem/powerstate=on;0.0.27;0
2020.08.05 20:11:25 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: error while requesting http://192.168.0.45:8183/fhem/powerstate=on;0.0.27;0 - http://192.168.0.45:8183/fhem/powerstate=on;0.0.27;0: empty answer received
2020.08.05 20:11:25 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: called function WINCONNECT_Set()
2020.08.05 20:11:40 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: called function WINCONNECT_GetStatus()
2020.08.05 20:11:40 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: filename  = ././www/winconnect/WinControl.exe filemtime = 1596485913
2020.08.05 20:11:40 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: called function WINCONNECT_SendCommand()
2020.08.05 20:11:40 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: GET http://192.168.0.45:8183/fhem/powerstate=off;0.0.27;0
2020.08.05 20:11:40 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: error while requesting http://192.168.0.45:8183/fhem/powerstate=off;0.0.27;0 - http://192.168.0.45:8183/fhem/powerstate=off;0.0.27;0: empty answer received
2020.08.05 20:11:40 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: called function WINCONNECT_Set()
2020.08.05 20:11:40 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: called function WINCONNECT_Set()
2020.08.05 20:11:42 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: called function WINCONNECT_Set()
2020.08.05 20:11:55 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: called function WINCONNECT_GetStatus()
2020.08.05 20:11:55 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: filename  = ././www/winconnect/WinControl.exe filemtime = 1596485913
2020.08.05 20:11:55 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: called function WINCONNECT_SendCommand()
2020.08.05 20:11:55 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: GET http://192.168.0.45:8183/fhem/powerstate=on;0.0.27;0
2020.08.05 20:11:55 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: error while requesting http://192.168.0.45:8183/fhem/powerstate=on;0.0.27;0 - http://192.168.0.45:8183/fhem/powerstate=on;0.0.27;0: empty answer received
2020.08.05 20:11:55 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: called function WINCONNECT_Set()
2020.08.05 20:12:00 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: called function WINCONNECT_Set()
2020.08.05 20:12:10 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: called function WINCONNECT_GetStatus()
2020.08.05 20:12:10 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: filename  = ././www/winconnect/WinControl.exe filemtime = 1596485913
2020.08.05 20:12:10 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: called function WINCONNECT_SendCommand()
2020.08.05 20:12:10 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: GET http://192.168.0.45:8183/fhem/powerstate=off;0.0.27;0
2020.08.05 20:12:10 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: error while requesting http://192.168.0.45:8183/fhem/powerstate=off;0.0.27;0 - http://192.168.0.45:8183/fhem/powerstate=off;0.0.27;0: empty answer received
2020.08.05 20:12:10 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: called function WINCONNECT_Set()
2020.08.05 20:12:11 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: called function WINCONNECT_Set()
2020.08.05 20:12:11 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: called function WINCONNECT_Set()
2020.08.05 20:12:26 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: called function WINCONNECT_GetStatus()
2020.08.05 20:12:26 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: filename  = ././www/winconnect/WinControl.exe filemtime = 1596485913
2020.08.05 20:12:26 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: called function WINCONNECT_SendCommand()
2020.08.05 20:12:26 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: GET http://192.168.0.45:8183/fhem/powerstate=on;0.0.27;0
2020.08.05 20:12:26 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: error while requesting http://192.168.0.45:8183/fhem/powerstate=on;0.0.27;0 - http://192.168.0.45:8183/fhem/powerstate=on;0.0.27;0: empty answer received
2020.08.05 20:12:26 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: called function WINCONNECT_Set()
2020.08.05 20:12:34 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: called function WINCONNECT_Set()
2020.08.05 20:12:41 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: called function WINCONNECT_GetStatus()
2020.08.05 20:12:41 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: filename  = ././www/winconnect/WinControl.exe filemtime = 1596485913
2020.08.05 20:12:41 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: called function WINCONNECT_SendCommand()
2020.08.05 20:12:41 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: GET http://192.168.0.45:8183/fhem/powerstate=off;0.0.27;0
2020.08.05 20:12:41 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: error while requesting http://192.168.0.45:8183/fhem/powerstate=off;0.0.27;0 - http://192.168.0.45:8183/fhem/powerstate=off;0.0.27;0: empty answer received
2020.08.05 20:12:41 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: called function WINCONNECT_Set()
2020.08.05 20:12:41 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: called function WINCONNECT_Set()
2020.08.05 20:12:52 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: called function WINCONNECT_Set()
2020.08.05 20:12:56 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: called function WINCONNECT_GetStatus()
2020.08.05 20:12:56 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: filename  = ././www/winconnect/WinControl.exe filemtime = 1596485913
2020.08.05 20:12:56 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: called function WINCONNECT_SendCommand()
2020.08.05 20:12:56 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: GET http://192.168.0.45:8183/fhem/powerstate=on;0.0.27;0
2020.08.05 20:12:56 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: error while requesting http://192.168.0.45:8183/fhem/powerstate=on;0.0.27;0 - http://192.168.0.45:8183/fhem/powerstate=on;0.0.27;0: empty answer received
2020.08.05 20:12:56 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: called function WINCONNECT_Set()
2020.08.05 20:13:00 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: called function WINCONNECT_Set()
2020.08.05 20:13:11 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: called function WINCONNECT_GetStatus()
2020.08.05 20:13:11 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: filename  = ././www/winconnect/WinControl.exe filemtime = 1596485913
2020.08.05 20:13:11 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: called function WINCONNECT_SendCommand()
2020.08.05 20:13:11 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: GET http://192.168.0.45:8183/fhem/powerstate=off;0.0.27;0
2020.08.05 20:13:11 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: error while requesting http://192.168.0.45:8183/fhem/powerstate=off;0.0.27;0 - http://192.168.0.45:8183/fhem/powerstate=off;0.0.27;0: empty answer received
2020.08.05 20:13:11 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: called function WINCONNECT_Set()
2020.08.05 20:13:11 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: called function WINCONNECT_Set()
2020.08.05 20:13:11 5: WINCONNECT KG.WzK.PC_AK_WIN10Connect: called function WINCONNECT_Set()

michael.winkler

Kannst Du mal auf dem PC folgenden Befehl ausführen?

netstat -A -B


Im Ergebnis mal nach dem Port 8183 schauen. Hier müsste dann die WinControl.exe stehen

  TCP    0.0.0.0:8183           HNMWNB06:0             ABHÖREN
[WinControl.exe]

Hackstall

Hallo das ergabe folgendes:

TCP    0.0.0.0:7680           PC-AK:0                ABH™REN
Es konnten keine Besitzerinformationen abgerufen werden.
  TCP    0.0.0.0:8183           PC-AK:0                ABH™REN
[WinControl.exe]
  TCP    0.0.0.0:49664          PC-AK:0                ABH™REN


Hackstall

Hallo vielleicht noch ein Zusatz.

1) ich betreibe FHEM nicht via SSL
2) Wenn ich in WinControl auf dem PC das feld fhem ändere aufzbsp meine IP Adresse dann
toggelt WinControl nicht mehr und will immer auf ON setzen also Status auf on


06.08.2020 11:28:05 SERVER: Request: /FHEM/POWERSTATE=OFF;0.0.27;0
06.08.2020 11:28:05 TODO:   powerstate
06.08.2020 11:28:05 SERVER: wait for connection
06.08.2020 11:28:06 FHEM:   84,648 - set KG.WzK.PC_AK_WIN10Connect on
06.08.2020 11:28:10 SERVER: client 192.168.0.33 connected by ip
06.08.2020 11:28:10 SERVER: Request: /FHEM/POWERSTATE=OFF;0.0.27;0
06.08.2020 11:28:10 TODO:   powerstate
06.08.2020 11:28:10 SERVER: wait for connection
06.08.2020 11:28:11 FHEM:   106,3008 - set KG.WzK.PC_AK_WIN10Connect on
06.08.2020 11:28:15 SERVER: client 192.168.0.33 connected by ip
06.08.2020 11:28:15 SERVER: Request: /FHEM/POWERSTATE=OFF;0.0.27;0
06.08.2020 11:28:15 TODO:   powerstate
06.08.2020 11:28:15 SERVER: wait for connection
06.08.2020 11:28:16 FHEM:   147,1231 - set KG.WzK.PC_AK_WIN10Connect on
06.08.2020 11:28:20 SERVER: client 192.168.0.33 connected by ip


Leider wird dann im Fhem nichts mehr aktualisiert.

Vielleicht hilft das.

Danke Andreas

Hackstall

Schade dass es bei der Fehlersuche nicht weitergeht. Hätte das Device so gerne benutzt. Aber dennoch vielen Dank.

Gruss Andreas

michael.winkler

Zitat von: Hackstall am 06 August 2020, 11:29:38
Hallo vielleicht noch ein Zusatz.

1) ich betreibe FHEM nicht via SSL
2) Wenn ich in WinControl auf dem PC das feld fhem ändere aufzbsp meine IP Adresse dann
toggelt WinControl nicht mehr und will immer auf ON setzen also Status auf on


06.08.2020 11:28:05 SERVER: Request: /FHEM/POWERSTATE=OFF;0.0.27;0
06.08.2020 11:28:05 TODO:   powerstate
06.08.2020 11:28:05 SERVER: wait for connection
06.08.2020 11:28:06 FHEM:   84,648 - set KG.WzK.PC_AK_WIN10Connect on
06.08.2020 11:28:10 SERVER: client 192.168.0.33 connected by ip
06.08.2020 11:28:10 SERVER: Request: /FHEM/POWERSTATE=OFF;0.0.27;0
06.08.2020 11:28:10 TODO:   powerstate
06.08.2020 11:28:10 SERVER: wait for connection
06.08.2020 11:28:11 FHEM:   106,3008 - set KG.WzK.PC_AK_WIN10Connect on
06.08.2020 11:28:15 SERVER: client 192.168.0.33 connected by ip
06.08.2020 11:28:15 SERVER: Request: /FHEM/POWERSTATE=OFF;0.0.27;0
06.08.2020 11:28:15 TODO:   powerstate
06.08.2020 11:28:15 SERVER: wait for connection
06.08.2020 11:28:16 FHEM:   147,1231 - set KG.WzK.PC_AK_WIN10Connect on
06.08.2020 11:28:20 SERVER: client 192.168.0.33 connected by ip


Leider wird dann im Fhem nichts mehr aktualisiert.

Vielleicht hilft das.

Danke Andreas
In der Windows App muss immer die IP Adresse des FHEM Servers stehen. Wenn Du kein SSL nutzt, dann müssen auch die entsprechenden Haken nicht gesetzt sein.

Hackstall

#41
Es ist die IP Adresse des Servers.

Die Häkchen bei SSL sind auch weg.

ICh habe mehrere Fhems ausprobiert. Auch einen nackten Raspberry mit FHEM installiert.

Bei allen Maschinen gleiches Verhalten. Er scheint am Anfang alle Daten als Reading zu bekommen.
Auch habe ich schon gesehen dass die OS ontime schon mal auf 3 minuten gestanden ist aber dann wieder
zurückgesetzt wird (auf 0).

Ich komme hier nicht weiter. Echt schade. Würde es gerne einsetzen.

Gruss Andreas

P.S.:
Es gibt bereits einen Thread hier im Forum bestehen aus ca 64 posts. Ein Post ging bereits in meine Richtung.
Hier wurde auch überein on off state berichtet. Der Thread wurde aber nicht beantwortet.
Für mich ist jedoch klar dass es wohl noch einen anderen gibt der dieses Problem auch hatte.



michael.winkler

Zitat von: Hackstall am 11 August 2020, 22:26:40
Es ist die IP Adresse des Servers.

Die Häkchen bei SSL sind auch weg.

ICh habe mehrere Fhems ausprobiert. Auch einen nackten Raspberry mit FHEM installiert.

Bei allen Maschinen gleiches Verhalten. Er scheint am Anfang alle Daten als Reading zu bekommen.
Auch habe ich schon gesehen dass die OS ontime schon mal auf 3 minuten gestanden ist aber dann wieder
zurückgesetzt wird (auf 0).

Ich komme hier nicht weiter. Echt schade. Würde es gerne einsetzen.

Gruss Andreas

P.S.:
Es gibt bereits einen Thread hier im Forum bestehen aus ca 64 posts. Ein Post ging bereits in meine Richtung.
Hier wurde auch überein on off state berichtet. Der Thread wurde aber nicht beantwortet.
Für mich ist jedoch klar dass es wohl noch einen anderen gibt der dieses Problem auch hatte.

Was zeigt Dein lokaler Browser an wenn du dort mal die Webseite "http://localhost:8183" öffnest?

Hackstall

Hallo,

also wenn ich http://localhost:8183 auf meinem PC (den ich steuern will) eintippe wird ein Fenster geöffnet welche mich fragt ob ich die Datei öffnen möchte. Sobald ich diese Date öffne steht dort in der Datei:

WRONG FHEM

Gruss Andreas

Hackstall

Hallo,

für diejenigen die mit mir gelitten haben noch kurzer Status:

Ich bin einen guten Schritt (wenn auch zufällig) weitergekommen.

Ich hatte gestern ein anderes Programm installieren müssen. Die Installation dauerte dann doch länger aber ich habe im
Vorbeiflug gesehen dass wohl auch Microsoft.Net aktualisiert wurde (ich meine 6.4).

Wie auch immer seitdem läuft WinConnect auch auf meinem PC. Ich denke dass das wohl mein Problem gewesen sein müsste
da ich irgendwo gelesen hatte das WinConnect wohl eine .NET > 4.5 benötigt (Hier war ich dann wohl doch noch nicht up to date).

ICh betrachte damit mein Problem als gelöst und möchte mich Euren Hilfestellungen nochmals bedanken.

Gruss Andreas