Sony 49x8505b, kein WOL

Begonnen von sven.scherf, 22 Dezember 2017, 16:01:39

Vorheriges Thema - Nächstes Thema

vuffiraa

#15
Hallo Sven,

ich habe das Modul geändert, dass für deine Gerätegeneration immer WOL zum Einschalten verwendet wird.
Die Änderung bekommst du ab morgen mit dem normalen Update oder ab sofort direkt aus dem SVN https://svn.fhem.de/trac/export/15982/trunk/fhem/FHEM/70_BRAVIA.pm.

Bitte mal testen!

Gruß Ulf
FHEM 5.8 auf Cubietruck, Raspi B+

Weinzierl KNX IP BAOS 770, Homematic, EnOcean

sven.scherf

#16
Hallo Ulf,

vielen Dank für die schnelle Hilfe und Umsetzung.

Es funktioniert noch nicht zuverlässig.
Nach dem Einspielen von dem Modul konnte ich den Fernseher über Fhem einmal einschalten.

Dann habe ich gewartet bis der Button grün war um den Fernseher wieder über Fhem auszuschalten. Funktionierte einwandfrei.

Der Button wurde nach einiger (lange)Zeit gelb, dann habe ich wieder versucht den Fernseher über Fhem einzuschalten.
Dies war aber nicht erfolgreich.

Kannst Du hier nochmal in das Modul reinschauen.

Hier der Logfile

