Sony TV HX-, NX-Serie

Begonnen von StephanH, 03 Dezember 2013, 12:55:57

Vorheriges Thema - Nächstes Thema

jaguarxxl

Hallo alle zusammen,

ich habe mittlerweile die Probleme lösen können. Meni Update und der Rest funktionieren super.

Jatzt habe ich auch die json.pm Meldung nicht mehr.

Allerdings klappt das mit dem Modul immernoch nicht richtig.

- Ich lade die datei in den entsprechenden Ordner mit entsprechender Berechtigung
- Danach mache ich ein reload 70_Bravia ohne eine Fehlermeldung
- Danach will ich dann meinen Fernseher hinzufügen und bekomme die Meldung - Unknown Module.

Hier die Logdatei :

2015.09.29 17:09:07 5: Initializing Type Library:
2015.09.29 17:09:07 1: Including fhem.cfg
2015.09.29 17:09:07 5: Cmd: >attr global userattr cmdIcon devStateIcon devStateStyle icon sortby webCmd widgetOverride<
2015.09.29 17:09:07 5: Cmd: >attr global autoload_undefined_devices 1<
2015.09.29 17:09:07 5: Cmd: >attr global logfile ./log/fhem-%Y-%m.log<
2015.09.29 17:09:07 5: Cmd: >attr global modpath .<
2015.09.29 17:09:07 5: Cmd: >attr global motd SecurityCheck:

WEB,WEBphone,WEBtablet has no basicAuth attribute.

