Scriptfehler [0.6.1-1379]

Hallo Sathya,

ich habe den Homegear Script Editor von Zennix benutzt um meine Thermostate zu konfigurieren.
Hat leider nicht so funktioniert wie gewünscht, siehe hier: https://forum.homegear.eu/viewtopic.php?f=20&p=3934#p3925

Homegear Log:

07/05/16 15:37:06.878 Script Engine Server: Info: Spawning new script engine process. 07/05/16 15:37:06.958 Script Engine Server: Info: Connection accepted. Client number: 10 07/05/16 15:37:06.959 Script Engine Server: Info: Script engine process successfully spawned. Process id is 30700. Client id is: 0. 07/05/16 15:37:06.959 Script Engine Server: Info: Starting script "/var/lib/homegear/scripts/bad.php" with id 1. 07/05/16 15:37:06.965 Script Engine Server: Info: Client number 0 is calling RPC method: setValue Parameters: (Integer) 8 (Integer) 1 (String) WINDOW_OPEN_TEMPERATURE (Float) 18 07/05/16 15:37:06.969 Info: Script with id 1 finished with exit code 255

Scriptengine Log:

[code]07/05/16 15:46:07.477 Scriptengine (/var/lib/homegear/scripts/bad.php): PHP Fatal error: Uncaught Homegear\HomegearException: Unknown channel. in /var/lib/homegear/scripts/bad.php:9
Stack trace:
#0 /var/lib/homegear/scripts/bad.php(9): hg_invoke(‘setValue’, 8, 1, ‘WINDOW_OPEN_TEM…’, 18)
#1 {main}
thrown in /var/lib/homegear/scripts/bad.php on line 9
07/05/16 15:46:07.478 Script output: #!/usr/bin/env php

07/05/16 15:46:07.482 Info: Script 2 exited with code 255.
[/code]

Script:

[code]#!/usr/bin/env php