2018.01.23 19:25:35.553 5: BRAVIA Sony_Fernseher: called function BRAVIA_GetStatus()
2018.01.23 19:25:35.554 5: BRAVIA Sony_Fernseher: called function BRAVIA_SendCommand()
2018.01.23 19:25:35.554 4: BRAVIA Sony_Fernseher: REQ getStatus/json
2018.01.23 19:25:35.555 5: BRAVIA Sony_Fernseher: POST http://192.168.10.45:80/sony/system ({"method":"getPowerStatus","params":[],"id":1,"version":"1.0"})
2018.01.23 19:25:35.555 5: BRAVIA Sony_Fernseher: header X-CERS-DEVICE-ID: fhem_remote
Cookie: auth=3a654ffd9dcbf1af91ced6c608ea4f622a4c38dccc1fcde0983ebaeefb6a04f1
2018.01.23 19:25:35.637 5: BRAVIA Sony_Fernseher: called function BRAVIA_ReceiveCommand() rc: HASH(0x36e4c10) err:  data: {"id":1,"result":[{"status":"standby"}]}
2018.01.23 19:25:35.638 4: BRAVIA Sony_Fernseher: RCV getStatus/json
2018.01.23 19:25:35.639 4: BRAVIA Sony_Fernseher: RES getStatus/json - {"id":1,"result":[{"status":"standby"}]}
2018.01.23 19:25:35.741 5: BRAVIA Sony_Fernseher: called function BRAVIA_Set()
2018.01.23 19:26:19.467 4: CUL_Parse: CUL_0 A 0F CA 8610 5EC554 000000 0AA8E9100E00CD -99.5
2018.01.23 19:26:20.555 5: BRAVIA Sony_Fernseher: called function BRAVIA_GetStatus()
2018.01.23 19:26:20.556 5: BRAVIA Sony_Fernseher: called function BRAVIA_SendCommand()
2018.01.23 19:26:20.557 4: BRAVIA Sony_Fernseher: REQ getStatus/json
2018.01.23 19:26:20.557 5: BRAVIA Sony_Fernseher: POST http://192.168.10.45:80/sony/system ({"method":"getPowerStatus","params":[],"id":1,"version":"1.0"})
2018.01.23 19:26:20.557 5: BRAVIA Sony_Fernseher: header X-CERS-DEVICE-ID: fhem_remote
Cookie: auth=3a654ffd9dcbf1af91ced6c608ea4f622a4c38dccc1fcde0983ebaeefb6a04f1
2018.01.23 19:26:20.647 5: BRAVIA Sony_Fernseher: called function BRAVIA_ReceiveCommand() rc: HASH(0x3a3b430) err:  data: {"id":1,"result":[{"status":"standby"}]}
2018.01.23 19:26:20.647 4: BRAVIA Sony_Fernseher: RCV getStatus/json
2018.01.23 19:26:20.648 4: BRAVIA Sony_Fernseher: RES getStatus/json - {"id":1,"result":[{"status":"standby"}]}
2018.01.23 19:27:05.557 5: BRAVIA Sony_Fernseher: called function BRAVIA_GetStatus()
2018.01.23 19:27:05.558 5: BRAVIA Sony_Fernseher: called function BRAVIA_SendCommand()
2018.01.23 19:27:05.558 4: BRAVIA Sony_Fernseher: REQ getStatus/json
2018.01.23 19:27:05.559 5: BRAVIA Sony_Fernseher: POST http://192.168.10.45:80/sony/system ({"method":"getPowerStatus","params":[],"id":1,"version":"1.0"})
2018.01.23 19:27:05.559 5: BRAVIA Sony_Fernseher: header X-CERS-DEVICE-ID: fhem_remote
Cookie: auth=3a654ffd9dcbf1af91ced6c608ea4f622a4c38dccc1fcde0983ebaeefb6a04f1
2018.01.23 19:27:05.655 5: BRAVIA Sony_Fernseher: called function BRAVIA_ReceiveCommand() rc: HASH(0x3a7e780) err:  data: {"id":1,"result":[{"status":"standby"}]}
2018.01.23 19:27:05.655 4: BRAVIA Sony_Fernseher: RCV getStatus/json
2018.01.23 19:27:05.656 4: BRAVIA Sony_Fernseher: RES getStatus/json - {"id":1,"result":[{"status":"standby"}]}
2018.01.23 19:27:24.169 4: CUL_Parse: CUL_0 A 0C 4A 865A 3A79EE 000000 ACD73C00 -74
2018.01.23 19:27:34.171 4: CUL_Parse: CUL_0 A 0E CA 8410 3A79EE 000000 0BACD74C0000 -74
2018.01.23 19:27:44.169 4: CUL_Parse: CUL_0 A 0C 4A 8470 3A79EE 000000 00D73CFF -74.5
2018.01.23 19:27:50.559 5: BRAVIA Sony_Fernseher: called function BRAVIA_GetStatus()
2018.01.23 19:27:50.560 5: BRAVIA Sony_Fernseher: called function BRAVIA_SendCommand()
2018.01.23 19:27:50.560 4: BRAVIA Sony_Fernseher: REQ getStatus/json
2018.01.23 19:27:50.561 5: BRAVIA Sony_Fernseher: POST http://192.168.10.45:80/sony/system ({"method":"getPowerStatus","params":[],"id":1,"version":"1.0"})
2018.01.23 19:27:50.561 5: BRAVIA Sony_Fernseher: header X-CERS-DEVICE-ID: fhem_remote
Cookie: auth=3a654ffd9dcbf1af91ced6c608ea4f622a4c38dccc1fcde0983ebaeefb6a04f1
2018.01.23 19:27:50.663 5: BRAVIA Sony_Fernseher: called function BRAVIA_ReceiveCommand() rc: HASH(0x3ad2eb8) err:  data: {"id":1,"result":[{"status":"standby"}]}
2018.01.23 19:27:50.664 4: BRAVIA Sony_Fernseher: RCV getStatus/json
2018.01.23 19:27:50.664 4: BRAVIA Sony_Fernseher: RES getStatus/json - {"id":1,"result":[{"status":"standby"}]}
2018.01.23 19:28:35.560 5: BRAVIA Sony_Fernseher: called function BRAVIA_GetStatus()
2018.01.23 19:28:35.561 5: BRAVIA Sony_Fernseher: called function BRAVIA_SendCommand()
2018.01.23 19:28:35.562 4: BRAVIA Sony_Fernseher: REQ getStatus/json
2018.01.23 19:28:35.562 5: BRAVIA Sony_Fernseher: POST http://192.168.10.45:80/sony/system ({"method":"getPowerStatus","params":[],"id":1,"version":"1.0"})
2018.01.23 19:28:35.562 5: BRAVIA Sony_Fernseher: header X-CERS-DEVICE-ID: fhem_remote
Cookie: auth=3a654ffd9dcbf1af91ced6c608ea4f622a4c38dccc1fcde0983ebaeefb6a04f1
2018.01.23 19:28:35.668 5: BRAVIA Sony_Fernseher: called function BRAVIA_ReceiveCommand() rc: HASH(0x3a3b2e0) err:  data: {"id":1,"result":[{"status":"standby"}]}
2018.01.23 19:28:35.669 4: BRAVIA Sony_Fernseher: RCV getStatus/json
2018.01.23 19:28:35.670 4: BRAVIA Sony_Fernseher: RES getStatus/json - {"id":1,"result":[{"status":"standby"}]}
2018.01.23 19:29:20.562 5: BRAVIA Sony_Fernseher: called function BRAVIA_GetStatus()
2018.01.23 19:29:20.563 5: BRAVIA Sony_Fernseher: called function BRAVIA_SendCommand()
2018.01.23 19:29:20.564 4: BRAVIA Sony_Fernseher: REQ getStatus/json
2018.01.23 19:29:20.564 5: BRAVIA Sony_Fernseher: POST http://192.168.10.45:80/sony/system ({"method":"getPowerStatus","params":[],"id":1,"version":"1.0"})
2018.01.23 19:29:20.565 5: BRAVIA Sony_Fernseher: header X-CERS-DEVICE-ID: fhem_remote
Cookie: auth=3a654ffd9dcbf1af91ced6c608ea4f622a4c38dccc1fcde0983ebaeefb6a04f1
2018.01.23 19:29:20.661 5: BRAVIA Sony_Fernseher: called function BRAVIA_ReceiveCommand() rc: HASH(0x3a463f8) err:  data: {"id":1,"result":[{"status":"standby"}]}
2018.01.23 19:29:20.662 4: BRAVIA Sony_Fernseher: RCV getStatus/json
2018.01.23 19:29:20.662 4: BRAVIA Sony_Fernseher: RES getStatus/json - {"id":1,"result":[{"status":"standby"}]}
2018.01.23 19:30:05.565 5: BRAVIA Sony_Fernseher: called function BRAVIA_GetStatus()
2018.01.23 19:30:05.566 5: BRAVIA Sony_Fernseher: called function BRAVIA_SendCommand()
2018.01.23 19:30:05.566 4: BRAVIA Sony_Fernseher: REQ getStatus/json
2018.01.23 19:30:05.567 5: BRAVIA Sony_Fernseher: POST http://192.168.10.45:80/sony/system ({"method":"getPowerStatus","params":[],"id":1,"version":"1.0"})
2018.01.23 19:30:05.567 5: BRAVIA Sony_Fernseher: header X-CERS-DEVICE-ID: fhem_remote
Cookie: auth=3a654ffd9dcbf1af91ced6c608ea4f622a4c38dccc1fcde0983ebaeefb6a04f1
2018.01.23 19:30:05.659 5: BRAVIA Sony_Fernseher: called function BRAVIA_ReceiveCommand() rc: HASH(0x3ad7380) err:  data: {"id":1,"result":[{"status":"standby"}]}
2018.01.23 19:30:05.659 4: BRAVIA Sony_Fernseher: RCV getStatus/json
2018.01.23 19:30:05.660 4: BRAVIA Sony_Fernseher: RES getStatus/json - {"id":1,"result":[{"status":"standby"}]}
2018.01.23 19:30:12.421 4: CUL_Parse: CUL_0 A 0C 4B 865A 3A79EE 000000 ACD83C00 -74
2018.01.23 19:30:22.423 4: CUL_Parse: CUL_0 A 0E CB 8410 3A79EE 000000 0BACD84C0000 -74
2018.01.23 19:30:32.422 4: CUL_Parse: CUL_0 A 0C 4B 8470 3A79EE 000000 00D83C00 -74
2018.01.23 19:30:50.567 5: BRAVIA Sony_Fernseher: called function BRAVIA_GetStatus()
2018.01.23 19:30:50.568 5: BRAVIA Sony_Fernseher: called function BRAVIA_SendCommand()
2018.01.23 19:30:50.569 4: BRAVIA Sony_Fernseher: REQ getStatus/json
2018.01.23 19:30:50.569 5: BRAVIA Sony_Fernseher: POST http://192.168.10.45:80/sony/system ({"method":"getPowerStatus","params":[],"id":1,"version":"1.0"})
2018.01.23 19:30:50.570 5: BRAVIA Sony_Fernseher: header X-CERS-DEVICE-ID: fhem_remote
Cookie: auth=3a654ffd9dcbf1af91ced6c608ea4f622a4c38dccc1fcde0983ebaeefb6a04f1
2018.01.23 19:30:50.688 5: BRAVIA Sony_Fernseher: called function BRAVIA_ReceiveCommand() rc: HASH(0x316e7e8) err:  data: {"id":1,"result":[{"status":"standby"}]}
2018.01.23 19:30:50.688 4: BRAVIA Sony_Fernseher: RCV getStatus/json
2018.01.23 19:30:50.689 4: BRAVIA Sony_Fernseher: RES getStatus/json - {"id":1,"result":[{"status":"standby"}]}
2018.01.23 19:30:54.780 4: CUL_Parse: CUL_0 A 0C 42 A041 3A79EE 529925 075E0000 -74
2018.01.23 19:30:55.001 4: CUL_Parse: CUL_0 A 0E 42 8002 529925 3A79EE 010100004714 -64
2018.01.23 19:30:55.097 4: CUL_Parse: CUL_0 A 0C 42 A041 3A79EE 529925 075E0000 -74
2018.01.23 19:30:55.177 4: CUL_Parse: CUL_0 A 0E 42 8002 529925 3A79EE 010100004913 -64.5
2018.01.23 19:30:58.877 5: BRAVIA Sony_Fernseher: called function BRAVIA_Set()
2018.01.23 19:30:58.877 2: BRAVIA set Sony_Fernseher on
2018.01.23 19:30:58.987 5: BRAVIA Sony_Fernseher: called function BRAVIA_Set()
2018.01.23 19:30:58.989 5: BRAVIA Sony_Fernseher: called function BRAVIA_SendCommand()
2018.01.23 19:30:58.990 4: BRAVIA Sony_Fernseher: REQ ircc/POWER
2018.01.23 19:30:58.991 5: BRAVIA Sony_Fernseher: POST http://192.168.10.45:80/sony/IRCC (<?xml version="1.0"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:X_SendIRCC xmlns:u="urn:schemas-sony-com:service:IRCC:1"><IRCCCode>AAAAAQAAAAEAAAAVAw==</IRCCCode></u:X_SendIRCC></s:Body></s:Envelope>)
2018.01.23 19:30:58.991 5: BRAVIA Sony_Fernseher: header X-CERS-DEVICE-ID: fhem_remote
Cookie: auth=3a654ffd9dcbf1af91ced6c608ea4f622a4c38dccc1fcde0983ebaeefb6a04f1
Soapaction: "urn:schemas-sony-com:service:IRCC:1#X_SendIRCC"
Content-Type: text/xml; charset=UTF-8