Restart FHEM for a new check if the problem is fixed,
or set the global attribute motd to none to supress this message.
<
2015.09.29 17:09:07 5: Cmd: >attr global statefile ./log/fhem.save<
2015.09.29 17:09:07 5: Cmd: >attr global verbose 5<
2015.09.29 17:09:07 5: Cmd: >define WEB FHEMWEB 8083 global<
2015.09.29 17:09:07 5: Loading ./FHEM/01_FHEMWEB.pm
2015.09.29 17:09:07 3: WEB: port 8083 opened
2015.09.29 17:09:07 5: Cmd: >attr WEB stylesheetPrefix dark<
2015.09.29 17:09:07 5: Cmd: >define WEBphone FHEMWEB 8084 global<
2015.09.29 17:09:07 3: WEBphone: port 8084 opened
2015.09.29 17:09:07 5: Cmd: >attr WEBphone stylesheetPrefix smallscreen<
2015.09.29 17:09:07 5: Cmd: >define WEBtablet FHEMWEB 8085 global<
2015.09.29 17:09:07 3: WEBtablet: port 8085 opened
2015.09.29 17:09:07 5: Cmd: >attr WEBtablet stylesheetPrefix touchpad<
2015.09.29 17:09:07 5: Cmd: >define Logfile FileLog ./log/fhem-%Y-%m.log fakelog<
2015.09.29 17:09:07 5: Loading ./FHEM/92_FileLog.pm
2015.09.29 17:09:07 5: Cmd: >define autocreate autocreate<
2015.09.29 17:09:07 5: Loading ./FHEM/98_autocreate.pm
2015.09.29 17:09:07 5: Cmd: >attr autocreate filelog ./log/%NAME-%Y.log<
2015.09.29 17:09:07 5: Cmd: >define eventTypes eventTypes ./log/eventTypes.txt<
2015.09.29 17:09:07 5: Loading ./FHEM/91_eventTypes.pm
2015.09.29 17:09:07 2: eventTypes: loaded 22 events from ./log/eventTypes.txt
2015.09.29 17:09:07 5: Cmd: >define initialUsbCheck notify global:INITIALIZED usb create<
2015.09.29 17:09:07 5: Loading ./FHEM/91_notify.pm
2015.09.29 17:09:07 5: Cmd: >define googlecalendar weblink iframe https://www.google.com/calendar/embed?src=#########%40googlemail.com&ctz=Europe/Berlin" style="border: 0" width="800" height="600" frameborder="0" scrolling="no"<
2015.09.29 17:09:07 5: Loading ./FHEM/98_weblink.pm
2015.09.29 17:09:07 5: Cmd: >attr googlecalendar room Infos<
2015.09.29 17:09:07 5: Cmd: >define Wetter Weather #########600 de<
2015.09.29 17:09:07 5: Loading ./FHEM/59_Weather.pm
2015.09.29 17:09:07 4: HttpUtils url=http://weather.yahooapis.com/forecastrss?w=########&u=c
2015.09.29 17:09:07 4: http://weather.yahooapis.com/forecastrss?w=##########&u=c: HTTP response code 200
2015.09.29 17:09:07 4: HttpUtils http://weather.yahooapis.com/forecastrss?w=12835064&u=c: Got data, length: 2694
2015.09.29 17:09:07 4: Weather Wetter: T: 18  H: 42  W: 18  P: 1032
2015.09.29 17:09:07 5: Cmd: >attr Wetter event-on-update-reading temperature,humidity,pressure,wind_speed,wind_chill,wind_direction<
2015.09.29 17:09:07 5: Cmd: >attr Wetter group Umwelt<
2015.09.29 17:09:07 5: Cmd: >define FileLog_Wetter FileLog ./log/Wetter-%Y.log Wetter<
2015.09.29 17:09:07 5: Cmd: >attr FileLog_Wetter logtype temp4hum6:wind_speed|humidity|temperature,text<
2015.09.29 17:09:07 5: Cmd: >define w_Wetter weblink htmlCode { WeatherAsHtmlD("Wetter") }<
2015.09.29 17:09:07 5: Cmd: >attr w_Wetter group Umwelt<
2015.09.29 17:09:07 5: Cmd: >attr w_Wetter htmlattr width_"220" height="330" frameborder="0" marginheight="0" marginwidth="0"<
2015.09.29 17:09:07 5: Cmd: >attr w_Wetter room Infos<
2015.09.29 17:09:07 5: Cmd: >define SVG_0 SVG FileLog_Wetter:temp4hum6:CURRENT<
2015.09.29 17:09:07 5: Loading ./FHEM/98_SVG.pm
2015.09.29 17:09:08 1: Including ./log/fhem.save
2015.09.29 17:09:08 5: Cmd: >setstate FileLog_Wetter active<
2015.09.29 17:09:08 5: Cmd: >setstate Logfile active<
2015.09.29 17:09:08 5: Cmd: >setstate SVG_0 initialized<
2015.09.29 17:09:08 5: Cmd: >setstate Wetter T: 18  H: 42  W: 18  P: 1032<
2015.09.29 17:09:08 5: Cmd: >setstate Wetter 2015-09-29 17:06:37 city ########, Germany<
2015.09.29 17:09:08 5: Cmd: >setstate Wetter 2015-09-29 17:06:37 code 28<
2015.09.29 17:09:08 5: Cmd: >setstate Wetter 2015-09-29 17:06:37 condition überwiegend wolkig<
2015.09.29 17:09:08 5: Cmd: >setstate Wetter 2015-09-29 17:06:37 current_date_time 29 Sep 2015 3:58 pm CEST<
2015.09.29 17:09:08 5: Cmd: >setstate Wetter 2015-09-29 17:06:37 day_of_week Di<
2015.09.29 17:09:08 5: Cmd: >setstate Wetter 2015-09-29 17:06:37 fc1_code 31<
2015.09.29 17:09:08 5: Cmd: >setstate Wetter 2015-09-29 17:06:37 fc1_condition klar<
2015.09.29 17:09:08 5: Cmd: >setstate Wetter 2015-09-29 17:06:37 fc1_day_of_week Di<
2015.09.29 17:09:08 5: Cmd: >setstate Wetter 2015-09-29 17:06:37 fc1_high_c 18<
2015.09.29 17:09:08 5: Cmd: >setstate Wetter 2015-09-29 17:06:37 fc1_icon sunny<
2015.09.29 17:09:08 5: Cmd: >setstate Wetter 2015-09-29 17:06:37 fc1_low_c 8<
2015.09.29 17:09:08 5: Cmd: >setstate Wetter 2015-09-29 17:06:37 fc2_code 32<
2015.09.29 17:09:08 5: Cmd: >setstate Wetter 2015-09-29 17:06:37 fc2_condition sonnig<
2015.09.29 17:09:08 5: Cmd: >setstate Wetter 2015-09-29 17:06:37 fc2_day_of_week Mi<
2015.09.29 17:09:08 5: Cmd: >setstate Wetter 2015-09-29 17:06:37 fc2_high_c 18<
2015.09.29 17:09:08 5: Cmd: >setstate Wetter 2015-09-29 17:06:37 fc2_icon sunny<
2015.09.29 17:09:08 5: Cmd: >setstate Wetter 2015-09-29 17:06:37 fc2_low_c 6<
2015.09.29 17:09:08 5: Cmd: >setstate Wetter 2015-09-29 17:06:37 fc3_code 32<
2015.09.29 17:09:08 5: Cmd: >setstate Wetter 2015-09-29 17:06:37 fc3_condition sonnig<
2015.09.29 17:09:08 5: Cmd: >setstate Wetter 2015-09-29 17:06:37 fc3_day_of_week Do<
2015.09.29 17:09:08 5: Cmd: >setstate Wetter 2015-09-29 17:06:37 fc3_high_c 18<
2015.09.29 17:09:08 5: Cmd: >setstate Wetter 2015-09-29 17:06:37 fc3_icon sunny<
2015.09.29 17:09:08 5: Cmd: >setstate Wetter 2015-09-29 17:06:37 fc3_low_c 5<
2015.09.29 17:09:08 5: Cmd: >setstate Wetter 2015-09-29 17:06:37 fc4_code 32<
2015.09.29 17:09:08 5: Cmd: >setstate Wetter 2015-09-29 17:06:37 fc4_condition sonnig<
2015.09.29 17:09:08 5: Cmd: >setstate Wetter 2015-09-29 17:06:37 fc4_day_of_week Fr<
2015.09.29 17:09:08 5: Cmd: >setstate Wetter 2015-09-29 17:06:37 fc4_high_c 19<
2015.09.29 17:09:08 5: Cmd: >setstate Wetter 2015-09-29 17:06:37 fc4_icon sunny<
2015.09.29 17:09:08 5: Cmd: >setstate Wetter 2015-09-29 17:06:37 fc4_low_c 6<
2015.09.29 17:09:08 5: Cmd: >setstate Wetter 2015-09-29 17:06:37 fc5_code 34<
2015.09.29 17:09:08 5: Cmd: >setstate Wetter 2015-09-29 17:06:37 fc5_condition heiter<
2015.09.29 17:09:08 5: Cmd: >setstate Wetter 2015-09-29 17:06:37 fc5_day_of_week Sa<
2015.09.29 17:09:08 5: Cmd: >setstate Wetter 2015-09-29 17:06:37 fc5_high_c 20<
2015.09.29 17:09:08 5: Cmd: >setstate Wetter 2015-09-29 17:06:37 fc5_icon mostly_sunny<
2015.09.29 17:09:08 5: Cmd: >setstate Wetter 2015-09-29 17:06:37 fc5_low_c 10<
2015.09.29 17:09:08 5: Cmd: >setstate Wetter 2015-09-29 17:06:37 humidity 42<
2015.09.29 17:09:08 5: Cmd: >setstate Wetter 2015-09-29 17:06:37 icon mostlycloudy<
2015.09.29 17:09:08 5: Cmd: >setstate Wetter 2015-09-29 17:06:37 pressure 1032<
2015.09.29 17:09:08 5: Cmd: >setstate Wetter 2015-09-29 17:06:37 pressure_trend 2<
2015.09.29 17:09:08 5: Cmd: >setstate Wetter 2015-09-29 17:06:37 pressure_trend_sym -<
2015.09.29 17:09:08 5: Cmd: >setstate Wetter 2015-09-29 17:06:37 pressure_trend_txt fallend<
2015.09.29 17:09:08 5: Cmd: >setstate Wetter 2015-09-29 17:06:37 state T: 18  H: 42  W: 18  P: 1032<
2015.09.29 17:09:08 5: Cmd: >setstate Wetter 2015-09-29 17:06:37 temp_c 18<
2015.09.29 17:09:08 5: Cmd: >setstate Wetter 2015-09-29 17:06:37 temp_f 64<
2015.09.29 17:09:08 5: Cmd: >setstate Wetter 2015-09-29 17:06:37 temperature 18<
2015.09.29 17:09:08 5: Cmd: >setstate Wetter 2015-09-29 17:06:37 visibility<
2015.09.29 17:09:08 5: Cmd: >setstate Wetter 2015-09-29 17:06:37 wind 18<
2015.09.29 17:09:08 5: Cmd: >setstate Wetter 2015-09-29 17:06:37 wind_chill 18<
2015.09.29 17:09:08 5: Cmd: >setstate Wetter 2015-09-29 17:06:37 wind_condition Wind: NO 18 km/h<
2015.09.29 17:09:08 5: Cmd: >setstate Wetter 2015-09-29 17:06:37 wind_direction 50<
2015.09.29 17:09:08 5: Cmd: >setstate Wetter 2015-09-29 17:06:37 wind_speed 18<
2015.09.29 17:09:08 5: Cmd: >setstate autocreate active<
2015.09.29 17:09:08 5: Cmd: >setstate eventTypes active<
2015.09.29 17:09:08 5: Cmd: >setstate global <no definition><
2015.09.29 17:09:08 5: Cmd: >setstate googlecalendar initialized<
2015.09.29 17:09:08 5: Cmd: >setstate initialUsbCheck 2015-09-29 17:06:37<
2015.09.29 17:09:08 5: Cmd: >setstate initialUsbCheck 2015-09-29 17:06:37 state active<
2015.09.29 17:09:08 5: Cmd: >setstate w_Wetter initialized<
2015.09.29 17:09:08 5: Triggering global (1 changes)
2015.09.29 17:09:08 5: Notify loop for global INITIALIZED
2015.09.29 17:09:08 5: Triggering initialUsbCheck
2015.09.29 17:09:08 4: initialUsbCheck exec usb create
2015.09.29 17:09:08 5: Cmd: >usb create<
2015.09.29 17:09:08 1: usb create starting
2015.09.29 17:09:08 4: ### ttyAMA0: checking if it is a CUL
2015.09.29 17:09:08 3: Probing CUL device /dev/ttyAMA0
2015.09.29 17:09:08 5: SW: 0a
2015.09.29 17:09:08 5: SW: 560a
2015.09.29 17:09:08 4: got wrong answer for a CUL
2015.09.29 17:09:08 4: ### ttyAMA0: checking if it is a TCM_ESP3
2015.09.29 17:09:08 3: Probing TCM_ESP3 device /dev/ttyAMA0
2015.09.29 17:09:08 5: SW: 5500010005700838
2015.09.29 17:09:08 4: got wrong answer for a TCM_ESP3
2015.09.29 17:09:08 4: ### ttyAMA0: checking if it is a FRM
2015.09.29 17:09:08 3: Probing FRM device /dev/ttyAMA0
2015.09.29 17:09:08 5: SW: f9
2015.09.29 17:09:14 5: SW: f079f7
2015.09.29 17:09:14 4: got wrong answer for a FRM
2015.09.29 17:09:14 1: usb create end
2015.09.29 17:09:14 2: SecurityCheck:  WEB,WEBphone,WEBtablet has no basicAuth attribute.  Restart FHEM for a new check if the problem is fixed, or set the global attribute motd to none to supress this message.
2015.09.29 17:09:14 0: Featurelevel: 5.6
2015.09.29 17:09:14 0: Server started with 13 defined entities (version $Id: fhem.pl 9307 2015-09-25 18:44:20Z rudolfkoenig $, os linux, user fhem, pid 2428)
2015.09.29 17:09:14 4: Connection accepted from FHEMWEB:192.168.178.30:54108
2015.09.29 17:09:14 4: FHEMWEB:192.168.178.30:54108 GET /fhem?XHR=1&inform=type=status;filter=;since=1443539342.451;fmt=JSON×tamp=1443539347443; BUFLEN:0
2015.09.29 17:09:14 4: Connection accepted from FHEMWEB:192.168.178.30:54109
2015.09.29 17:09:14 4: Connection closed for FHEMWEB:192.168.178.30:54108: EOF
2015.09.29 17:09:14 4: Connection accepted from FHEMWEB:192.168.178.30:54110
2015.09.29 17:09:14 4: FHEMWEB:192.168.178.30:54109 GET /fhem?; BUFLEN:0
2015.09.29 17:09:14 4: name: /fhem? / RL:1101 / text/html; charset=UTF-8 / Content-Encoding: gzip
/
2015.09.29 17:09:14 4: FHEMWEB:192.168.178.30:54110 GET /fhem?; BUFLEN:0
2015.09.29 17:09:14 4: name: /fhem? / RL:1101 / text/html; charset=UTF-8 / Content-Encoding: gzip
/
2015.09.29 17:09:14 4: Connection closed for FHEMWEB:192.168.178.30:54109: EOF
2015.09.29 17:09:14 4: FHEMWEB:192.168.178.30:54110 GET /fhem?XHR=1&inform=type=status;filter=;since=1443539353;fmt=JSON×tamp=1443539352848; BUFLEN:0
2015.09.29 17:09:17 4: Connection closed for FHEMWEB:192.168.178.30:54110: Connection reset by peer
2015.09.29 17:09:17 4: Connection accepted from FHEMWEB:192.168.178.30:54113
2015.09.29 17:09:17 4: FHEMWEB:192.168.178.30:54113 POST /fhem&cmd=define+TV_Wohnzimmer+BRAVA+192.168.178.20+120; BUFLEN:0
2015.09.29 17:09:17 5: Cmd: >define TV_Wohnzimmer BRAVA 192.168.178.20 120<
2015.09.29 17:09:17 4: name: /fhem&cmd=define+TV_Wohnzimmer+BRAVA+192.168.178.20+120 / RL:1001 / text/html; charset=UTF-8 / Content-Encoding: gzip
/
2015.09.29 17:09:18 4: FHEMWEB:192.168.178.30:54113 GET /fhem?XHR=1&inform=type=status;filter=;since=1443539356;fmt=JSON×tamp=1443539356128; BUFLEN:0
2015.09.29 17:09:23 4: Connection closed for FHEMWEB:192.168.178.30:54113: Connection reset by peer
2015.09.29 17:09:23 4: Connection accepted from FHEMWEB:192.168.178.30:54115
2015.09.29 17:09:23 4: FHEMWEB:192.168.178.30:54115 GET /fhem/FileLog_logWrapper?dev=Logfile&type=text&file=fhem-2015-09.log; BUFLEN:0
2015.09.29 17:09:23 4: Connection accepted from FHEMWEB:192.168.178.30:54116
2015.09.29 17:09:23 4: FHEMWEB:192.168.178.30:54116 GET /fhem/FileLog_logWrapper?dev=Logfile&type=text&file=fhem-2015-09.log; BUFLEN:0
2015.09.29 17:09:23 4: FHEMWEB:192.168.178.30:54116 GET /fhem/FileLog_logWrapper?XHR=1&inform=type=status;filter=;since=1443539362;fmt=JSON×tamp=1443539361623; BUFLEN:0
2015.09.29 17:09:35 4: Connection closed for FHEMWEB:192.168.178.30:54116: Connection reset by peer
2015.09.29 17:09:40 4: Connection accepted from FHEMWEB:192.168.178.30:54131
2015.09.29 17:09:40 4: FHEMWEB:192.168.178.30:54131 GET /fhem/FileLog_logWrapper?XHR=1&inform=type=status;filter=;since=1443539362;fmt=JSON×tamp=1443539378569; BUFLEN:0
2015.09.29 17:10:03 4: Connection accepted from FHEMWEB:192.168.178.30:54134
2015.09.29 17:10:03 4: FHEMWEB:192.168.178.30:54134 POST /fhem?cmd=save&XHR=1; BUFLEN:0
2015.09.29 17:10:03 5: Cmd: >save<
2015.09.29 17:10:03 5: Triggering global (1 changes)
2015.09.29 17:10:03 5: Notify loop for global SAVE
2015.09.29 17:10:03 4: name: /fhem?cmd=save&XHR=1 / RL:52 / text/plain; charset=UTF-8 / Content-Encoding: gzip
/
2015.09.29 17:10:38 4: Connection closed for FHEMWEB:192.168.178.30:54131: Connection reset by peer
2015.09.29 17:10:43 4: FHEMWEB:192.168.178.30:54134 GET /fhem/FileLog_logWrapper?XHR=1&inform=type=status;filter=;since=1443539362;fmt=JSON×tamp=1443539441625; BUFLEN:0
2015.09.29 17:11:07 4: Closing inactive connection FHEMWEB:192.168.178.30:54115
2015.09.29 17:13:34 4: Connection accepted from FHEMWEB:192.168.178.30:54288
2015.09.29 17:13:34 4: FHEMWEB:192.168.178.30:54288 GET /fhem/FileLog_logWrapper?XHR=1&inform=type=status;filter=;since=1443539362;fmt=JSON×tamp=1443539612687; BUFLEN:0
2015.09.29 17:13:53 4: Connection closed for FHEMWEB:192.168.178.30:54288: Connection reset by peer
2015.09.29 17:13:58 4: Connection accepted from FHEMWEB:192.168.178.30:54381
2015.09.29 17:13:58 4: FHEMWEB:192.168.178.30:54381 GET /fhem/FileLog_logWrapper?XHR=1&inform=type=status;filter=;since=1443539362;fmt=JSON×tamp=1443539636513; BUFLEN:0
2015.09.29 17:16:15 4: Connection closed for FHEMWEB:192.168.178.30:54381: Connection reset by peer
2015.09.29 17:16:20 4: Connection accepted from FHEMWEB:192.168.178.30:54454
2015.09.29 17:16:20 4: FHEMWEB:192.168.178.30:54454 GET /fhem/FileLog_logWrapper?XHR=1&inform=type=status;filter=;since=1443539362;fmt=JSON×tamp=1443539778681; BUFLEN:0
2015.09.29 17:17:18 4: Connection closed for FHEMWEB:192.168.178.30:54454: Connection reset by peer
2015.09.29 17:17:23 4: Connection accepted from FHEMWEB:192.168.178.30:54459
2015.09.29 17:17:23 4: FHEMWEB:192.168.178.30:54459 GET /fhem/FileLog_logWrapper?XHR=1&inform=type=status;filter=;since=1443539362;fmt=JSON×tamp=1443539841754; BUFLEN:0
2015.09.29 17:18:03 4: Connection closed for FHEMWEB:192.168.178.30:54459: Connection reset by peer
2015.09.29 17:18:03 4: Connection accepted from FHEMWEB:192.168.178.30:54462
2015.09.29 17:18:03 4: Connection accepted from FHEMWEB:192.168.178.30:54463
2015.09.29 17:18:03 4: FHEMWEB:192.168.178.30:54462 GET /fhem/FileLog_logWrapper?dev=Logfile&type=text&file=fhem-2015-09.log; BUFLEN:0
2015.09.29 17:18:03 4: FHEMWEB:192.168.178.30:54463 GET /fhem/FileLog_logWrapper?dev=Logfile&type=text&file=fhem-2015-09.log; BUFLEN:0