<?php //Wochenprogramm fuer Heizung Badezimmer $device=8; hg_invoke("setValue", $device, 1, "WINDOW_OPEN_TEMPERATURE", 18.0); hg_invoke("setValue", $device, 1, "ECO_TEMPERATURE", 18.0); hg_invoke("setValue", $device, 1, "COMFORT_TEMPERATURE", 22.0); //Linken von Geraeten Fenster Badezimmer, Heizung Badezimmer, hg_invoke("addLink", 4, 1, 8, 4); hg_invoke("putParamset", $device, -1, "MASTER", array( "TEMPERATURE_MONDAY_1"=> 22.0, "ENDTIME_MONDAY_1"=> 360, "TEMPERATURE_MONDAY_2"=> 18.0, "ENDTIME_MONDAY_2"=> 540, "TEMPERATURE_MONDAY_3"=> 22.00, "ENDTIME_MONDAY_3"=> 720, "TEMPERATURE_MONDAY_4"=> 18.0, "ENDTIME_MONDAY_4"=> 900, "TEMPERATURE_MONDAY_5"=> 22.0, "ENDTIME_MONDAY_5"=> 1080, "TEMPERATURE_MONDAY_6"=> 18.0, "ENDTIME_MONDAY_6"=> 1380, "TEMPERATURE_MONDAY_7"=> 18.0, "ENDTIME_MONDAY_7"=> 1440, "TEMPERATURE_MONDAY_8"=> 18.0, "ENDTIME_MONDAY_8"=> 1440, "TEMPERATURE_MONDAY_9"=> 18.0, "ENDTIME_MONDAY_9"=> 1440, "TEMPERATURE_MONDAY_10"=> 18.0, "ENDTIME_MONDAY_10"=> 1440, "TEMPERATURE_MONDAY_11"=> 18.0, "ENDTIME_MONDAY_11"=> 1440, "TEMPERATURE_MONDAY_12"=> 18.0, "ENDTIME_MONDAY_12"=> 1440, "TEMPERATURE_MONDAY_13"=> 18.0, "ENDTIME_MONDAY_13"=> 1440, "TEMPERATURE_TUESDAY_1"=> 22.0, "ENDTIME_TUESDAY_1"=> 360, "TEMPERATURE_TUESDAY_2"=> 18., "ENDTIME_TUESDAY_2"=> 540, "TEMPERATURE_TUESDAY_3"=> 22.00, "ENDTIME_TUESDAY_3"=> 720, "TEMPERATURE_TUESDAY_4"=> 18., "ENDTIME_TUESDAY_4"=> 900, "TEMPERATURE_TUESDAY_5"=> 22.0, "ENDTIME_TUESDAY_5"=> 1080, "TEMPERATURE_TUESDAY_6"=> 18., "ENDTIME_TUESDAY_6"=> 1380, "TEMPERATURE_TUESDAY_7"=> 18., "ENDTIME_TUESDAY_7"=> 1440, "TEMPERATURE_TUESDAY_8"=> 18., "ENDTIME_TUESDAY_8"=> 1440, "TEMPERATURE_TUESDAY_9"=> 18., "ENDTIME_TUESDAY_9"=> 1440, "TEMPERATURE_TUESDAY_10"=> 18., "ENDTIME_TUESDAY_10"=> 1440, "TEMPERATURE_TUESDAY_11"=> 18., "ENDTIME_TUESDAY_11"=> 1440, "TEMPERATURE_TUESDAY_12"=> 18., "ENDTIME_TUESDAY_12"=> 1440, "TEMPERATURE_TUESDAY_13"=> 18., "ENDTIME_TUESDAY_13"=> 1440, "TEMPERATURE_WEDNESDAY_1"=> 22.0, "ENDTIME_WEDNESDAY_1"=> 360, "TEMPERATURE_WEDNESDAY_2"=> 18., "ENDTIME_WEDNESDAY_2"=> 540, "TEMPERATURE_WEDNESDAY_3"=> 22.00, "ENDTIME_WEDNESDAY_3"=> 720, "TEMPERATURE_WEDNESDAY_4"=> 18., "ENDTIME_WEDNESDAY_4"=> 900, "TEMPERATURE_WEDNESDAY_5"=> 22.0, "ENDTIME_WEDNESDAY_5"=> 1080, "TEMPERATURE_WEDNESDAY_6"=> 18., "ENDTIME_WEDNESDAY_6"=> 1380, "TEMPERATURE_WEDNESDAY_7"=> 18., "ENDTIME_WEDNESDAY_7"=> 1440, "TEMPERATURE_WEDNESDAY_8"=> 18., "ENDTIME_WEDNESDAY_8"=> 1440, "TEMPERATURE_WEDNESDAY_9"=> 18., "ENDTIME_WEDNESDAY_9"=> 1440, "TEMPERATURE_WEDNESDAY_10"=> 18., "ENDTIME_WEDNESDAY_10"=> 1440, "TEMPERATURE_WEDNESDAY_11"=> 18., "ENDTIME_WEDNESDAY_11"=> 1440, "TEMPERATURE_WEDNESDAY_12"=> 18., "ENDTIME_WEDNESDAY_12"=> 1440, "TEMPERATURE_WEDNESDAY_13"=> 18., "ENDTIME_WEDNESDAY_13"=> 1440, "TEMPERATURE_THURSDAY_1"=> 22.0, "ENDTIME_THURSDAY_1"=> 360, "TEMPERATURE_THURSDAY_2"=> 18., "ENDTIME_THURSDAY_2"=> 540, "TEMPERATURE_THURSDAY_3"=> 22.00, "ENDTIME_THURSDAY_3"=> 720, "TEMPERATURE_THURSDAY_4"=> 18., "ENDTIME_THURSDAY_4"=> 900, "TEMPERATURE_THURSDAY_5"=> 22.0, "ENDTIME_THURSDAY_5"=> 1080, "TEMPERATURE_THURSDAY_6"=> 18., "ENDTIME_THURSDAY_6"=> 1380, "TEMPERATURE_THURSDAY_7"=> 18., "ENDTIME_THURSDAY_7"=> 1440, "TEMPERATURE_THURSDAY_8"=> 18., "ENDTIME_THURSDAY_8"=> 1440, "TEMPERATURE_THURSDAY_9"=> 18., "ENDTIME_THURSDAY_9"=> 1440, "TEMPERATURE_THURSDAY_10"=> 18., "ENDTIME_THURSDAY_10"=> 1440, "TEMPERATURE_THURSDAY_11"=> 18., "ENDTIME_THURSDAY_11"=> 1440, "TEMPERATURE_THURSDAY_12"=> 18., "ENDTIME_THURSDAY_12"=> 1440, "TEMPERATURE_THURSDAY_13"=> 18., "ENDTIME_THURSDAY_13"=> 1440, "TEMPERATURE_FRIDAY_1"=> 22.0, "ENDTIME_FRIDAY_1"=> 360, "TEMPERATURE_FRIDAY_2"=> 18., "ENDTIME_FRIDAY_2"=> 540, "TEMPERATURE_FRIDAY_3"=> 22.00, "ENDTIME_FRIDAY_3"=> 720, "TEMPERATURE_FRIDAY_4"=> 18., "ENDTIME_FRIDAY_4"=> 900, "TEMPERATURE_FRIDAY_5"=> 22.0, "ENDTIME_FRIDAY_5"=> 1080, "TEMPERATURE_FRIDAY_6"=> 18., "ENDTIME_FRIDAY_6"=> 1435, "TEMPERATURE_FRIDAY_7"=> 18., "ENDTIME_FRIDAY_7"=> 1440, "TEMPERATURE_FRIDAY_8"=> 18., "ENDTIME_FRIDAY_8"=> 1440, "TEMPERATURE_FRIDAY_9"=> 18., "ENDTIME_FRIDAY_9"=> 1440, "TEMPERATURE_FRIDAY_10"=> 18., "ENDTIME_FRIDAY_10"=> 1440, "TEMPERATURE_FRIDAY_11"=> 18., "ENDTIME_FRIDAY_11"=> 1440, "TEMPERATURE_FRIDAY_12"=> 18., "ENDTIME_FRIDAY_12"=> 1440, "TEMPERATURE_FRIDAY_13"=> 18., "ENDTIME_FRIDAY_13"=> 1440, "TEMPERATURE_SATURDAY_1"=> 22.0, "ENDTIME_SATURDAY_1"=> 480, "TEMPERATURE_SATURDAY_2"=> 18., "ENDTIME_SATURDAY_2"=> 660, "TEMPERATURE_SATURDAY_3"=> 22.00, "ENDTIME_SATURDAY_3"=> 720, "TEMPERATURE_SATURDAY_4"=> 18., "ENDTIME_SATURDAY_4"=> 900, "TEMPERATURE_SATURDAY_5"=> 22.0, "ENDTIME_SATURDAY_5"=> 1080, "TEMPERATURE_SATURDAY_6"=> 18., "ENDTIME_SATURDAY_6"=> 1435, "TEMPERATURE_SATURDAY_7"=> 18., "ENDTIME_SATURDAY_7"=> 1440, "TEMPERATURE_SATURDAY_8"=> 18., "ENDTIME_SATURDAY_8"=> 1440, "TEMPERATURE_SATURDAY_9"=> 18., "ENDTIME_SATURDAY_9"=> 1440, "TEMPERATURE_SATURDAY_10"=> 18., "ENDTIME_SATURDAY_10"=> 1440, "TEMPERATURE_SATURDAY_11"=> 18., "ENDTIME_SATURDAY_11"=> 1440, "TEMPERATURE_SATURDAY_12"=> 18., "ENDTIME_SATURDAY_12"=> 1440, "TEMPERATURE_SATURDAY_13"=> 18., "ENDTIME_SATURDAY_13"=> 1440, "TEMPERATURE_SUNDAY_1"=> 22.0, "ENDTIME_SUNDAY_1"=> 480, "TEMPERATURE_SUNDAY_2"=> 18., "ENDTIME_SUNDAY_2"=> 660, "TEMPERATURE_SUNDAY_3"=> 22.00, "ENDTIME_SUNDAY_3"=> 720, "TEMPERATURE_SUNDAY_4"=> 18., "ENDTIME_SUNDAY_4"=> 900, "TEMPERATURE_SUNDAY_5"=> 22.0, "ENDTIME_SUNDAY_5"=> 1080, "TEMPERATURE_SUNDAY_6"=> 18., "ENDTIME_SUNDAY_6"=> 1380, "TEMPERATURE_SUNDAY_7"=> 18., "ENDTIME_SUNDAY_7"=> 1440, "TEMPERATURE_SUNDAY_8"=> 18., "ENDTIME_SUNDAY_8"=> 1440, "TEMPERATURE_SUNDAY_9"=> 18., "ENDTIME_SUNDAY_9"=> 1440, "TEMPERATURE_SUNDAY_10"=> 18., "ENDTIME_SUNDAY_10"=> 1440, "TEMPERATURE_SUNDAY_11"=> 18., "ENDTIME_SUNDAY_11"=> 1440, "TEMPERATURE_SUNDAY_12"=> 18., "ENDTIME_SUNDAY_12"=> 1440, "TEMPERATURE_SUNDAY_13"=> 18., "ENDTIME_SUNDAY_13"=> 1440 )); ?>

[/code]

Danke und Gruß
Michael

Hallo Michael,

auf was für einem Gerät versuchst du WINDOW_OPEN_TEMPERATURE zu setzen? Die Variable gibt es nur bei Max!-Geräten? Die unterschiede zwischen Max! und HomeMatic BidCoS sollten im Skript vielleicht noch etwas hervorgehoben werden…

Viele Grüße

Sathya

Hi Sathya,

Okay dann haben wir den Fehler.
Es ist ein HM-CC-RT-DN.

Danke und Gruß
Michael

Ja. Frag doch mal Zennix, ob er dir die Parameter des HM-CC-RT-DN nicht auch in den Editor einbauen könnte?