Danach habe ich mal einen list Sony_Fernseher ausgeführt und hier ist das Ergebnis

Internals:
   CHANNELCOUNT 50
   DEF        192.168.10.45
   INTERVAL   45
   NAME       Sony_Fernseher
   NR         375
   STATE      absent
   TYPE       BRAVIA
   generation 2.5.0
   model      KD-49X8505B
   name       BRAVIA
   Helper:
     DBLOG:
       area:
         logdb:
           TIME       1516731443.06767
           VALUE      DEU
       channel:
         logdb:
           TIME       1516731485.64161
           VALUE      -
       country:
         logdb:
           TIME       1516731443.06767
           VALUE      DEU
       generation:
         logdb:
           TIME       1516731443.06767
           VALUE      2.5.0
       input:
         logdb:
           TIME       1516731485.64161
           VALUE      -
       language:
         logdb:
           TIME       1516731443.06767
           VALUE      ger
       macAddr:
         logdb:
           TIME       1516731443.06767
           VALUE      FC:F1:52:31:95:45
       model:
         logdb:
           TIME       1516731443.06767
           VALUE      KD-49X8505B
       name:
         logdb:
           TIME       1516731443.06767
           VALUE      BRAVIA
       power:
         logdb:
           TIME       1516731485.9071
           VALUE      off
       presence:
         logdb:
           TIME       1516732305.57809
           VALUE      absent
       state:
         logdb:
           TIME       1516732350.58102
           VALUE      absent
   READINGS:
     2018-01-23 19:17:23   area            DEU
     2018-01-20 00:18:08   authCookie      3a654ffd9dcbf1af91ced6c608ea4f622a4c38dccc1fcde0983ebaeefb6a04f1
     2018-01-20 00:18:08   authExpires     Fri, 02-Feb-2018 23:18:08 GMT
     2017-12-22 14:29:22   authMaxAge      1209600
     2018-01-23 19:18:05   channel         -
     2018-01-18 14:58:19   channelId       -
     2018-01-18 14:58:19   ci_tripletStr   -
     2018-01-23 19:17:23   country         DEU
     2018-01-18 14:58:19   currentMedia    -
     2017-12-22 14:32:38   currentTitle    -
     2018-01-23 19:17:23   generation      2.5.0
     2018-01-23 19:18:05   input           -
     2018-01-23 19:17:23   language        ger
     2018-01-23 19:17:23   macAddr         FC:F1:52:31:95:45
     2018-01-23 19:17:23   model           KD-49X8505B
     2017-12-22 14:31:53   modelName       KD-49X8505B
     2017-12-22 14:11:11   mute            off
     2018-01-23 19:17:23   name            BRAVIA
     2018-01-23 19:18:05   power           off
     2018-01-23 19:31:45   presence        absent
     2017-12-22 14:28:54   registrationUUID 45d9d07fcccc55ac5fc2bc188cbf064d
     2017-12-22 14:15:35   requestFormat   json
     2018-01-23 19:32:30   state           absent
     2018-01-18 14:58:19   uri             extInput:hdmi?port=1
     2018-01-21 21:47:06   volume          9
   helper:
     ADDRESS    192.168.10.45
     AVAILABLE  0
     HEADER     X-CERS-DEVICE-ID: fhem_remote
     lastInput  extInput:hdmi
     PORT:
       IRCC       80
       SERVICE    80
       UPNP       52323
     device:
       inputPreset:
         AV1:
           uri        extInput:scart?port=1
         AV2/Component:
           uri        extInput:composite?port=1
         Bildschirm#spiegeln:
           uri        extInput:widi?port=1
         HDMI#1:
           uri        extInput:hdmi?port=1
         HDMI#2/MHL:
           uri        extInput:hdmi?port=2
         HDMI#3:
           uri        extInput:hdmi?port=3
         HDMI#4/MHL:
           uri        extInput:hdmi?port=4
         TV:
           uri        tv
         Tuner#2:
           uri        extInput:cec?type=tuner&port=2