vuffiraa

Wenn ich das richtig sehe, hast du dich beim Namen des Moduls vertan. Da fehlt ein 'I'. Es heißt BRAVIA.

Gruß,
Ulf
FHEM 5.8 auf Cubietruck, Raspi B+

Weinzierl KNX IP BAOS 770, Homematic, EnOcean

jaguarxxl

Oh mann ... man kann aber auch doof sein
Einmal den Befehl eingegeben und seit der ersten mal nicht mehr nach geschaut.

Jetzt gehts natürlich ich Dummerchen.

Danke aber auch für die vorherige Hilfe :-)

hoods

Hallo zusammen,

jipppy nun kann ich meinen Sony KDL-55W905A auch mit FHEM einschalten.

Vielen Dank an vuffiraa für das Modul, die Mühe und den super Support!

Gruß hoods
Odroid C2, FHEM 5.8, HMUSB, Jeelink, Rademacher DuoFern Stick, Benning WR über HTTPMOD

Dersch

Wird an dem Modul noch weiter gearbeitet? FHEM sieht leider nach wie vor nicht den OFF state zuverlässig und einschalten geht nur sporadisch. Ich würde nun auch eindlich der Bitte nachkommen und Logfile Verbose 5 Daten liefern da ich mich nun etwas intensiver in FHEM einarbeite.

