Acer Beamer via LAN steuern (Typ P5515)

Begonnen von mrpointblue, 04 Januar 2021, 22:34:56

Vorheriges Thema - Nächstes Thema

amenomade

Also... Probiere mal so:

define acer HTTPMOD http://192.168.2.19/home.htm 0

attr acer reAuthRegex TYPE="button" VALUE="Login"
attr acer sid01URL http://192.168.2.19/home.htm
attr acer sid01IdRegex (?s)ID="Challenge" VALUE=.*?"(.*?)">
attr acer sid02URL http://192.168.2.19/tgi/home.tgi
attr acer sid02Data Username=1&Response=%%resp%%

attr acer replacement01Regex %%resp%%
attr acer replacement01Mode expression
attr acer replacement01Value Digest::MD5::md5_hex("adminPASSWORT$sid")

attr acer setURL http://192.168.2.19/tgi/control.tgi
attr acer set01NoArg 1
attr acer set01Name powerOn
attr acer set01Data pwr=Power ON
attr acer set02NoArg 1
attr acer set02Name powerOff
attr acer set02Data pwr=Power OFF

attr acer enableCookies 1
attr acer enableControlSet 1
attr acer verbose 5


PASSWORT in replacement01Value ist natürlich durch dein Passwort zu ersetzen.
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

mrpointblue

Hi,
schonmal vielen Dank.

Es kommt zwar was zurück aber scheint nicht ganz zu klappen.

Hier der Eventlog.

2021.01.12 00:18:48 5 : acer: set called with reread
2021.01.12 00:18:48 4 : acer: GetUpdate called (reread)
2021.01.12 00:18:48 5 : acer: AddToQueue adds type update to URL http://192.168.2.19/home.htm, no data, no headers, retry 0, initial queue len: 0
2021.01.12 00:18:48 5 : acer: HandleSendQueue called from AddToSendQueue, qlen = 1
2021.01.12 00:18:48 5 : acer: Replace called for type update, regex (?^:%%resp%%), mode text, value Digest::MD5::md5_hex("admin$sid") input:
2021.01.12 00:18:48 5 : acer: Replace called for type update, regex (?^:%%resp%%), mode text, value Digest::MD5::md5_hex("admin$sid") input:
2021.01.12 00:18:48 5 : acer: Replace called for type update, regex (?^:%%resp%%), mode text, value Digest::MD5::md5_hex("admin$sid") input: http://192.168.2.19/home.htm
2021.01.12 00:18:48 4 : acer: HandleSendQueue sends update with timeout 2 to http://192.168.2.19/home.htm, No Data, No Header
2021-01-12 00:18:48 HTTPMOD acer reread
2021.01.12 00:18:48 5 : acer: ReadCallback called from __ANON__
2021.01.12 00:18:48 4 : acer: Read callback: request type was update retry 0, header: HTTP/1.0 200 OK Connection: close, body length 1340
2021.01.12 00:18:48 5 : acer: Read callback: body <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8"> <script LANGUAGE="javascript" SRC="/home.js" TYPE= "text/javascript"> </script> <link REL="stylesheet" REV="stylesheet" HREF="/style.css" TYPE="text/css" MEDIA="all"> <title></title> </head> <body ONLOAD="window_onload()" STYLE= "background-color:transparent"> <div ID="home" STYLE=""> <div CLASS="block"> <p CLASS="welcome" ALIGN="center">Welcome to acer Projector Web Server</p> <p CLASS="wel_ip" ALIGN="center">IP:<span ID="ipadlb" CLASS= "wel_ip"></span>192.168.2.19</p> <p CLASS="wel_ip" ALIGN="center">MAC:<span ID="macadr" CLASS= "wel_ip"></span>00:60:E9:1B:6B:CA</p> <p CLASS="prompt">Projector Status</p> <table> <tr> <td HEIGHT="25px" CLASS="catalog">Model Name:</td> <td ID="model">P5515</td></tr> <tr> <td HEIGHT="25px" CLASS="catalog">System Status:</td> <td ID="syssta">Standby</td></tr> <tr> <td HEIGHT="25px">Display Source:</td> <td HEIGHT="25px" ID="dissrc">No Signal</td></tr> <tr> <td HEIGHT="25px">Lamp Hours:</td> <td HEIGHT="25px" ID="lamphr">0</td></tr> <tr> <td HEIGHT="25px">Image Mode:</td> <td HEIGHT="25px" ID="dismod">0</td></tr> <tr> <td HEIGHT="25px">Error Status:</td> <td HEIGHT="25px" ID="errsta">Normal</td></tr></table></div> </div> </body> </html>
2021.01.12 00:18:48 4 : acer: BodyDecode found no charset header (bodyDecode was set to auto)
2021.01.12 00:18:48 5 : acer: GetCookies is looking for Cookies
2021.01.12 00:18:48 5 : acer: ExtractSid called, context reading, num 0
2021.01.12 00:18:48 4 : acer: checking for redirects, code=200, ignore=0
2021.01.12 00:18:48 4 : acer: no redirects to handle
2021.01.12 00:18:48 5 : acer: Read callback sets LAST_REQUEST to update
2021.01.12 00:18:48 5 : acer: CheckAuth is checking buffer with ReAuthRegex (?^:TYPE="button" VALUE="Login")
2021.01.12 00:18:48 5 : acer: CheckAuth decided no authentication required
2021.01.12 00:18:48 5 : acer: Read starts parsing response to update with defined readings:
2021.01.12 00:18:48 4 : acer: Read response to update didn't match any Reading
2021.01.12 00:18:48 5 : acer: HandleSendQueue called from ReadCallback, qlen = 0
2021.01.12 00:18:48 5 : acer: HandleSendQueue found no usable entry in queue
1x Raspberry für Fhem, 1x Raspberry für Homebridge
Diverse Z-Wave Geräte, Philips-Hue, Ikea Tradfri, sonnenBatterie, Logitech Harmony, Alexa & Siri gekoppelt