Attributes:
   devStateIcon on:rc_GREEN:off off:rc_YELLOW:on absent:rc_STOP:on
   icon       it_television
   room       Wohnzimmer
   verbose    5
   webCmd     volume:channelUp:channelDown




Wenn der Button gelb ist scheint irgendwas im Kreis zu laufen.
Hier der Log davon.
2018.01.23 19:39:58.820 4: BRAVIA Sony_Fernseher: RCV ircc/AAAAAQAAAAEAAAAVAw==
2018.01.23 19:39:58.820 4: BRAVIA Sony_Fernseher: RES ircc/AAAAAQAAAAEAAAAVAw== - response
2018.01.23 19:39:59.095 5: BRAVIA Sony_Fernseher: called function BRAVIA_Set()
2018.01.23 19:40:04.927 4: CUL_Parse: CUL_0 A 0C 4F 865A 3A79EE 000000 ACD83C02 -73
2018.01.23 19:40:24.927 4: CUL_Parse: CUL_0 A 0C 4F 8470 3A79EE 000000 00D83C01 -73.5
2018.01.23 19:40:35.592 5: BRAVIA Sony_Fernseher: called function BRAVIA_GetStatus()
2018.01.23 19:40:35.593 5: BRAVIA Sony_Fernseher: called function BRAVIA_SendCommand()
2018.01.23 19:40:35.594 4: BRAVIA Sony_Fernseher: REQ getStatus/json
2018.01.23 19:40:35.594 5: BRAVIA Sony_Fernseher: POST http://192.168.10.45:80/sony/system ({"method":"getPowerStatus","params":[],"id":1,"version":"1.0"})
2018.01.23 19:40:35.595 5: BRAVIA Sony_Fernseher: header X-CERS-DEVICE-ID: fhem_remote
Cookie: auth=3a654ffd9dcbf1af91ced6c608ea4f622a4c38dccc1fcde0983ebaeefb6a04f1
2018.01.23 19:40:35.683 5: BRAVIA Sony_Fernseher: called function BRAVIA_ReceiveCommand() rc: HASH(0x3adf828) err:  data: {"id":1,"result":[{"status":"standby"}]}
2018.01.23 19:40:35.683 4: BRAVIA Sony_Fernseher: RCV getStatus/json
2018.01.23 19:40:35.684 4: BRAVIA Sony_Fernseher: RES getStatus/json - {"id":1,"result":[{"status":"standby"}]}
2018.01.23 19:41:20.594 5: BRAVIA Sony_Fernseher: called function BRAVIA_GetStatus()
2018.01.23 19:41:20.595 5: BRAVIA Sony_Fernseher: called function BRAVIA_SendCommand()
2018.01.23 19:41:20.596 4: BRAVIA Sony_Fernseher: REQ getStatus/json
2018.01.23 19:41:20.596 5: BRAVIA Sony_Fernseher: POST http://192.168.10.45:80/sony/system ({"method":"getPowerStatus","params":[],"id":1,"version":"1.0"})
2018.01.23 19:41:20.597 5: BRAVIA Sony_Fernseher: header X-CERS-DEVICE-ID: fhem_remote
Cookie: auth=3a654ffd9dcbf1af91ced6c608ea4f622a4c38dccc1fcde0983ebaeefb6a04f1
2018.01.23 19:41:20.691 5: BRAVIA Sony_Fernseher: called function BRAVIA_ReceiveCommand() rc: HASH(0x275ec68) err:  data: {"id":1,"result":[{"status":"standby"}]}
2018.01.23 19:41:20.691 4: BRAVIA Sony_Fernseher: RCV getStatus/json
2018.01.23 19:41:20.691 4: BRAVIA Sony_Fernseher: RES getStatus/json - {"id":1,"result":[{"status":"standby"}]}
2018.01.23 19:41:20.812 5: BRAVIA Sony_Fernseher: called function BRAVIA_Set()
2018.01.23 19:41:32.435 5: BRAVIA Sony_Fernseher: called function BRAVIA_Set()
2018.01.23 19:41:40.720 4: CUL_Parse: CUL_0 A 0F D0 8610 5EC554 000000 0AA8E5100E00D0 -98
2018.01.23 19:42:05.596 5: BRAVIA Sony_Fernseher: called function BRAVIA_GetStatus()
2018.01.23 19:42:05.597 5: BRAVIA Sony_Fernseher: called function BRAVIA_SendCommand()
2018.01.23 19:42:05.597 4: BRAVIA Sony_Fernseher: REQ getStatus/json
2018.01.23 19:42:05.598 5: BRAVIA Sony_Fernseher: POST http://192.168.10.45:80/sony/system ({"method":"getPowerStatus","params":[],"id":1,"version":"1.0"})
2018.01.23 19:42:05.598 5: BRAVIA Sony_Fernseher: header X-CERS-DEVICE-ID: fhem_remote
Cookie: auth=3a654ffd9dcbf1af91ced6c608ea4f622a4c38dccc1fcde0983ebaeefb6a04f1
2018.01.23 19:42:05.690 5: BRAVIA Sony_Fernseher: called function BRAVIA_ReceiveCommand() rc: HASH(0x3ad9d98) err:  data: {"id":1,"result":[{"status":"standby"}]}
2018.01.23 19:42:05.690 4: BRAVIA Sony_Fernseher: RCV getStatus/json
2018.01.23 19:42:05.691 4: BRAVIA Sony_Fernseher: RES getStatus/json - {"id":1,"result":[{"status":"standby"}]}
2018.01.23 19:42:24.984 4: CUL_Parse: CUL_0 A 0F 34 8610 3D87CF 000000 0AA8EA0E0940CD -99.5
2018.01.23 19:42:25.107 3: CUL_0: Unknown code A0F3486103D87CF0000000AA8EA0E0940::-99.5:CUL_0, help me!
2018.01.23 19:42:44.929 4: CUL_Parse: CUL_0 A 0C 50 865A 3A79EE 000000 ACD73C00 -74