vuffiraa

Zitat von: Dersch am 27 Oktober 2015, 14:26:24
Wird an dem Modul noch weiter gearbeitet? FHEM sieht leider nach wie vor nicht den OFF state zuverlässig und einschalten geht nur sporadisch. Ich würde nun auch eindlich der Bitte nachkommen und Logfile Verbose 5 Daten liefern da ich mich nun etwas intensiver in FHEM einarbeite.

Hallo Dersch,

klar arbeite ich weiter an dem Modul. Es soll auch mal offiziell zu Fhem gehören und nicht nur hier Forum verteilt werden. Ich kann nur leider deine Probleme bei mir nicht nachstellen, da mein Sony älter ist. Bisher hat sich noch kein anderer Entwickler gemeldet, der das Modul live an die neueren Sonys anpassen kann. Trotzdem versuche ich die Modulfunktionalität auch auf den neueren Geräten zu unterstützen. Daher brauche ich aber Logs und auch etwas Mithilfe beim Testen.

Helfen würden mir erst mal:
- Logs vom Ausschalten (erfolgreicher/fehlender Statuswechsel)
- Logs vom Einschalten (auch wieder beide Fälle)
- das Ergebnis von 'list <sony>'

Die letzte Version des Moduls hatte ich hier gepostet.

Gruß Ulf

FHEM 5.8 auf Cubietruck, Raspi B+

Weinzierl KNX IP BAOS 770, Homematic, EnOcean

extrafein

#186
Hallo!

Erst einmal besten Dank vuffiraa, dass du an diesem Modul arbeitest. Ich setze fhem schon ein paar Jahre ein und hatte mich immer etwas geärgert, dass es zu meinem SonTV kein Modul gab. Das hat endlich ein Ende.  :D
Jetzt würde ich gerne helfen, dass das Modul noch ein wenig besser wird.  8)

Ich besitze einen BRAVIA KDL-40NX725
und setze das 70_BRAVIA Modul in der Version Version 0.4.4 ein.
Mit einer älteren Modul Version hatte ich das Modul mit dem Fernseher bereits erfolgreich mit "set SonyTV register" gepairt.
requestFormat steht auf xml.

Was funktioniert:
- Erkennung, ob TV eingeschaltet ist
- VolumeUp und VolumeDown
- ChannelUp und ChannelDown
- Input Erkennung: z.B. Broadcast oder ExtInput
- über "set SonyTV remoteControl xxxx" funktionieren einige Befehle auch "mute ("set SonyTV mute on" geht aber nicht!)

Folgende Probleme sehe ich:
- Readings sind sehr unvollständig
- "set SonyTV mute on" geht nicht
- "set SonyTV volume 40" geht nicht
- Upnp support -> 500er HTTP Error -> s.Log
- "set SonyTV off" aber auch "set SonTV remoteControl POWER" oder "set SonTV remoteControl STANDBY" funktioniert nicht
- "get SonyTV volume" liefert einen falschen Wert.

Model und Version werden nicht erkannt (siehe Readings) im Log aber vorhanden.
Server: Linux/2.6 UPnP/1.0 KDL-40NX725/1.7
X-AV-Server-Info: av=5.0; cn="Sony Corporation"; mn="BRAVIA KDL-40NX725"; mv="1.7";
X-AV-Physical-Unit-Info: pa="BRAVIA KDL-40NX725";

Anbei noch mehr Informationen, die helfen sollen das Problem einzugrenzen.
Wenn du noch mehr Informationen/Tests benötigst ... kein Thema.
Sag mir einfach in welcher Reihenfolge wir die Probleme angehen sollen.

Danke vorab für deine Hilfe!

Gruß
extrafein

Die Readings sind wie folgt:
area
DEU
2015-10-30 23:19:20

authCookie
0
2015-10-30 23:31:30

authExpires
0
2015-10-31 00:02:59

channel
0
2015-10-30 23:31:30

channelId
0
2015-10-30 23:31:30

generation
1.0
2015-10-30 23:19:20

input
Others
2015-10-31 08:06:02

modelName
0
2015-10-30 23:31:30

mute
on
2015-10-30 23:29:52

name
BRAVIA
2015-10-30 23:19:20

power
on
2015-10-31 08:02:16

presence
present
2015-10-31 08:02:16

registrationUUID
3e1a9f47cd09f6abc2ad0c3a5ecea7c9
2015-10-30 23:26:34

requestFormat
xml
2015-10-31 00:08:42

state
on
2015-10-31 08:02:16

upnp
on
2015-10-31 00:09:36

volume
1
2015-10-30 23:30:34


Nicht funktionierendes Power Off - Log:

2015.10.31 08:38:56 2: BRAVIA set SonyTV off
2015.10.31 08:38:56 5: BRAVIA SonyTV: called function BRAVIA_SendCommand()
2015.10.31 08:38:56 4: BRAVIA SonyTV: REQ ircc/POWER
2015.10.31 08:38:56 5: BRAVIA SonyTV: POST http://192.168.179.27:80/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>)
2015.10.31 08:38:56 5: BRAVIA SonyTV: header X-CERS-DEVICE-ID: fhem_remote
Cookie: auth=0
Soapaction: "urn:schemas-sony-com:service:IRCC:1#X_SendIRCC"
Content-Type: text/xml; charset=UTF-8
2015.10.31 08:38:56 5: BRAVIA SonyTV: called function BRAVIA_Set()
2015.10.31 08:38:56 5: BRAVIA SonyTV: called function BRAVIA_Get()
2015.10.31 08:38:56 5: BRAVIA SonyTV: called function BRAVIA_ReceiveCommand() rc: HTTP/1.1 200 OK
Content-Length: 370
Content-Type: text/xml
ACCESS-CONTROL-ALLOW-ORIGIN: *
Date: Sat, 31 Oct 2015 07:38:56 GMT

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <s:Body>
        <u:X_SendIRCCResponse xmlns:u="urn:schemas-sony-com:service:IRCC:1">
        </u:X_SendIRCCResponse>
    </s:Body>
</s:Envelope>
err:  data: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <s:Body>
        <u:X_SendIRCCResponse xmlns:u="urn:schemas-sony-com:service:IRCC:1">
        </u:X_SendIRCCResponse>
    </s:Body>
</s:Envelope>

2015.10.31 08:38:56 4: BRAVIA SonyTV: RCV ircc/AAAAAQAAAAEAAAAVAw==
2015.10.31 08:38:56 4: BRAVIA SonyTV: RES ircc/AAAAAQAAAAEAAAAVAw== - response
2015.10.31 08:38:57 5: BRAVIA SonyTV: called function BRAVIA_Set()
2015.10.31 08:38:57 5: BRAVIA SonyTV: called function BRAVIA_GetStatus()
2015.10.31 08:38:57 5: BRAVIA SonyTV: called function BRAVIA_SendCommand()
2015.10.31 08:38:57 4: BRAVIA SonyTV: REQ getStatus/xml
2015.10.31 08:38:57 5: BRAVIA SonyTV: GET http://192.168.179.27:80/cers/api/getStatus
2015.10.31 08:38:57 5: BRAVIA SonyTV: header X-CERS-DEVICE-ID: fhem_remote
Cookie: auth=0
2015.10.31 08:38:57 5: BRAVIA SonyTV: called function BRAVIA_ReceiveCommand() rc: HTTP/1.1 200 OK
Content-Length: 147
Content-Type: text/xml
ACCESS-CONTROL-ALLOW-ORIGIN: *
Date: Sat, 31 Oct 2015 07:38:58 GMT

<?xml version="1.0"?>
<statusList>
    <status name="viewing">
        <statusItem field="source" value="Broadcast" />
    </status>
</statusList>
err:  data: <?xml version="1.0"?>
<statusList>
    <status name="viewing">
        <statusItem field="source" value="Broadcast" />
    </status>
</statusList>

2015.10.31 08:38:57 4: BRAVIA SonyTV: RCV getStatus/xml
2015.10.31 08:38:57 4: BRAVIA SonyTV: RES getStatus/xml - <?xml version="1.0"?>
<statusList>
    <status name="viewing">
        <statusItem field="source" value="Broadcast" />
    </status>
</statusList>

2015.10.31 08:38:57 5: BRAVIA SonyTV: called function BRAVIA_SendCommand()
2015.10.31 08:38:57 4: BRAVIA SonyTV: REQ upnp/getVolume
2015.10.31 08:38:57 5: BRAVIA SonyTV: POST http://192.168.179.27: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:GetVolume xmlns:u="urn:schemas-upnp-org:service:RenderingControl:1"><InstanceID>0</InstanceID><Channel>Master</Channel></u:GetVolume></s:Body></s:Envelope>)
2015.10.31 08:38:57 5: BRAVIA SonyTV: header X-CERS-DEVICE-ID: fhem_remote
Cookie: auth=0
Soapaction: "urn:schemas-upnp-org:service:RenderingControl:1#GetVolume"
Content-Type: text/xml
2015.10.31 08:38:57 5: BRAVIA SonyTV: called function BRAVIA_SendCommand()
2015.10.31 08:38:57 4: BRAVIA SonyTV: REQ upnp/getMute
2015.10.31 08:38:57 5: BRAVIA SonyTV: POST http://192.168.179.27: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>)
2015.10.31 08:38:58 5: BRAVIA SonyTV: header X-CERS-DEVICE-ID: fhem_remote
Cookie: auth=0
Soapaction: "urn:schemas-upnp-org:service:RenderingControl:1#GetMute"
Content-Type: text/xml
2015.10.31 08:38:58 5: BRAVIA SonyTV: called function BRAVIA_ReceiveCommand() rc: HTTP/1.1 500 Internal Server Error
Content-Length: 429
Content-Type: text/xml; charset="utf-8"
EXT:
Connection: close
Date: Sat, 31 Oct 2015 07:38:58 GMT
Server: Linux/2.6 UPnP/1.0 KDL-40NX725/1.7
X-AV-Server-Info: av=5.0; cn="Sony Corporation"; mn="BRAVIA KDL-40NX725"; mv="1.7";
X-AV-Physical-Unit-Info: pa="BRAVIA KDL-40NX725";

<?xml version="1.0"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><s:Fault><faultcode>s:Client</faultcode><faultstring>UPnPError</faultstring><detail><UPnPError xmlns="urn:schemas-upnp-org:control-1-0"><errorCode>501</errorCode><errorDescription>Action GetVolume failed
</errorDescription></UPnPError></detail></s:Fault></s:Body></s:Envelope> 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><s:Fault><faultcode>s:Client</faultcode><faultstring>UPnPError</faultstring><detail><UPnPError xmlns="urn:schemas-upnp-org:control-1-0"><errorCode>501</errorCode><errorDescription>Action GetVolume failed
</errorDescription></UPnPError></detail></s:Fault></s:Body></s:Envelope>
2015.10.31 08:38:58 4: BRAVIA SonyTV: RCV upnp/getVolume
2015.10.31 08:38:58 4: BRAVIA SonyTV: 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><s:Fault><faultcode>s:Client</faultcode><faultstring>UPnPError</faultstring><detail><UPnPError xmlns="urn:schemas-upnp-org:control-1-0"><errorCode>501</errorCode><errorDescription>Action GetVolume failed
</errorDescription></UPnPError></detail></s:Fault></s:Body></s:Envelope>
2015.10.31 08:38:58 5: BRAVIA SonyTV: called function BRAVIA_ReceiveCommand() rc: HTTP/1.1 500 Internal Server Error
Content-Length: 427
Content-Type: text/xml; charset="utf-8"
EXT:
Connection: close
Date: Sat, 31 Oct 2015 07:38:58 GMT
Server: Linux/2.6 UPnP/1.0 KDL-40NX725/1.7
X-AV-Server-Info: av=5.0; cn="Sony Corporation"; mn="BRAVIA KDL-40NX725"; mv="1.7";
X-AV-Physical-Unit-Info: pa="BRAVIA KDL-40NX725";

