oklona / Miele-MQTT

A very simple script to read data from Miele@home cloud services, and publish using Mosquitto MQTT
21 stars 10 forks source link

Undefined offset line 513 #25

Open Loxfreek opened 3 years ago

Loxfreek commented 3 years ago

I tryed to install Miele-MQTT.php (version Version 3.1a03) on my Loxberry (V2.1.0.3) and MQTT (MQTT Gateway v2.0.2). I got following message and can't recive any data on my MQTT Gatway.

2021-06-16 (10) 2021-06-17

Any idea what I can do? Thanks Jürgen

oklona commented 3 years ago
    Hello. Hmm That was strange. Could you run the script with the -d parameter and send me the output?Regards,Ole

 Fra: Loxfreek @.***>Sendt: lørdag, juni 19, 2021 12:00 amTil: oklona/Miele-MQTTKopi: SubscribedEmne: [oklona/Miele-MQTT] Undefined offset line 513 (#25) 

I tryed to install Miele-MQTT.php (version Version 3.1a03) on my Loxberry (V2.1.0.3) and MQTT (MQTT Gateway v2.0.2).

I got following message and can't recive any data on my MQTT Gatway.

Any idea what I can do?

Thanks

Jürgen

—You are receiving this because you are subscribed to this thread.Reply to this email directly, view it on GitHub, or unsubscribe.

Loxfreek commented 3 years ago

cd /opt/loxberry/webfrontend/legacy/miele php miele-MQTT.php -d

Script is running and parameter are shown. Miele -d.docx

cd /opt/loxberry/webfrontend/legacy/miele php miele-MQTT.php -D

Script is running and parameter are shown. Miele-D.docx

Could be the steam oven the problem? image

Loxfreek commented 3 years ago

Suprise - after I run script with parameter -D I recive data in MQTT-Gateway But it looks like it will be not automaticly (every 30 seconds) updated (only one time) Any idea???

Loxfreek commented 3 years ago

Miele script is now running on my Loxberry: • Loxberry V2.1.0.3 • MQTT Gateway v2.0.3 • miele-MQTT.php v 3.1a03 - March 26th 2021

But still message "Undefined offset line 513". Output data of Script -d/-D I have already uploaded a few days ago (2 word files). Has anybody an idea how to solve this issue?

oklona commented 3 years ago
    Thanks, I will try to find time to look at it. 

 Fra: Loxfreek @.***>Sendt: lørdag, juni 26, 2021 11:02 amTil: oklona/Miele-MQTTKopi: oklona; CommentEmne: Re: [oklona/Miele-MQTT] Undefined offset line 513 (#25) 

Miele script is now running on my Loxberry:

• Loxberry V2.1.0.3

• MQTT Gateway v2.0.3

• miele-MQTT.php v 3.1a03 - March 26th 2021

But still message "Undefined offset line 513".

Output data of Script -d/-D I have already uploaded a few days ago (2 word files).

Has anybody an idea how to solve this issue?

—You are receiving this because you commented.Reply to this email directly, view it on GitHub, or unsubscribe.

Loxfreek commented 3 years ago

Thanks

Viele Grüße Winterholler Jürgen

Am 26.06.2021 um 11:29 schrieb oklona @.***>:



Thanks, I will try to find time to look at it.

Fra: Loxfreek @.***>Sendt: lørdag, juni 26, 2021 11:02 amTil: oklona/Miele-MQTTKopi: oklona; CommentEmne: Re: [oklona/Miele-MQTT] Undefined offset line 513 (#25)

Miele script is now running on my Loxberry:

• Loxberry V2.1.0.3

• MQTT Gateway v2.0.3

• miele-MQTT.php v 3.1a03 - March 26th 2021

But still message "Undefined offset line 513".

Output data of Script -d/-D I have already uploaded a few days ago (2 word files).

Has anybody an idea how to solve this issue?

—You are receiving this because you commented.Reply to this email directly, view it on GitHub, or unsubscribe. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

oklona commented 3 years ago

Interesting! It seems your Warming Drawer actually does not supply the "timeElapsed" parameters, but instead returns an empty array. So I need to start checking whether the timeElapsed array is empty.

oklona commented 3 years ago

I finally got around to fixing this :-) Please test, and report back, so I can close the issue :-)

Loxfreek commented 3 years ago

Thanks on this wwkend I will check and report back to you. By the way do you have any contact adress to Miele aPI developer? I found some unclarity or failures in there API documentation.

oklona commented 3 years ago

Thanks. I believe they use developer@miele.com, but I haven't received a lot of replies from them since my first dialogue, getting a client ID.

Loxfreek commented 3 years ago

I have tested the new script. First it doesn't work. If I looked in your code I only found a format issue (I don't know if this was the reasson). I have changed slightly and now it works.

Changed part: if (isset($appliance['state']['elapsedTime'][0])) { $timerunning= sprintf("%'.02d:%'.02d",$appliance['state']['elapsedTime'][0],$appliance['state']['elapsedTime'][1]); } else { $timerunning= ""; }

oklona commented 3 years ago

Hi! Could you inform me what the format error was? I am looking at your code and mine, and don't see the difference, except some spaces removed?

Loxfreek commented 3 years ago

Yes it was only spaces

Viele Grüße Winterholler Jürgen

Am 02.08.2021 um 14:08 schrieb oklona @.***>:

 Hi! Could you inform me what the format error was? I am lloking at your code and mine, and don't see the difference, except some spaces removed?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.