Nach sehr langer Wartezeit ca. 20min wechselt der Button von gelb auf farblos und dann erst kann der Fernseher wieder eingeschaltet werden.

Habe es gerade im Log sehen können.
2018.01.23 20:00:51.172 5: BRAVIA Sony_Fernseher: header X-CERS-DEVICE-ID: fhem_remote
Cookie: auth=3a654ffd9dcbf1af91ced6c608ea4f622a4c38dccc1fcde0983ebaeefb6a04f1
Soapaction: "urn:schemas-upnp-org:service:RenderingControl:1#GetVolume"
Content-Type: text/xml
2018.01.23 20:00:51.174 5: BRAVIA Sony_Fernseher: called function BRAVIA_SendCommand()
2018.01.23 20:00:51.176 4: BRAVIA Sony_Fernseher: REQ upnp/getMute
2018.01.23 20:00:51.177 5: BRAVIA Sony_Fernseher: POST http://192.168.10.45:52323/upnp/control/RenderingControl (<?xml version="1.0"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:GetMute xmlns:u="urn:schemas-upnp-org:service:RenderingControl:1"><InstanceID>0</InstanceID><Channel>Master</Channel></u:GetMute></s:Body></s:Envelope>)
2018.01.23 20:00:51.177 5: BRAVIA Sony_Fernseher: header X-CERS-DEVICE-ID: fhem_remote
Cookie: auth=3a654ffd9dcbf1af91ced6c608ea4f622a4c38dccc1fcde0983ebaeefb6a04f1
Soapaction: "urn:schemas-upnp-org:service:RenderingControl:1#GetMute"
Content-Type: text/xml
2018.01.23 20:00:51.180 5: BRAVIA Sony_Fernseher: called function BRAVIA_SendCommand()
2018.01.23 20:00:51.181 4: BRAVIA Sony_Fernseher: REQ getCurrentExternalInputsStatus
2018.01.23 20:00:51.182 5: BRAVIA Sony_Fernseher: POST http://192.168.10.45:80/sony/avContent ({"id":2,"method":"getCurrentExternalInputsStatus","version":"1.0","params":[]})
2018.01.23 20:00:51.182 5: BRAVIA Sony_Fernseher: header X-CERS-DEVICE-ID: fhem_remote
Cookie: auth=3a654ffd9dcbf1af91ced6c608ea4f622a4c38dccc1fcde0983ebaeefb6a04f1
2018.01.23 20:00:51.186 5: BRAVIA Sony_Fernseher: called function BRAVIA_SendCommand()
2018.01.23 20:00:51.187 4: BRAVIA Sony_Fernseher: REQ getApplicationList
2018.01.23 20:00:51.188 5: BRAVIA Sony_Fernseher: POST http://192.168.10.45:80/sony/appControl ({"id":2,"method":"getApplicationList","version":"1.0","params":[]})
2018.01.23 20:00:51.188 5: BRAVIA Sony_Fernseher: header X-CERS-DEVICE-ID: fhem_remote
Cookie: auth=3a654ffd9dcbf1af91ced6c608ea4f622a4c38dccc1fcde0983ebaeefb6a04f1
2018.01.23 20:00:51.276 5: BRAVIA Sony_Fernseher: called function BRAVIA_Set()
2018.01.23 20:00:51.308 5: BRAVIA Sony_Fernseher: called function BRAVIA_ReceiveCommand() rc: HASH(0x3b067c8) err:  data: <?xml version="1.0"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:GetMuteResponse xmlns:u="urn:schemas-upnp-org:service:RenderingControl:1"><CurrentMute>0</CurrentMute></u:GetMuteResponse></s:Body></s:Envelope>
2018.01.23 20:00:51.309 4: BRAVIA Sony_Fernseher: RCV upnp/getMute
2018.01.23 20:00:51.310 4: BRAVIA Sony_Fernseher: RES upnp/getMute - <?xml version="1.0"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:GetMuteResponse xmlns:u="urn:schemas-upnp-org:service:RenderingControl:1"><CurrentMute>0</CurrentMute></u:GetMuteResponse></s:Body></s:Envelope>
2018.01.23 20:00:51.320 5: BRAVIA Sony_Fernseher: called function BRAVIA_ReceiveCommand() rc: HASH(0x3a6b8f0) err:  data: <?xml version="1.0"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:GetVolumeResponse xmlns:u="urn:schemas-upnp-org:service:RenderingControl:1"><CurrentVolume>9</CurrentVolume></u:GetVolumeResponse></s:Body></s:Envelope>
2018.01.23 20:00:51.320 4: BRAVIA Sony_Fernseher: RCV upnp/getVolume
2018.01.23 20:00:51.321 4: BRAVIA Sony_Fernseher: RES upnp/getVolume - <?xml version="1.0"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:GetVolumeResponse xmlns:u="urn:schemas-upnp-org:service:RenderingControl:1"><CurrentVolume>9</CurrentVolume></u:GetVolumeResponse></s:Body></s:Envelope>
2018.01.23 20:00:51.476 5: BRAVIA Sony_Fernseher: called function BRAVIA_ReceiveCommand() rc: HASH(0x3a28688) err:  data: {"id":2,"result":[[{"connection":true,"icon":"meta:hdmi","label":"","title":"HDMI 1","uri":"extInput:hdmi?port=1"},{"connection":false,"icon":"meta:hdmi","label":"","title":"HDMI 2/MHL","uri":"extInput:hdmi?port=2"},{"connection":false,"icon":"meta:hdmi","label":"","title":"HDMI 3","uri":"extInput:hdmi?port=3"},{"connection":false,"icon":"meta:hdmi","label":"","title":"HDMI 4/MHL","uri":"extInput:hdmi?port=4"},{"connection":false,"icon":"meta:scart","label":"","title":"AV1","uri":"extInput:scart?port=1"},{"connection":false,"icon":"meta:component","label":"","title":"AV2/Component","uri":"extInput:composite?port=1"},{"connection":true,"icon":"meta:tunerdevice","label":"gbquadplus","title":"Tuner 2","uri":"extInput:cec?type=tuner&port=2"},{"connection":false,"icon":"meta:wifidisplay","label":"","title":"Bildschirm spiegeln","uri":"extInput:widi?port=1"}]]}
2018.01.23 20:00:51.477 4: BRAVIA Sony_Fernseher: RCV getCurrentExternalInputsStatus
2018.01.23 20:00:51.478 4: BRAVIA Sony_Fernseher: RES getCurrentExternalInputsStatus - {"id":2,"result":[[{"connection":true,"icon":"meta:hdmi","label":"","title":"HDMI 1","uri":"extInput:hdmi?port=1"},{"connection":false,"icon":"meta:hdmi","label":"","title":"HDMI 2/MHL","uri":"extInput:hdmi?port=2"},{"connection":false,"icon":"meta:hdmi","label":"","title":"HDMI 3","uri":"extInput:hdmi?port=3"},{"connection":false,"icon":"meta:hdmi","label":"","title":"HDMI 4/MHL","uri":"extInput:hdmi?port=4"},{"connection":false,"icon":"meta:scart","label":"","title":"AV1","uri":"extInput:scart?port=1"},{"connection":false,"icon":"meta:component","label":"","title":"AV2/Component","uri":"extInput:composite?port=1"},{"connection":true,"icon":"meta:tunerdevice","label":"gbquadplus","title":"Tuner 2","uri":"extInput:cec?type=tuner&port=2"},{"connection":false,"icon":"meta:wifidisplay","label":"","title":"Bildschirm spiegeln","uri":"extInput:widi?port=1"}]]}
2018.01.23 20:00:51.539 5: BRAVIA Sony_Fernseher: called function BRAVIA_ReceiveCommand() rc: HASH(0x3a2b2d8) err:  data: {"id":2,"result":[[{"icon":"http://bravia.dl.playstation.net/bravia/WidgetBundles/Ext/AppDataSource/images/PS_Video_168x168.png","title":"PlayStationâ,,¢ Video","uri":"preset://video-unlimited"},{"icon":"http://192.168.10.45/sony/appControl/icon/pack%3AAppDataSource%2Fimg%2Fhome_AppPlayMemories.png","title":"PlayMemories Online","uri":"preset://play-memories"},{"icon":"http://192.168.10.45/sony/appControl/icon/pack%3AAppDataSource%2Fimg%2Fhome_AppInternetBrowser.png","title":"Internet-Browser","uri":"preset://web-browser"},{"icon":"http://192.168.10.45/sony/appControl/icon/pack%3AAppDataSource%2Fimg%2Fhome_AppTwitter.png","title":"TV Tweet","uri":"preset://twitter"},{"icon":"http://192.168.10.45/sony/appControl/icon/pack%3AAppDataSource%2Fimg%2Fhome_AppPhotoshare.png","title":"Photo Share","uri":"preset://photoshare"},{"icon":"http://192.168.10.45/sony/appControl/icon/pack%3AAppDataSource%2Fimg%2Fhome_AppScreenMirroring.png","title":"Bildschirm spiegeln","uri":"preset://wifi-display"},{"icon":"http://192.168.10.45/sony/appControl/icon/pack%3AAppDataSource%2Fimg%2Fhome_AppHomeTheaterControl.png","title":"Heimkinosteuerung","uri":"preset://home-theater-control"},{"icon":"http://192.168.10.45/sony/appControl/icon/aais-icon%3A%2F%2Fcom.sony.braviaaclock%2Fcom.sony.braviaaclock.MainActivity%2Fde_DE%2F.png","title":"\"α\" CLOCK","uri":"aapp://aais-app://com.sony.braviaaclock/com.sony.braviaaclock.MainActivity"},{"icon":"http://192.168.10.45/sony/appControl/icon/aais-icon%3A%2F%2Fcom.sony.dtv.mediaplayer%2Fcom.sony.dtv.mediaplayer.MediaContentsBrowserActivity%2Fde_DE%2F.png","title":"Media Player","uri":"aapp://aais-app://com.sony.dtv.mediaplayer/com.sony.dtv.mediaplayer.MediaContentsBrowserActivity"},{"icon":"http://192.168.10.45/sony/appControl/icon/aais-icon%3A%2F%2Fcom.sony.braviaphotoframemode%2Fcom.sony.photoframe.PhotoFrameAppActivity%2Fde_DE%2F.png","title":"Modus Bilderrahmen","uri":"aapp://aais-app://com.sony.braviaphotoframemode/com.sony.photoframe.PhotoFrameAppActivity"}]]}
2018.01.23 20:00:51.539 4: BRAVIA Sony_Fernseher: RCV getApplicationList
2018.01.23 20:00:51.540 4: BRAVIA Sony_Fernseher: RES getApplicationList - {"id":2,"result":[[{"icon":"http://bravia.dl.playstation.net/bravia/WidgetBundles/Ext/AppDataSource/images/PS_Video_168x168.png","title":"PlayStationâ,,¢ Video","uri":"preset://video-unlimited"},{"icon":"http://192.168.10.45/sony/appControl/icon/pack%3AAppDataSource%2Fimg%2Fhome_AppPlayMemories.png","title":"PlayMemories Online","uri":"preset://play-memories"},{"icon":"http://192.168.10.45/sony/appControl/icon/pack%3AAppDataSource%2Fimg%2Fhome_AppInternetBrowser.png","title":"Internet-Browser","uri":"preset://web-browser"},{"icon":"http://192.168.10.45/sony/appControl/icon/pack%3AAppDataSource%2Fimg%2Fhome_AppTwitter.png","title":"TV Tweet","uri":"preset://twitter"},{"icon":"http://192.168.10.45/sony/appControl/icon/pack%3AAppDataSource%2Fimg%2Fhome_AppPhotoshare.png","title":"Photo Share","uri":"preset://photoshare"},{"icon":"http://192.168.10.45/sony/appControl/icon/pack%3AAppDataSource%2Fimg%2Fhome_AppScreenMirroring.png","title":"Bildschirm spiegeln","uri":"preset://wifi-display"},{"icon":"http://192.168.10.45/sony/appControl/icon/pack%3AAppDataSource%2Fimg%2Fhome_AppHomeTheaterControl.png","title":"Heimkinosteuerung","uri":"preset://home-theater-control"},{"icon":"http://192.168.10.45/sony/appControl/icon/aais-icon%3A%2F%2Fcom.sony.braviaaclock%2Fcom.sony.braviaaclock.MainActivity%2Fde_DE%2F.png","title":"\"α\" CLOCK","uri":"aapp://aais-app://com.sony.braviaaclock/com.sony.braviaaclock.MainActivity"},{"icon":"http://192.168.10.45/sony/appControl/icon/aais-icon%3A%2F%2Fcom.sony.dtv.mediaplayer%2Fcom.sony.dtv.mediaplayer.MediaContentsBrowserActivity%2Fde_DE%2F.png","title":"Media Player","uri":"aapp://aais-app://com.sony.dtv.mediaplayer/com.sony.dtv.mediaplayer.MediaContentsBrowserActivity"},{"icon":"http://192.168.10.45/sony/appControl/icon/aais-icon%3A%2F%2Fcom.sony.braviaphotoframemode%2Fcom.sony.photoframe.PhotoFrameAppActivity%2Fde_DE%2F.png","title":"Modus Bilderrahmen","uri":"aapp://aais-app://com.sony.braviaphotoframemode/com.sony.photoframe.PhotoFrameAppActivity"}]]}