<?xml version="1.0"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><s:Fault><faultcode>s:Client</faultcode><faultstring>UPnPError</faultstring><detail><UPnPError xmlns="urn:schemas-upnp-org:control-1-0"><errorCode>501</errorCode><errorDescription>Action GetMute failed
</errorDescription></UPnPError></detail></s:Fault></s:Body></s:Envelope> 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><s:Fault><faultcode>s:Client</faultcode><faultstring>UPnPError</faultstring><detail><UPnPError xmlns="urn:schemas-upnp-org:control-1-0"><errorCode>501</errorCode><errorDescription>Action GetMute failed
</errorDescription></UPnPError></detail></s:Fault></s:Body></s:Envelope>
2015.10.31 08:38:58 4: BRAVIA SonyTV: RCV upnp/getMute
2015.10.31 08:38:58 4: BRAVIA SonyTV: 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><s:Fault><faultcode>s:Client</faultcode><faultstring>UPnPError</faultstring><detail><UPnPError xmlns="urn:schemas-upnp-org:control-1-0"><errorCode>501</errorCode><errorDescription>Action GetMute failed
</errorDescription></UPnPError></detail></s:Fault></s:Body></s:Envelope>


Funktionierendes VolumeDown - Log:
2015.10.31 08:23:26 2: BRAVIA set SonyTV volumeDown
2015.10.31 08:23:26 5: BRAVIA SonyTV: called function BRAVIA_SendCommand()
2015.10.31 08:23:26 4: BRAVIA SonyTV: REQ ircc/VOLDOWN
2015.10.31 08:23:26 5: BRAVIA SonyTV: POST http://192.168.179.27:80/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>AAAAAQAAAAEAAAATAw==</IRCCCode></u:X_SendIRCC></s:Body></s:Envelope>)
2015.10.31 08:23:26 5: BRAVIA SonyTV: header X-CERS-DEVICE-ID: fhem_remote
Cookie: auth=0
Soapaction: "urn:schemas-sony-com:service:IRCC:1#X_SendIRCC"
Content-Type: text/xml; charset=UTF-8
2015.10.31 08:23:26 5: BRAVIA SonyTV: called function BRAVIA_Set()
2015.10.31 08:23:26 5: BRAVIA SonyTV: called function BRAVIA_Get()
2015.10.31 08:23:26 5: BRAVIA SonyTV: called function BRAVIA_ReceiveCommand() rc: HTTP/1.1 200 OK
Content-Length: 370
Content-Type: text/xml
ACCESS-CONTROL-ALLOW-ORIGIN: *
Date: Sat, 31 Oct 2015 07:23:27 GMT

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <s:Body>
        <u:X_SendIRCCResponse xmlns:u="urn:schemas-sony-com:service:IRCC:1">
        </u:X_SendIRCCResponse>
    </s:Body>
</s:Envelope>
err:  data: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <s:Body>
        <u:X_SendIRCCResponse xmlns:u="urn:schemas-sony-com:service:IRCC:1">
        </u:X_SendIRCCResponse>
    </s:Body>
</s:Envelope>

2015.10.31 08:23:26 4: BRAVIA SonyTV: RCV ircc/AAAAAQAAAAEAAAATAw==
2015.10.31 08:23:26 4: BRAVIA SonyTV: RES ircc/AAAAAQAAAAEAAAATAw== - response


Nach dem Start des TV erhalte ich im Log folgendes:
2015.10.31 08:02:16 5: BRAVIA SonyTV: called function BRAVIA_GetStatus()
2015.10.31 08:02:16 5: BRAVIA SonyTV: called function BRAVIA_SendCommand()
2015.10.31 08:02:16 4: BRAVIA SonyTV: REQ getStatus/xml
2015.10.31 08:02:16 5: BRAVIA SonyTV: GET http://192.168.179.27:80/cers/api/getStatus
2015.10.31 08:02:16 5: BRAVIA SonyTV: header X-CERS-DEVICE-ID: fhem_remote
Cookie: auth=0
2015.10.31 08:02:16 5: BRAVIA SonyTV: called function BRAVIA_ReceiveCommand() rc: HTTP/1.1 200 OK
Content-Length: 147
Content-Type: text/xml
ACCESS-CONTROL-ALLOW-ORIGIN: *
Date: Sat, 31 Oct 2015 07:02:16 GMT

<?xml version="1.0"?>
<statusList>
    <status name="viewing">
        <statusItem field="source" value="Broadcast" />
    </status>
</statusList>
err:  data: <?xml version="1.0"?>
<statusList>
    <status name="viewing">
        <statusItem field="source" value="Broadcast" />
    </status>
</statusList>

2015.10.31 08:02:16 4: BRAVIA SonyTV: RCV getStatus/xml
2015.10.31 08:02:16 4: BRAVIA SonyTV: RES getStatus/xml - <?xml version="1.0"?>
<statusList>
    <status name="viewing">
        <statusItem field="source" value="Broadcast" />
    </status>
</statusList>

2015.10.31 08:02:16 5: BRAVIA SonyTV: called function BRAVIA_SendCommand()
2015.10.31 08:02:16 4: BRAVIA SonyTV: REQ upnp/getVolume
2015.10.31 08:02:16 5: BRAVIA SonyTV: POST http://192.168.179.27: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:GetVolume xmlns:u="urn:schemas-upnp-org:service:RenderingControl:1"><InstanceID>0</InstanceID><Channel>Master</Channel></u:GetVolume></s:Body></s:Envelope>)
2015.10.31 08:02:16 5: BRAVIA SonyTV: header X-CERS-DEVICE-ID: fhem_remote
Cookie: auth=0
Soapaction: "urn:schemas-upnp-org:service:RenderingControl:1#GetVolume"
Content-Type: text/xml
2015.10.31 08:02:16 5: BRAVIA SonyTV: called function BRAVIA_SendCommand()
2015.10.31 08:02:16 4: BRAVIA SonyTV: REQ upnp/getMute
2015.10.31 08:02:16 5: BRAVIA SonyTV: POST http://192.168.179.27: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>)
2015.10.31 08:02:16 5: BRAVIA SonyTV: header X-CERS-DEVICE-ID: fhem_remote
Cookie: auth=0
Soapaction: "urn:schemas-upnp-org:service:RenderingControl:1#GetMute"
Content-Type: text/xml
2015.10.31 08:02:16 5: BRAVIA SonyTV: called function BRAVIA_Set()
2015.10.31 08:02:16 5: BRAVIA SonyTV: called function BRAVIA_ReceiveCommand() rc: HTTP/1.1 500 Internal Server Error
Content-Length: 429
Content-Type: text/xml; charset="utf-8"
EXT:
Connection: close
Date: Sat, 31 Oct 2015 07:02:16 GMT
Server: Linux/2.6 UPnP/1.0 KDL-40NX725/1.7
X-AV-Server-Info: av=5.0; cn="Sony Corporation"; mn="BRAVIA KDL-40NX725"; mv="1.7";
X-AV-Physical-Unit-Info: pa="BRAVIA KDL-40NX725";