amenomade

#17
Das klappt doch:

Zitat2021.01.12 00:18:48 5 : acer: Read callback: body <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8"> <script LANGUAGE="javascript" SRC="/home.js" TYPE= "text/javascript"> </script> <link REL="stylesheet" REV="stylesheet" HREF="/style.css" TYPE="text/css" MEDIA="all"> <title></title> </head> <body ONLOAD="window_onload()" STYLE= "background-color:transparent"> <div ID="home" STYLE=""> <div CLASS="block"> <p CLASS="welcome" ALIGN="center">Welcome to acer Projector Web Server</p> <p CLASS="wel_ip" ALIGN="center">IP:<span ID="ipadlb" CLASS= "wel_ip"></span>192.168.2.19</p> <p CLASS="wel_ip" ALIGN="center">MAC:<span ID="macadr" CLASS= "wel_ip"></span>00:60:E9:1B:6B:CA</p> <p CLASS="prompt">Projector Status</p> <table> <tr> <td HEIGHT="25px" CLASS="catalog">Model Name:</td> <td ID="model">P5515</td></tr> <tr> <td HEIGHT="25px" CLASS="catalog">System Status:</td> <td ID="syssta">Standby</td></tr> <tr> <td HEIGHT="25px">Display Source:</td> <td HEIGHT="25px" ID="dissrc">No Signal</td></tr> <tr> <td HEIGHT="25px">Lamp Hours:</td> <td HEIGHT="25px" ID="lamphr">0</td></tr> <tr> <td HEIGHT="25px">Image Mode:</td> <td HEIGHT="25px" ID="dismod">0</td></tr> <tr> <td HEIGHT="25px">Error Status:</td> <td HEIGHT="25px" ID="errsta">Normal</td></tr></table></div> </div> </body> </html>

Die Daten sind da.

IP:192.168.2.19
MAC:00:60:E9:1B:6B:CA
Model Name:P5515
System Status:Standby
Display Source:No Signal
Lamp Hours:0
Image Mode:0
Error Status:Normal