Viele Grüße

Sven




Raspi 3 mit CUL Stick 433/868MHZ, Homematic

vuffiraa

Hallo Sven,

bist du sicher, dass das schon die neue Version vom Modul war? Das ist eigentlich genau das Verhalten vor der letzten Änderung.
Die neue Version wird seit heute per Update verteilt bzw. wenn du sie per Hand getauscht hast, hast du auch ein Reload gemacht?

Gruß Ulf
FHEM 5.8 auf Cubietruck, Raspi B+

Weinzierl KNX IP BAOS 770, Homematic, EnOcean

l2r

hi,

folgende Meldung war nach einem Update heute morgen im Log:

Messages collected while initializing FHEM:
configfile: Cannot load module BRAVIA
./log/fhem.save: Please define TV_Wohnzimmer first
Please define TV_Wohnzimmer first


irgendwas scheint da nicht richtig zu sein

Gruß Michael
Wissen ist Macht.
Ich weiß nix.
Macht nix.

vuffiraa

Zitat von: l2r am 24 Januar 2018, 09:04:29
hi,

folgende Meldung war nach einem Update heute morgen im Log:

Messages collected while initializing FHEM:
configfile: Cannot load module BRAVIA
./log/fhem.save: Please define TV_Wohnzimmer first
Please define TV_Wohnzimmer first