<?xml version="1.0"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><s:Fault><faultcode>s:Client</faultcode><faultstring>UPnPError</faultstring><detail><UPnPError xmlns="urn:schemas-upnp-org:control-1-0"><errorCode>501</errorCode><errorDescription>Action GetVolume failed
</errorDescription></UPnPError></detail></s:Fault></s:Body></s:Envelope> 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><s:Fault><faultcode>s:Client</faultcode><faultstring>UPnPError</faultstring><detail><UPnPError xmlns="urn:schemas-upnp-org:control-1-0"><errorCode>501</errorCode><errorDescription>Action GetVolume failed
</errorDescription></UPnPError></detail></s:Fault></s:Body></s:Envelope>
2015.10.31 08:02:16 4: BRAVIA SonyTV: RCV upnp/getVolume
2015.10.31 08:02:16 4: BRAVIA SonyTV: 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><s:Fault><faultcode>s:Client</faultcode><faultstring>UPnPError</faultstring><detail><UPnPError xmlns="urn:schemas-upnp-org:control-1-0"><errorCode>501</errorCode><errorDescription>Action GetVolume failed
</errorDescription></UPnPError></detail></s:Fault></s:Body></s:Envelope>
2015.10.31 08:02:16 5: BRAVIA SonyTV: called function BRAVIA_ReceiveCommand() rc: HTTP/1.1 500 Internal Server Error
Content-Length: 427
Content-Type: text/xml; charset="utf-8"
EXT:
Connection: close
Date: Sat, 31 Oct 2015 07:02:16 GMT
Server: Linux/2.6 UPnP/1.0 KDL-40NX725/1.7
X-AV-Server-Info: av=5.0; cn="Sony Corporation"; mn="BRAVIA KDL-40NX725"; mv="1.7";
X-AV-Physical-Unit-Info: pa="BRAVIA KDL-40NX725";

<?xml version="1.0"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><s:Fault><faultcode>s:Client</faultcode><faultstring>UPnPError</faultstring><detail><UPnPError xmlns="urn:schemas-upnp-org:control-1-0"><errorCode>501</errorCode><errorDescription>Action GetMute failed
</errorDescription></UPnPError></detail></s:Fault></s:Body></s:Envelope> 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><s:Fault><faultcode>s:Client</faultcode><faultstring>UPnPError</faultstring><detail><UPnPError xmlns="urn:schemas-upnp-org:control-1-0"><errorCode>501</errorCode><errorDescription>Action GetMute failed
</errorDescription></UPnPError></detail></s:Fault></s:Body></s:Envelope>
2015.10.31 08:02:16 4: BRAVIA SonyTV: RCV upnp/getMute
2015.10.31 08:02:16 4: BRAVIA SonyTV: 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><s:Fault><faultcode>s:Client</faultcode><faultstring>UPnPError</faultstring><detail><UPnPError xmlns="urn:schemas-upnp-org:control-1-0"><errorCode>501</errorCode><errorDescription>Action GetMute failed
</errorDescription></UPnPError></detail></s:Fault></s:Body></s:Envelope>
2015.10.31 08:02:16 1: PERL WARNING: Use of uninitialized value in string eq at ./FHEM/70_BRAVIA.pm line 1053.

vuffiraa

Hallo extrafein,

Das Modul würde bei dir besser funktionieren, wenn ich verstehen würde, wie Upnp bei dir unterstützt ist. Darüber ist alles, was Volume und Mute betrifft, implementiert.
Ich hatte in Post #82 schon mal beschrieben, dass man mit dem Tool cling sehen kann, welche Upnp Services der TV anbietet. Da gibt es aber auch andere Programme. Vielleicht kannst du dich ja mal in die Thematik einarbeiten.

Gruß Ulf
FHEM 5.8 auf Cubietruck, Raspi B+

Weinzierl KNX IP BAOS 770, Homematic, EnOcean

tihe

Hallo Ulf,

erstmal Danke für das Braviamodul :) Ich nenne seit letzem Wochenende einen Bravia x85 c mit Android TV mein Eigen und habe das Braviamodul bei mir erfolgreich installieren können. Scheint auch zu funktionieren soweit.

Mit meinen alten Sony hatte ich über das Presencemodul und einen Lan-Ping meine Stehlampe geschaltet ("TV an" & "dunkel draußen" --> "Licht an"; "TV aus" --> "Licht aus"). Das gleiche wollte ich jetzt wieder machen, allerdings meldet sich der x85 nicht wirklich und zuverlässig ab im Netzwerk womit das Presencemodul so nicht funktioniert. Mit dem Braviamodul war ich zuversichtlicher, da es den Status des Bravia detaillierter auslesen kann. Nach dem Ausschalten sind die für mich wichtigen Status aber meist weiterhin: power = on; presence = present; state = on. Damit bin ich wieder am Anfang ;) Woran könnte das liegen?

Planst du das Modul auch für aktuelle Braviamodelle zu erweitern? Ich bin mir im Moment noch unsicher, wie ich debuggen könnte oder welche Infos nützlich sein könnten?

Hier nur mal ein Ausschnitts eines Logs:

2015.11.30 19:42:57 5: BRAVIA SonyTV: called function BRAVIA_GetStatus()
2015.11.30 19:42:57 5: BRAVIA SonyTV: called function BRAVIA_SendCommand()
2015.11.30 19:42:57 4: BRAVIA SonyTV: REQ getStatus/json
2015.11.30 19:42:57 5: BRAVIA SonyTV: POST http://192.168.178.40:80/sony/system ({"method":"getPowerStatus","params":[""],"id":1,"version":"1.0"})
2015.11.30 19:42:57 5: BRAVIA SonyTV: header X-CERS-DEVICE-ID: fhem_remote
Cookie: auth=0
2015.11.30 19:42:57 5: BRAVIA SonyTV: called function BRAVIA_ReceiveCommand() rc: HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 39
Connection: close

{"error":[3,"Illegal Argument"],"id":1} err:  data: {"error":[3,"Illegal Argument"],"id":1}
2015.11.30 19:42:57 4: BRAVIA SonyTV: RCV getStatus/json
2015.11.30 19:42:57 4: BRAVIA SonyTV: RES getStatus/json - {"error":[3,"Illegal Argument"],"id":1}
2015.11.30 19:42:57 5: BRAVIA SonyTV: called function BRAVIA_SendCommand()
2015.11.30 19:42:57 4: BRAVIA SonyTV: REQ getSystemInformation
2015.11.30 19:42:57 5: BRAVIA SonyTV: POST http://192.168.178.40:80/sony/system ({"method":"getSystemInformation","params":[""],"id":1,"version":"1.0"})
2015.11.30 19:42:57 5: BRAVIA SonyTV: header X-CERS-DEVICE-ID: fhem_remote
Cookie: auth=0
2015.11.30 19:42:57 5: BRAVIA SonyTV: called function BRAVIA_SendCommand()


vuffiraa

Hallo Tihe,

Ich weiß nicht, wie ähnlich dein TV zu den Generationen davor ist. AndroidTV hört sich aber erst mal kompliziert an. An Deinen Logs sieht man auch, dass das Modul eigentlich nur Fehlermeldungen vom TV empfängt.
Um mal auszuloten, was von den mir bekannten Sachen geht, könntest du mal die URLs aus Post 78 versuchen. http://forum.fhem.de/index.php?topic=17094.msg225661#msg225661
Da ich aber keine eigenen Zugriff auf deine Gerätegeneration habe, mach dir bitte nicht zu große Erwartungen. Ich kann das Modul hier und da anpassen, aber nicht blind eine neue Kommunikationsvariante hinzufügen.

Gruß Ulf
FHEM 5.8 auf Cubietruck, Raspi B+

Weinzierl KNX IP BAOS 770, Homematic, EnOcean

greg4b

Hallo,

danke für die Arbeit an dem Modul!

Ich hab' meinen KDL-40HX756 nun erfolgreich registrieren können :-)

Leider funktioniert das WoL nicht...