Das heisst, Du bist erfolgreich angemeldet. Du musst nur noch die gewünschte Readings mit readingXXName und readingXXRegex oder reading XXXPath extrahieren. Z.B:
attr acer reading01Name Status
attr acer reading01Regex syssta">(.*?)<

attr acer reading02Name ErrStatus
attr acer reading02Regex errsta">(.*?)<


Wie geht jetzt ein "set" Befehl?
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

mrpointblue

Hi, ja das klappt schon.
Der ,,Power On" Befehl klappt leider nicht.

Ich weis aber nicht wieso
1x Raspberry für Fhem, 1x Raspberry für Homebridge
Diverse Z-Wave Geräte, Philips-Hue, Ikea Tradfri, sonnenBatterie, Logitech Harmony, Alexa & Siri gekoppelt

amenomade

Zitat von: mrpointblue am 12 Januar 2021, 08:08:37
Hi, ja das klappt schon.
Der ,,Power On" Befehl klappt leider nicht.

Ich weis aber nicht wieso

Zeig mal die Log mit verbose 5 beim set Befehl
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

mrpointblue

Hi, hier der Log mit verbose 5

2021-01-17 16:40:28 HTTPMOD acer powerOn
2021.01.17 16:40:29 5 : acer: ReadCallback called from __ANON__
2021.01.17 16:40:29 4 : acer: Read callback: request type was update retry 0, header: HTTP/1.0 200 OK Connection: close, body length 1340
2021.01.17 16:40:29 5 : acer: Read callback: body <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8"> <script LANGUAGE="javascript" SRC="/home.js" TYPE= "text/javascript"> </script> <link REL="stylesheet" REV="stylesheet" HREF="/style.css" TYPE="text/css" MEDIA="all"> <title></title> </head> <body ONLOAD="window_onload()" STYLE= "background-color:transparent"> <div ID="home" STYLE=""> <div CLASS="block"> <p CLASS="welcome" ALIGN="center">Welcome to acer Projector Web Server</p> <p CLASS="wel_ip" ALIGN="center">IP:<span ID="ipadlb" CLASS= "wel_ip"></span>192.168.2.19</p> <p CLASS="wel_ip" ALIGN="center">MAC:<span ID="macadr" CLASS= "wel_ip"></span>00:60:E9:1B:6B:CA</p> <p CLASS="prompt">Projector Status</p> <table> <tr> <td HEIGHT="25px" CLASS="catalog">Model Name:</td> <td ID="model">P5515</td></tr> <tr> <td HEIGHT="25px" CLASS="catalog">System Status:</td> <td ID="syssta">Standby</td></tr> <tr> <td HEIGHT="25px">Display Source:</td> <td HEIGHT="25px" ID="dissrc">No Signal</td></tr> <tr> <td HEIGHT="25px">Lamp Hours:</td> <td HEIGHT="25px" ID="lamphr">0</td></tr> <tr> <td HEIGHT="25px">Image Mode:</td> <td HEIGHT="25px" ID="dismod">0</td></tr> <tr> <td HEIGHT="25px">Error Status:</td> <td HEIGHT="25px" ID="errsta">Normal</td></tr></table></div> </div> </body> </html>
2021.01.17 16:40:29 4 : acer: BodyDecode found no charset header (bodyDecode was set to auto)
2021.01.17 16:40:29 5 : acer: GetCookies is looking for Cookies
2021.01.17 16:40:29 5 : acer: ExtractSid called, context reading, num 0
2021.01.17 16:40:29 4 : acer: checking for redirects, code=200, ignore=0
2021.01.17 16:40:29 4 : acer: no redirects to handle
2021.01.17 16:40:29 5 : acer: Read callback sets LAST_REQUEST to update
2021.01.17 16:40:29 5 : acer: CheckAuth is checking buffer with ReAuthRegex (?^:TYPE="button" VALUE="Login")
2021.01.17 16:40:29 5 : acer: CheckAuth decided no authentication required
2021.01.17 16:40:29 5 : acer: UpdateReadingList created list of reading.* nums to parse during getUpdate as 01 02 03 04 05
2021.01.17 16:40:29 5 : acer: Read starts parsing response to update with defined readings: 01,02,03,04,05
2021.01.17 16:40:29 5 : acer: ExtractReading Status with regex /(?^:syssta">(.*?)<)/...
2021.01.17 16:40:29 5 : acer: ExtractReading for reading01-1 sets Status to Standby
2021.01.17 16:40:29 5 : acer: ExtractReading value as hex is 5374616e646279
2021.01.17 16:40:29 5 : acer: ExtractReading Lamphours with regex /(?^:lamphr">(.*?)<)/...
2021.01.17 16:40:29 5 : acer: ExtractReading for reading02-1 sets Lamphours to 0
2021.01.17 16:40:29 5 : acer: ExtractReading value as hex is 30
2021.01.17 16:40:29 5 : acer: ExtractReading Error Status with regex /(?^:errsta">(.*?)<)/...
2021.01.17 16:40:29 5 : acer: ExtractReading for reading03-1 sets Error Status to Normal
2021.01.17 16:40:29 5 : acer: ExtractReading value as hex is 4e6f726d616c
2021.01.17 16:40:29 5 : acer: ExtractReading MAC Adress with regex /(?^:macadr">(.*?)<)/...
2021.01.17 16:40:29 5 : acer: ExtractReading MAC Adress did not match
2021.01.17 16:40:29 5 : acer: ExtractReading for context reading, num 05 - no individual parse definition
2021.01.17 16:40:29 4 : acer: Read response matched 3, unmatch 2 Reading(s)
2021.01.17 16:40:29 5 : acer: Read response to update matched Status Lamphours Error Status
2021.01.17 16:40:29 5 : acer: Read response to update did not match MAC Adress Model Name
2021-01-17 16:40:29 HTTPMOD acer Status: Standby
2021-01-17 16:40:29 HTTPMOD acer Lamphours: 0
2021-01-17 16:40:29 HTTPMOD acer Error Status: Normal
2021.01.17 16:40:29 5 : acer: HandleSendQueue called from ReadCallback, qlen = 1
2021.01.17 16:40:29 5 : acer: Replace called for type set01, regex (?^:%%resp%%), mode text, value Digest::MD5::md5_hex("admin$sid") input:
2021.01.17 16:40:29 5 : acer: Replace called for type set01, regex (?^:%%resp%%), mode text, value Digest::MD5::md5_hex("admin$sid") input: pwr=Power ON
2021.01.17 16:40:29 5 : acer: Replace called for type set01, regex (?^:%%resp%%), mode text, value Digest::MD5::md5_hex("admin$sid") input: http://192.168.2.19/tgi/control.tgi
2021.01.17 16:40:29 4 : acer: HandleSendQueue sends set01 with timeout 2 to http://192.168.2.19/tgi/control.tgi, data: pwr=Power ON, No Header
2021.01.17 16:40:29 5 : acer: ReadCallback called from __ANON__
2021.01.17 16:40:29 4 : acer: Read callback: request type was set01 retry 0, header: HTTP/1.0 200 OK Connection: close, body length 1340
2021.01.17 16:40:29 5 : acer: Read callback: body <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8"> <script LANGUAGE="javascript" SRC="/home.js" TYPE= "text/javascript"> </script> <link REL="stylesheet" REV="stylesheet" HREF="/style.css" TYPE="text/css" MEDIA="all"> <title></title> </head> <body ONLOAD="window_onload()" STYLE= "background-color:transparent"> <div ID="home" STYLE=""> <div CLASS="block"> <p CLASS="welcome" ALIGN="center">Welcome to acer Projector Web Server</p> <p CLASS="wel_ip" ALIGN="center">IP:<span ID="ipadlb" CLASS= "wel_ip"></span>192.168.2.19</p> <p CLASS="wel_ip" ALIGN="center">MAC:<span ID="macadr" CLASS= "wel_ip"></span>00:60:E9:1B:6B:CA</p> <p CLASS="prompt">Projector Status</p> <table> <tr> <td HEIGHT="25px" CLASS="catalog">Model Name:</td> <td ID="model">P5515</td></tr> <tr> <td HEIGHT="25px" CLASS="catalog">System Status:</td> <td ID="syssta">Standby</td></tr> <tr> <td HEIGHT="25px">Display Source:</td> <td HEIGHT="25px" ID="dissrc">No Signal</td></tr> <tr> <td HEIGHT="25px">Lamp Hours:</td> <td HEIGHT="25px" ID="lamphr">0</td></tr> <tr> <td HEIGHT="25px">Image Mode:</td> <td HEIGHT="25px" ID="dismod">0</td></tr> <tr> <td HEIGHT="25px">Error Status:</td> <td HEIGHT="25px" ID="errsta">Normal</td></tr></table></div> </div> </body> </html>
2021.01.17 16:40:29 4 : acer: BodyDecode found no charset header (bodyDecode was set to auto)
2021.01.17 16:40:29 5 : acer: GetCookies is looking for Cookies
2021.01.17 16:40:29 5 : acer: ExtractSid called, context set, num 01
2021.01.17 16:40:29 4 : acer: checking for redirects, code=200, ignore=0
2021.01.17 16:40:29 4 : acer: no redirects to handle
2021.01.17 16:40:29 5 : acer: Read callback sets LAST_REQUEST to set01
2021.01.17 16:40:29 5 : acer: CheckAuth is checking buffer with ReAuthRegex (?^:TYPE="button" VALUE="Login")
2021.01.17 16:40:29 5 : acer: CheckAuth decided no authentication required
1x Raspberry für Fhem, 1x Raspberry für Homebridge
Diverse Z-Wave Geräte, Philips-Hue, Ikea Tradfri, sonnenBatterie, Logitech Harmony, Alexa & Siri gekoppelt

amenomade

Kannst Du bitte auch ein "list" vom HTTPMOD im jetzigen Stand bitte liefern?

Ich würde ein paar Headers noch setzen, insb:
set01Header01 Referer: http://192.168.2.19/control.htm
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

mrpointblue

Hi, den Header hab ich gesetzt. Befehl nimmt er aber nicht.

Was super funktioniert das man die Daten lesen kann, somit klappt das mit dem Passwort.


defmod acer HTTPMOD http://192.168.2.19/home.htm 180
attr acer userattr replacement01Mode:reading,internal,text,expression,key
attr acer DbLogExclude .*
attr acer enableControlSet 1
attr acer enableCookies 1
attr acer reAuthRegex TYPE="button" VALUE="Login"
attr acer reading01Name State
attr acer reading01Regex syssta">(.*?)<
attr acer reading02Name Lamphours
attr acer reading02Regex lamphr">(.*?)<
attr acer reading03Name Error_State
attr acer reading03Regex errsta">(.*?)<
attr acer reading04Name Model_Name
attr acer reading04Regex model">(.*?)<
attr acer replacement01Mode expression
attr acer replacement01Regex %%resp%%
attr acer replacement01Value Digest::MD5::md5_hex("PaSsWoRd$sid")
attr acer room Kino
attr acer set01Data pwr=Power ON
attr acer set01Header01 Referer: http://192.168.2.19/control.htm
attr acer set01Name powerOn
attr acer set01NoArg 1
attr acer set01URL http://192.168.2.19/tgi/control.tgi
attr acer set02Data pwr=Power OFF
attr acer set02Name powerOff
attr acer set02NoArg 1
attr acer sid01IdRegex (?s)ID="Challenge" VALUE=.*?"(.*?)">
attr acer sid02Data Username=1&Response=%%resp%%
attr acer sid02URL http://192.168.2.19/tgi/home.tgi
attr acer sidURL http://192.168.2.19/home.htm
attr acer stateFormat Status:State <br/> Lampenstunden: Lamphours
attr acer verbose 5
attr acer webCmd powerOn:powerOff

setstate acer Status:Standby <br/> Lampenstunden: 0
setstate acer 2021-01-17 20:39:36 Error_State Normal
setstate acer 2021-01-17 20:39:36 Lamphours 0
setstate acer 2021-01-17 20:39:36 Model_Name P5515
setstate acer 2021-01-17 20:39:36 State Standby

1x Raspberry für Fhem, 1x Raspberry für Homebridge
Diverse Z-Wave Geräte, Philips-Hue, Ikea Tradfri, sonnenBatterie, Logitech Harmony, Alexa & Siri gekoppelt

amenomade

Mach mal noch dazu

attr acer  set01Header02 Content-type: application/x-www-form-urlencoded

und wenn dass immer noch nicht reicht, probiere mit
attr acer set01Data pwr=Power%20ON
attr acer set02Data pwr=Power%20OFF
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

mrpointblue

#24
Hallo, leider nicht.
Hmm.
Bei dem Set Befehl hab ich beides probiert. Klappt leider nicht.

Im Anhang die HAR wenn ich den Beamer per Dashboard starte und ausschalte.


2021.01.18 16:57:34 5 : acer: set called with powerOn
2021.01.18 16:57:34 5 : acer: set found option powerOn in attribute set01Name
2021.01.18 16:57:34 4 : acer: set will now set powerOn
2021.01.18 16:57:34 5 : acer: AddToQueue adds type set01 to URL http://192.168.2.19/tgi/control.tgi, data pwr=Power ON, header Referer: http://192.168.2.19/control.htm Content-type: application/x-www-form-urlencoded, retry 0, initial queue len: 0
2021.01.18 16:57:34 5 : acer: HandleSendQueue called from AddToSendQueue, qlen = 1
2021.01.18 16:57:34 5 : acer: Replace called for type set01, regex (?^:%%resp%%), mode expression, value Digest::MD5::md5_hex("admin$sid") input: Referer: http://192.168.2.19/control.htm Content-type: application/x-www-form-urlencoded
2021.01.18 16:57:34 5 : acer: Replace called for type set01, regex (?^:%%resp%%), mode expression, value Digest::MD5::md5_hex("admin$sid") input: pwr=Power ON
2021.01.18 16:57:34 5 : acer: Replace called for type set01, regex (?^:%%resp%%), mode expression, value Digest::MD5::md5_hex("admin$sid") input: http://192.168.2.19/tgi/control.tgi
2021.01.18 16:57:34 4 : acer: HandleSendQueue sends set01 with timeout 2 to http://192.168.2.19/tgi/control.tgi, data: pwr=Power ON, header: Referer: http://192.168.2.19/control.htm Content-type: application/x-www-form-urlencoded
2021-01-18 16:57:34 HTTPMOD acer powerOn
2021.01.18 16:57:35 5 : acer: ReadCallback called from __ANON__
2021.01.18 16:57:35 4 : acer: Read callback: request type was set01 retry 0, header: HTTP/1.0 200 OK Connection: close, body length 1340
2021.01.18 16:57:35 5 : acer: Read callback: body <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8"> <script LANGUAGE="javascript" SRC="/home.js" TYPE= "text/javascript"> </script> <link REL="stylesheet" REV="stylesheet" HREF="/style.css" TYPE="text/css" MEDIA="all"> <title></title> </head> <body ONLOAD="window_onload()" STYLE= "background-color:transparent"> <div ID="home" STYLE=""> <div CLASS="block"> <p CLASS="welcome" ALIGN="center">Welcome to acer Projector Web Server</p> <p CLASS="wel_ip" ALIGN="center">IP:<span ID="ipadlb" CLASS= "wel_ip"></span>192.168.2.19</p> <p CLASS="wel_ip" ALIGN="center">MAC:<span ID="macadr" CLASS= "wel_ip"></span>00:60:E9:1B:6B:CA</p> <p CLASS="prompt">Projector Status</p> <table> <tr> <td HEIGHT="25px" CLASS="catalog">Model Name:</td> <td ID="model">P5515</td></tr> <tr> <td HEIGHT="25px" CLASS="catalog">System Status:</td> <td ID="syssta">Standby</td></tr> <tr> <td HEIGHT="25px">Display Source:</td> <td HEIGHT="25px" ID="dissrc">No Signal</td></tr> <tr> <td HEIGHT="25px">Lamp Hours:</td> <td HEIGHT="25px" ID="lamphr">0</td></tr> <tr> <td HEIGHT="25px">Image Mode:</td> <td HEIGHT="25px" ID="dismod">0</td></tr> <tr> <td HEIGHT="25px">Error Status:</td> <td HEIGHT="25px" ID="errsta">Normal</td></tr></table></div> </div> </body> </html>
2021.01.18 16:57:35 4 : acer: BodyDecode found no charset header (bodyDecode was set to auto)
2021.01.18 16:57:35 5 : acer: GetCookies is looking for Cookies
2021.01.18 16:57:35 5 : acer: ExtractSid called, context set, num 01
2021.01.18 16:57:35 4 : acer: checking for redirects, code=200, ignore=0
2021.01.18 16:57:35 4 : acer: no redirects to handle
2021.01.18 16:57:35 5 : acer: Read callback sets LAST_REQUEST to set01
2021.01.18 16:57:35 5 : acer: CheckAuth is checking buffer with ReAuthRegex (?^:TYPE="button" VALUE="Login")
2021.01.18 16:57:35 5 : acer: CheckAuth decided no authentication required
1x Raspberry für Fhem, 1x Raspberry für Homebridge
Diverse Z-Wave Geräte, Philips-Hue, Ikea Tradfri, sonnenBatterie, Logitech Harmony, Alexa & Siri gekoppelt

Hardlife

#25
Hi liebe Mitstreiter,


auch ich bin aufgrund meines neuen Beamers (Acer P5630) an dem Thema sehr interessiert...
Leider sind auf dem Gebiet meine Kenntnisse mehr als rudimentär und ich bekomme es trotz vieler Versuche einfach nicht gebacken   :'(

Könnt ihr mir hier bitte etwas auf die Sprünge helfen?
Soo gern würde ich meinen Projektor automatisieren...

Ich habe mal mit Firefox eine har-Datei erzeugt und diese angehängt.
Als erstes Versuchs-Beispiel mal das "klicken" auf den Eco-Modus-Button auf der Web-Oberfläche "http://192.168.0.7/control.asp"
(ich springe direkt ind die asp ohne Umweg über "http://192.168.0.7/index.asp")
Die Web-Oberfläche besitzt keinen Passwortschutz und kann einfach so aufgerufen werden

Wie kann ich das in fhem nachbilden?

EDIT 1:
Ich komme voran...  ;D
Ich schreibe das hier mal als Edit rein, eventuell benötigt es ja auch jemand anders...
-> mittels Umweg über curl klappts schon mal:
curl 'http://192.168.0.7/form/control_cgi' -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0' -H 'Accept: */*' -H 'Accept-Language: de,en-US;q=0.7,en;q=0.3' --compressed -H 'Content-type: application/x-www-form-urlencoded' -H 'Origin: http://192.168.0.7' -H 'DNT: 1' -H 'Connection: keep-alive' -H 'Referer: http://192.168.0.7/control.asp' --data-raw 'eco=eco'


EDIT 2:
So, ich habe es jetzt mittels CURL und bash-Scripts (über FHEM-Dummy-Schalter) umgesetzt
Nicht sehr schön und auch nicht elegant, aber es funktioniert - und mehr wollte ich ja nicht...  8)
Raspi 4B
nanoCUL-868 & 433,JeeLink,milight,Signalduino,GPIO-433er-Sender/Empfänger, GPIO-Infrarot,GSM-Stick für SMS
MAX!-Heizungssteuerung,Intertechno-V1-Steckdosen + V3-Dimmer,"Flamingo FA21RF"-Funk-Rauchmelder
433er-China-Bewegungsmelder,"Voltcraft CO20"-Stick,LaCrosse-Temperatur,Revolt-NC5462