irgendwas scheint da nicht richtig zu sein

Gruß Michael

Mist, kann ich erst heute Abend schauen. Das bestätigt dann aber auch, dass Sven noch nicht die neue Version hat.

Gruß Ulf
FHEM 5.8 auf Cubietruck, Raspi B+

Weinzierl KNX IP BAOS 770, Homematic, EnOcean

vuffiraa

So, jetzt sollte es wieder funktionieren. Tut mir Leid!
Der Fix wird aber erst morgen per Update verteilt. Ansonsten halt von hier https://svn.fhem.de/trac/export/15982/trunk/fhem/FHEM/70_BRAVIA.pm

Gruß Ulf
FHEM 5.8 auf Cubietruck, Raspi B+

Weinzierl KNX IP BAOS 770, Homematic, EnOcean

sven.scherf

Hallo Ulf,

ich habe mir das Modul geladen und eingebunden. Das Modul habe ich mit reload in Fhem eingeladen. Hierbei gab es keine Fehler mehr.
Mit dem neuen Modul kann ich meinen Sony jedoch nicht mehr steuern. Ein-, und Ausschalten funktioniern nicht.

Hier der Fhem list
Internals:
   CHANGED   
   CHANNELCOUNT 50
   DEF        192.168.10.45
   INTERVAL   45
   NAME       Sony_Fernseher
   NR         375
   STATE      standby
   TYPE       BRAVIA
   generation
   model     
   name       
   Helper:
     DBLOG:
       power:
         logdb:
           TIME       1516827884.46181
           VALUE      off
       presence:
         logdb:
           TIME       1516827705.2459
           VALUE      present
       state:
         logdb:
           TIME       1516827884.46181
           VALUE      standby
   READINGS:
     2018-01-23 22:27:45   channel         -
     2018-01-23 22:27:45   channelId       -
     2018-01-23 22:27:45   currentMedia    -
     2018-01-23 22:27:45   currentTitle    -
     2018-01-23 22:27:45   input           -
     2018-01-23 22:33:44   mute            off
     2018-01-24 22:04:44   power           off
     2018-01-24 22:01:45   presence        present
     2018-01-23 22:33:44   requestFormat   json
     2018-01-24 22:04:44   state           standby
     2018-01-24 21:51:57   volume          0
   helper:
     ADDRESS    192.168.10.45
     AVAILABLE  1
     HEADER     X-CERS-DEVICE-ID: fhem_remote
     lastInput 
     PORT:
       IRCC       80
       SERVICE    80
       UPNP       52323
     device:
Attributes:
   devStateIcon on:rc_GREEN:off off:rc_YELLOW:on absent:rc_STOP:on
   icon       it_television
   room       Wohnzimmer
   verbose    5
   webCmd     volume:channelUp:channelDown