Nachfolgend das Log mit verbose 5 und "set on"
2015.12.13 17:16:43 0: Server started with 34 defined entities (fhem.pl:10116/2015-12-06 perl:5.014002 os:linux user:fhem pid:19268)
2015.12.13 17:16:44 1: HMLAN_Parse: hmusb new condition ok
2015.12.13 17:16:45 1: FHEMWEB SSL/HTTPS error:
2015.12.13 17:16:45 3: CUL_HM set Funksteckdose statusRequest
2015.12.13 17:16:45 5: BRAVIA Sony_TV: called function BRAVIA_ReceiveCommand() rc: HASH(0x23aa088) err: 192.168.2.143: No route to host data: 
2015.12.13 17:16:45 4: BRAVIA Sony_TV: RCV TIMEOUT getStatus/json
2015.12.13 17:16:45 5: BRAVIA Sony_TV: called function BRAVIA_ReceiveCommand() rc: HASH(0x23a9de8) err: 192.168.2.143: No route to host data: 
2015.12.13 17:16:45 4: BRAVIA Sony_TV: RCV TIMEOUT getStatus/xml
2015.12.13 17:16:49 5: BRAVIA Sony_TV: called function BRAVIA_Set()
2015.12.13 17:16:53 5: BRAVIA Sony_TV: called function BRAVIA_Set()
2015.12.13 17:16:59 5: BRAVIA Sony_TV: called function BRAVIA_Set()
2015.12.13 17:16:59 5: BRAVIA Sony_TV: called function BRAVIA_Get()
2015.12.13 17:17:10 5: BRAVIA Sony_TV: called function BRAVIA_Set()
2015.12.13 17:17:10 2: BRAVIA set Sony_TV on
2015.12.13 17:17:10 4: BRAVIA Sony_TV: Waking up by sending Wake-On-Lan magic package to 5453ED806C6F
2015.12.13 17:17:27 5: BRAVIA Sony_TV: called function BRAVIA_GetStatus()
2015.12.13 17:17:27 5: BRAVIA Sony_TV: called function BRAVIA_SendCommand()
2015.12.13 17:17:27 4: BRAVIA Sony_TV: REQ getStatus/xml
2015.12.13 17:17:27 5: BRAVIA Sony_TV: GET http://192.168.2.143:80/cers/api/getStatus
2015.12.13 17:17:27 5: BRAVIA Sony_TV: header X-CERS-DEVICE-ID: fhem_remote
Cookie: auth=0
2015.12.13 17:17:30 5: BRAVIA Sony_TV: called function BRAVIA_ReceiveCommand() rc: HASH(0x25b3720) err: 192.168.2.143: No route to host data: 
2015.12.13 17:17:30 4: BRAVIA Sony_TV: RCV TIMEOUT getStatus/xml
2015.12.13 17:18:12 5: BRAVIA Sony_TV: called function BRAVIA_GetStatus()
2015.12.13 17:18:12 5: BRAVIA Sony_TV: called function BRAVIA_SendCommand()
2015.12.13 17:18:12 4: BRAVIA Sony_TV: REQ getStatus/xml
2015.12.13 17:18:12 5: BRAVIA Sony_TV: GET http://192.168.2.143:80/cers/api/getStatus
2015.12.13 17:18:12 5: BRAVIA Sony_TV: header X-CERS-DEVICE-ID: fhem_remote
Cookie: auth=0
2015.12.13 17:18:15 5: BRAVIA Sony_TV: called function BRAVIA_ReceiveCommand() rc: HASH(0x25fc170) err: 192.168.2.143: No route to host data: 
2015.12.13 17:18:15 4: BRAVIA Sony_TV: RCV TIMEOUT getStatus/xml
2015.12.13 17:18:23 3: CUL_HM set HM_1F59C2 statusRequest
2015.12.13 17:18:57 5: BRAVIA Sony_TV: called function BRAVIA_GetStatus()
2015.12.13 17:18:57 5: BRAVIA Sony_TV: called function BRAVIA_SendCommand()
2015.12.13 17:18:57 4: BRAVIA Sony_TV: REQ getStatus/xml
2015.12.13 17:18:57 5: BRAVIA Sony_TV: GET http://192.168.2.143:80/cers/api/getStatus
2015.12.13 17:18:57 5: BRAVIA Sony_TV: header X-CERS-DEVICE-ID: fhem_remote
Cookie: auth=0
2015.12.13 17:19:00 5: BRAVIA Sony_TV: called function BRAVIA_ReceiveCommand() rc: HASH(0x26291c0) err: 192.168.2.143: No route to host data: 
2015.12.13 17:19:00 4: BRAVIA Sony_TV: RCV TIMEOUT getStatus/xml
2015.12.13 17:19:12 5: BRAVIA Sony_TV: called function BRAVIA_Set()
2015.12.13 17:19:19 5: BRAVIA Sony_TV: called function BRAVIA_Set()
2015.12.13 17:19:19 2: BRAVIA set Sony_TV on
2015.12.13 17:19:19 4: BRAVIA Sony_TV: Waking up by sending Wake-On-Lan magic package to 5453ED806C6F


Hat schon jemand KDL-40HX756 mit WoL aktiv? Wenn ja, bitte um Infos...

Servus aus Graz,



Gregor
Bosch Indego Connect 1200, Neato BotVac 85 D, Raspberry Pi, JeeLink V3, Homematic, Sony KDL-40HX756,

pcbastler

Jetzt darf ich auch mitmachen ;)
Ich fange aus Interesse gerade mit FHEM (auf einer virtuellen Debian-Maschine) an und versuche mich zuerst an der vorhandenen Hardware (Fritzbox 7390 und Sony Bravia KDL-42W706B).
Der TV konnte in FHEM erfolgreich registriert werden, aber auf Kommandos wollte er nicht reagieren. 2 Tage experimentieren brachten folgendes Ergebnis: Die Sony-Firmware (Version PKG2.704EUA) lässt das in den Standard-Einstellungen nicht zu, erst eine Änderung in Einstellungen ->Netzwerk ->Heimnetzwerk-Einstellungen -> IP Control -> Einfache IP-Steuerung auf "Ein" führt zum Erfolg.

vuffiraa

Hallo Gregor,

Das wird nicht funktionieren, da der KDL-xxHX75x kein WOL unterstützt. Leider...

Viele Grüße,
Ulf
FHEM 5.8 auf Cubietruck, Raspi B+

Weinzierl KNX IP BAOS 770, Homematic, EnOcean

crusader

Hallo vuffiraa,

Herzlichen Dank für die Bereitstellung des Moduls.

Habe es für einen KDL-42W815B eingerichtet und konnte mich auf Anhieb registrieren und das Modul nutzen.

Mir ist aufgefallen, dass die Funktionen 'play' und 'pause' nicht gehen.
In der 'BRAVIA_Set'-Routine wird für diese Funktionen der IRCC-Befehl 'PLAYPAUSE' übergeben, der aber in der Command-Liste nicht definiert ist.
Nach Ändern auf 'TVPAUSE' läuft es nun.

Schreibfehler oder verstehe ich da was nicht ?

dsoltau

Hallo vuffiraa!

Danke für diese klasse Modul! Ich kann meinen KDL-50W805B damit einbinden, umschalten ging auch. Mir ist allerdings nicht klar, wie ich an die Channellist komme?!? Wo sollte diese zu bei fhem zu sehen sein?

Danke für die Antwort!

Gruß,
Dennis