Hier der Log beim/nach dem Einschalten. Der Sony ist ausgeschaltet. Das Icon in Fhem ist nicht mehr vorhanden, dort steht nun "standby"



2018.01.24 22:11:39.028 5: BRAVIA Sony_Fernseher: called function BRAVIA_Set()
2018.01.24 22:11:39.029 2: BRAVIA set Sony_Fernseher on
2018.01.24 22:11:39.163 5: BRAVIA Sony_Fernseher: called function BRAVIA_Set()
2018.01.24 22:11:39.166 5: BRAVIA Sony_Fernseher: called function BRAVIA_Set()
2018.01.24 22:11:39.169 5: BRAVIA Sony_Fernseher: called function BRAVIA_SendCommand()
2018.01.24 22:11:39.169 4: BRAVIA Sony_Fernseher: REQ ircc/POWER
2018.01.24 22:11:39.170 5: BRAVIA Sony_Fernseher: POST http://192.168.10.45:80/sony/IRCC (<?xml version="1.0"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:X_SendIRCC xmlns:u="urn:schemas-sony-com:service:IRCC:1"><IRCCCode>AAAAAQAAAAEAAAAVAw==</IRCCCode></u:X_SendIRCC></s:Body></s:Envelope>)
2018.01.24 22:11:39.171 5: BRAVIA Sony_Fernseher: header X-CERS-DEVICE-ID: fhem_remote
Soapaction: "urn:schemas-sony-com:service:IRCC:1#X_SendIRCC"
Content-Type: text/xml; charset=UTF-8
2018.01.24 22:11:39.174 4: CUL_Parse: CUL_0 A 0C C3 865A 3A79EE 000000 ACD93A01 -73.5
2018.01.24 22:11:39.282 5: BRAVIA Sony_Fernseher: called function BRAVIA_Set()
2018.01.24 22:11:39.350 5: BRAVIA Sony_Fernseher: called function BRAVIA_ReceiveCommand() rc: HASH(0x449c848) err:  data: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <s:Body>
        <s:Fault>
            <faultcode>s:Client</faultcode>
            <faultstring>UPnPError</faultstring>
            <detail>
                <UPnPError xmlns="urn:schemas-upnp-org:control-1-0">
                    <errorCode>606</errorCode>
                    <errorDescription>Action not authorized</errorDescription>
                </UPnPError>
            </detail>
        </s:Fault>
    </s:Body>
</s:Envelope>
2018.01.24 22:11:39.351 4: BRAVIA Sony_Fernseher: RCV ircc/AAAAAQAAAAEAAAAVAw==
2018.01.24 22:11:39.351 4: BRAVIA Sony_Fernseher: RES ircc/AAAAAQAAAAEAAAAVAw== - response
2018.01.24 22:11:39.607 5: BRAVIA Sony_Fernseher: called function BRAVIA_Set()
2018.01.24 22:11:50.248 5: BRAVIA Sony_Fernseher: called function BRAVIA_GetStatus()
2018.01.24 22:11:50.249 5: BRAVIA Sony_Fernseher: called function BRAVIA_SendCommand()
2018.01.24 22:11:50.249 4: BRAVIA Sony_Fernseher: REQ getStatus/json
2018.01.24 22:11:50.250 5: BRAVIA Sony_Fernseher: POST http://192.168.10.45:80/sony/system ({"method":"getPowerStatus","params":[],"id":1,"version":"1.0"})
2018.01.24 22:11:50.250 5: BRAVIA Sony_Fernseher: header X-CERS-DEVICE-ID: fhem_remote
2018.01.24 22:11:50.334 5: BRAVIA Sony_Fernseher: called function BRAVIA_ReceiveCommand() rc: HASH(0x442c9b8) err:  data: {"id":1,"result":[{"status":"standby"}]}
2018.01.24 22:11:50.334 4: BRAVIA Sony_Fernseher: RCV getStatus/json
2018.01.24 22:11:50.334 4: BRAVIA Sony_Fernseher: RES getStatus/json - {"id":1,"result":[{"status":"standby"}]}
2018.01.24 22:11:50.335 5: BRAVIA Sony_Fernseher: called function BRAVIA_SendCommand()
2018.01.24 22:11:50.336 4: BRAVIA Sony_Fernseher: REQ getSystemInformation
2018.01.24 22:11:50.336 5: BRAVIA Sony_Fernseher: POST http://192.168.10.45:80/sony/system ({"method":"getSystemInformation","params":[],"id":1,"version":"1.0"})
2018.01.24 22:11:50.336 5: BRAVIA Sony_Fernseher: header X-CERS-DEVICE-ID: fhem_remote
2018.01.24 22:11:50.434 5: BRAVIA Sony_Fernseher: called function BRAVIA_ReceiveCommand() rc: HASH(0x3b385f8) err:  data: {"auth_url":{"default":"http://192.168.10.45/sony/webauth/auth_default"}}
2018.01.24 22:11:50.434 4: BRAVIA Sony_Fernseher: RCV getSystemInformation
2018.01.24 22:11:50.435 4: BRAVIA Sony_Fernseher: RES getSystemInformation - {"auth_url":{"default":"http://192.168.10.45/sony/webauth/auth_default"}}


Kannst Du hier bitte nochmal nachschauen.

Danke und viele Grüße

Sven





Raspi 3 mit CUL Stick 433/868MHZ, Homematic

vuffiraa

Hallo Sven,

Durch den Fehler vorher ist die Registrierung verloren gegangen. Einfach nochmal registrieren, dann sollte es wieder funktionieren.

Gruß Ulf
FHEM 5.8 auf Cubietruck, Raspi B+

Weinzierl KNX IP BAOS 770, Homematic, EnOcean

l2r

sieht bei mir auch alles wieder gut aus!

Danke für die schnelle Reaktion!

Gruß Michael
Wissen ist Macht.
Ich weiß nix.
Macht nix.

sven.scherf

Hallo Ulf,

super recht vielen Dank.

Es funktioniert, da bin ich echt begeistert. :) :) :)

Nun kann ich meiner Frau einen Button plazieren und sie kann sich nicht mehr verdaddeln.


Viele Grüße

Sven
Raspi 3 mit CUL Stick 433/868MHZ, Homematic