Homegear auf Raspberry im Docker-Container --> PHP Scripte werden nicht ausgeführt

Hallo,

Ich habe mir für meinen Raspberry 3 einen Docker Container für homegear erstellt.
Angelehnt habe ich es an das homegear Image auf dem Docker Hub. Das Dockerfile sieht folgendermassen aus:

Dockerfile

FROM resin/rpi-raspbian:jessie

# File Author / Maintainer
MAINTAINER Sven Berger

############################################################
# don't ask for stupid things 
############################################################
ENV DEBIAN_FRONTEND noninteractive 
RUN echo APT::Install-Recommends "0"; >> /etc/apt/apt.conf 
RUN echo APT::Install-Suggests "0"; >> /etc/apt/apt.conf

############################################################
# Environment Variables
############################################################
ENV LC_ALL de_DE.UTF-8
ENV LANG de_DE.UTF-8
ENV LANGUAGE de_DE.UTF-8
ENV USERNAME homegear
ENV USERID 9001
ENV GROUPID 9001
ENV TZ Europe/Berlin

############################################################
# Update Repository and upgrade Software
############################################################

RUN apt-get update
RUN apt-get dist-upgrade -y
RUN apt-get install wget \
mc \
locales \
apt-transport-https \
ca-certificates \
apt-utils \
-y

############################################################
# Konfigure timezone and locale
############################################################

RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone 
RUN ln -s /etc/locale.alias /usr/share/locale/locale.alias
RUN dpkg-reconfigure locales && locale-gen de_DE.UTF-8 && /usr/sbin/update-locale de_DE.UTF-8
RUN echo 'de_DE.UTF-8 UTF-8' >> /etc/locale.gen ; locale-gen de_DE.UTF-8; echo LANG="de_DE.UTF-8" >> /etc/default/locale

############################################################
# User anlegen
############################################################
RUN groupadd -g $GROUPID $USERNAME &&\
    adduser --disabled-password --gecos '' --home /opt/$USERNAME --uid $USERID --gid $GROUPID $USERNAME &&\
    adduser $USERNAME dialout &&\
    adduser $USERNAME users &&\
    adduser $USERNAME sudo &&\
    adduser $USERNAME $USERNAME


############################################################
# Add Repository and upgrade Software
############################################################
RUN wget https://homegear.eu/packages/Release.key && apt-key add Release.key && rm Release.key
RUN echo 'deb https://homegear.eu/packages/Raspbian/ jessie/' >> /etc/apt/sources.list.d/homegear.list
RUN apt-get update && apt-get dist-upgrade -y

############################################################
# Install Software
############################################################
RUN apt-get install homegear \
homegear-max \
#homegear-homematicbidcos \
#homegear-homematicwired \
#homegear-insteon \
#homegear-philipshue \
#homegear-sonos \
#homegear-kodi \
#homegear-ipcam \
#homegear-beckhoff \
#homegear-knx \
#homegear-enocean \
#homegear-intertechno \
aspell-de \
-y

############################################################
# Copy External Data
############################################################
RUN mkdir /etc/homegear.config && cp -r /etc/homegear/* /etc/homegear.config
RUN mkdir /var/lib/homegear.data && cp -r /var/lib/homegear/* /var/lib/homegear.data

############################################################
# Copy Start Scripts
############################################################
COPY start.sh /usr/local/bin/start.sh
RUN chmod +x /usr/local/bin/start.sh

############################################################
# Remove Apt Data
############################################################
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

############################################################
# Folders needed
############################################################
VOLUME /etc/homegear 
VOLUME /var/lib/homegear
VOLUME /var/log/homegear


############################################################
# Prots needed
############################################################

EXPOSE 2001 2002 2003


############################################################
# Container Start
############################################################
#CMD ["/bin/true"]
#CMD ["service pilight start"]
#CMD ["/bin/bash", "service pilight start"]
#CMD ["/bin/bash", "/usr/local/sbin/pilight-debug"]
#CMD ["/bin/bash", "/usr/local/sbin/pilight-daemon"]
CMD ["/bin/bash", "/usr/local/bin/start.sh"]

gestartet wird der Container über systemd mit folgender Konfiguration

systemd Service

[Unit]
Description=Docker HomeGear
Requires=docker.service
After=docker.service

[Service]
Restart=always
ExecStart=/usr/bin/docker run --name=%n --net=host \
  -v /etc/localtime:/etc/localtime:ro \
  -v /etc/timezone:/etc/timezone:ro \
  -v /opt/automation/homegear/config:/etc/homegear \
  -v /opt/automation/homegear/log:/var/log/homegear \
  -v /opt/automation/homegear/lib:/var/lib/homegear \
  -v /boot:/boot \
  --privileged \
  automation/homegear
ExecStop=/usr/bin/docker stop -t 2 %n ; /usr/bin/docker rm -f %n

[Install]
WantedBy=multi-user.target

Kommunikation mit einem Openhab in einem anderen Docker Container funktioniert.
MAX! Geräte sind auch angelernt und senden ihre Werte an Openhab.

Jetzt möchte ich das durch Zennix seinen Wochenprogrammm Generator generierte Wochenprogramm an die Geräte senden.

Das PHP-File sieht folgendermassen aus


#!/usr/bin/env php
<?php
//Wochenprogramm fuer Badezimmer Heizungsthermostat


$device=3;


hg_invoke("setValue", $device, 1, "WINDOW_OPEN_TEMPERATURE", 12.0);
hg_invoke("setValue", $device, 1, "ECO_TEMPERATURE", 19.0);
hg_invoke("setValue", $device, 1, "COMFORT_TEMPERATURE", 22.0);
hg_invoke("setValue", $device, 1, "DECALCIFICATION_TIME", 11);
hg_invoke("setValue", $device, 1, "DECALCIFICATION_WEEKDAY", 1);




hg_invoke("putParamset", $device, -1, "MASTER", array(
     "TEMPERATURE_MONDAY_1"=> 19.0,
     "ENDTIME_MONDAY_1"=> 60,
     "TEMPERATURE_MONDAY_2"=> 19.0,
     "ENDTIME_MONDAY_2"=> 75,
     "TEMPERATURE_MONDAY_3"=> 19.0,
     "ENDTIME_MONDAY_3"=> 135,
     "TEMPERATURE_MONDAY_4"=> 19.0,
     "ENDTIME_MONDAY_4"=> 195,
     "TEMPERATURE_MONDAY_5"=> 19.0,
     "ENDTIME_MONDAY_5"=> 255,
     "TEMPERATURE_MONDAY_6"=> 22.0,
     "ENDTIME_MONDAY_6"=> 315,
     "TEMPERATURE_MONDAY_7"=> 20.0,
     "ENDTIME_MONDAY_7"=> 450,
     "TEMPERATURE_MONDAY_8"=> 22.0,
     "ENDTIME_MONDAY_8"=> 1080,
     "TEMPERATURE_MONDAY_9"=> 19.0,
     "ENDTIME_MONDAY_9"=> 1260,
     "TEMPERATURE_MONDAY_10"=> 19.0,
     "ENDTIME_MONDAY_10"=> 1335,
     "TEMPERATURE_MONDAY_11"=> 19.0,
     "ENDTIME_MONDAY_11"=> 1395,
     "TEMPERATURE_MONDAY_12"=> 19.0,
     "ENDTIME_MONDAY_12"=> 1440,
     "TEMPERATURE_MONDAY_13"=> 19.0,
     "ENDTIME_MONDAY_13"=> 1440,


     "TEMPERATURE_TUESDAY_1"=> 19.0,
     "ENDTIME_TUESDAY_1"=> 60,
     "TEMPERATURE_TUESDAY_2"=> 19.0,
     "ENDTIME_TUESDAY_2"=> 75,
     "TEMPERATURE_TUESDAY_3"=> 19.0,
     "ENDTIME_TUESDAY_3"=> 135,
     "TEMPERATURE_TUESDAY_4"=> 19.0,
     "ENDTIME_TUESDAY_4"=> 195,
     "TEMPERATURE_TUESDAY_5"=> 19.0,
     "ENDTIME_TUESDAY_5"=> 255,
     "TEMPERATURE_TUESDAY_6"=> 22.0,
     "ENDTIME_TUESDAY_6"=> 315,
     "TEMPERATURE_TUESDAY_7"=> 20.0,
     "ENDTIME_TUESDAY_7"=> 450,
     "TEMPERATURE_TUESDAY_8"=> 22.0,
     "ENDTIME_TUESDAY_8"=> 1080,
     "TEMPERATURE_TUESDAY_9"=> 19.0,
     "ENDTIME_TUESDAY_9"=> 1260,
     "TEMPERATURE_TUESDAY_10"=> 19.0,
     "ENDTIME_TUESDAY_10"=> 1335,
     "TEMPERATURE_TUESDAY_11"=> 19.0,
     "ENDTIME_TUESDAY_11"=> 1395,
     "TEMPERATURE_TUESDAY_12"=> 19.0,
     "ENDTIME_TUESDAY_12"=> 1440,
     "TEMPERATURE_TUESDAY_13"=> 19.0,
     "ENDTIME_TUESDAY_13"=> 1440,

     "TEMPERATURE_WEDNESDAY_1"=> 19.0,
     "ENDTIME_WEDNESDAY_1"=> 60,
     "TEMPERATURE_WEDNESDAY_2"=> 19.0,
     "ENDTIME_WEDNESDAY_2"=> 75,
     "TEMPERATURE_WEDNESDAY_3"=> 19.0,
     "ENDTIME_WEDNESDAY_3"=> 135,
     "TEMPERATURE_WEDNESDAY_4"=> 19.0,
     "ENDTIME_WEDNESDAY_4"=> 195,
     "TEMPERATURE_WEDNESDAY_5"=> 19.0,
     "ENDTIME_WEDNESDAY_5"=> 255,
     "TEMPERATURE_WEDNESDAY_6"=> 22.0,
     "ENDTIME_WEDNESDAY_6"=> 315,
     "TEMPERATURE_WEDNESDAY_7"=> 20.0,
     "ENDTIME_WEDNESDAY_7"=> 435,
     "TEMPERATURE_WEDNESDAY_8"=> 22.0,
     "ENDTIME_WEDNESDAY_8"=> 1080,
     "TEMPERATURE_WEDNESDAY_9"=> 19.0,
     "ENDTIME_WEDNESDAY_9"=> 1260,
     "TEMPERATURE_WEDNESDAY_10"=> 19.0,
     "ENDTIME_WEDNESDAY_10"=> 1335,
     "TEMPERATURE_WEDNESDAY_11"=> 19.0,
     "ENDTIME_WEDNESDAY_11"=> 1395,
     "TEMPERATURE_WEDNESDAY_12"=> 19.0,
     "ENDTIME_WEDNESDAY_12"=> 1440,
     "TEMPERATURE_WEDNESDAY_13"=> 19.0,
     "ENDTIME_WEDNESDAY_13"=> 1440,

     "TEMPERATURE_THURSDAY_1"=> 19.0,
     "ENDTIME_THURSDAY_1"=> 60,
     "TEMPERATURE_THURSDAY_2"=> 19.0,
     "ENDTIME_THURSDAY_2"=> 75,
     "TEMPERATURE_THURSDAY_3"=> 19.0,
     "ENDTIME_THURSDAY_3"=> 135,
     "TEMPERATURE_THURSDAY_4"=> 19.0,
     "ENDTIME_THURSDAY_4"=> 195,
     "TEMPERATURE_THURSDAY_5"=> 19.0,
     "ENDTIME_THURSDAY_5"=> 255,
     "TEMPERATURE_THURSDAY_6"=> 22.0,
     "ENDTIME_THURSDAY_6"=> 315,
     "TEMPERATURE_THURSDAY_7"=> 20.0,
     "ENDTIME_THURSDAY_7"=> 450,
     "TEMPERATURE_THURSDAY_8"=> 22.0,
     "ENDTIME_THURSDAY_8"=> 1080,
     "TEMPERATURE_THURSDAY_9"=> 19.0,
     "ENDTIME_THURSDAY_9"=> 1260,
     "TEMPERATURE_THURSDAY_10"=> 19.0,
     "ENDTIME_THURSDAY_10"=> 1335,
     "TEMPERATURE_THURSDAY_11"=> 19.0,
     "ENDTIME_THURSDAY_11"=> 1395,
     "TEMPERATURE_THURSDAY_12"=> 19.0,
     "ENDTIME_THURSDAY_12"=> 1440,
     "TEMPERATURE_THURSDAY_13"=> 19.0,
     "ENDTIME_THURSDAY_13"=> 1440,

     "TEMPERATURE_FRIDAY_1"=> 19.0,
     "ENDTIME_FRIDAY_1"=> 60,
     "TEMPERATURE_FRIDAY_2"=> 19.0,
     "ENDTIME_FRIDAY_2"=> 75,
     "TEMPERATURE_FRIDAY_3"=> 19.0,
     "ENDTIME_FRIDAY_3"=> 135,
     "TEMPERATURE_FRIDAY_4"=> 19.0,
     "ENDTIME_FRIDAY_4"=> 195,
     "TEMPERATURE_FRIDAY_5"=> 19.0,
     "ENDTIME_FRIDAY_5"=> 255,
     "TEMPERATURE_FRIDAY_6"=> 22.0,
     "ENDTIME_FRIDAY_6"=> 315,
     "TEMPERATURE_FRIDAY_7"=> 20.0,
     "ENDTIME_FRIDAY_7"=> 450,
     "TEMPERATURE_FRIDAY_8"=> 22.0,
     "ENDTIME_FRIDAY_8"=> 1080,
     "TEMPERATURE_FRIDAY_9"=> 21.0,
     "ENDTIME_FRIDAY_9"=> 1260,
     "TEMPERATURE_FRIDAY_10"=> 21.0,
     "ENDTIME_FRIDAY_10"=> 1335,
     "TEMPERATURE_FRIDAY_11"=> 19.0,
     "ENDTIME_FRIDAY_11"=> 1395,
     "TEMPERATURE_FRIDAY_12"=> 19.0,
     "ENDTIME_FRIDAY_12"=> 1440,
     "TEMPERATURE_FRIDAY_13"=> 19.0,
     "ENDTIME_FRIDAY_13"=> 1440,

     "TEMPERATURE_SATURDAY_1"=> 19.0,
     "ENDTIME_SATURDAY_1"=> 60,
     "TEMPERATURE_SATURDAY_2"=> 19.0,
     "ENDTIME_SATURDAY_2"=> 75,
     "TEMPERATURE_SATURDAY_3"=> 19.0,
     "ENDTIME_SATURDAY_3"=> 135,
     "TEMPERATURE_SATURDAY_4"=> 19.0,
     "ENDTIME_SATURDAY_4"=> 195,
     "TEMPERATURE_SATURDAY_5"=> 19.0,
     "ENDTIME_SATURDAY_5"=> 255,
     "TEMPERATURE_SATURDAY_6"=> 22.0,
     "ENDTIME_SATURDAY_6"=> 315,
     "TEMPERATURE_SATURDAY_7"=> 20.0,
     "ENDTIME_SATURDAY_7"=> 540,
     "TEMPERATURE_SATURDAY_8"=> 22.0,
     "ENDTIME_SATURDAY_8"=> 1080,
     "TEMPERATURE_SATURDAY_9"=> 21.0,
     "ENDTIME_SATURDAY_9"=> 1260,
     "TEMPERATURE_SATURDAY_10"=> 21.0,
     "ENDTIME_SATURDAY_10"=> 1335,
     "TEMPERATURE_SATURDAY_11"=> 19.0,
     "ENDTIME_SATURDAY_11"=> 1395,
     "TEMPERATURE_SATURDAY_12"=> 19.0,
     "ENDTIME_SATURDAY_12"=> 1440,
     "TEMPERATURE_SATURDAY_13"=> 19.0,
     "ENDTIME_SATURDAY_13"=> 1440,

     "TEMPERATURE_SUNDAY_1"=> 19.0,
     "ENDTIME_SUNDAY_1"=> 60,
     "TEMPERATURE_SUNDAY_2"=> 19.0,
     "ENDTIME_SUNDAY_2"=> 75,
     "TEMPERATURE_SUNDAY_3"=> 19.0,
     "ENDTIME_SUNDAY_3"=> 135,
     "TEMPERATURE_SUNDAY_4"=> 19.0,
     "ENDTIME_SUNDAY_4"=> 195,
     "TEMPERATURE_SUNDAY_5"=> 19.0,
     "ENDTIME_SUNDAY_5"=> 255,
     "TEMPERATURE_SUNDAY_6"=> 22.0,
     "ENDTIME_SUNDAY_6"=> 315,
     "TEMPERATURE_SUNDAY_7"=> 20.0,
     "ENDTIME_SUNDAY_7"=> 540,
     "TEMPERATURE_SUNDAY_8"=> 22.0,
     "ENDTIME_SUNDAY_8"=> 1080,
     "TEMPERATURE_SUNDAY_9"=> 20.0,
     "ENDTIME_SUNDAY_9"=> 1260,
     "TEMPERATURE_SUNDAY_10"=> 19.0,
     "ENDTIME_SUNDAY_10"=> 1335,
     "TEMPERATURE_SUNDAY_11"=> 19.0,
     "ENDTIME_SUNDAY_11"=> 1395,
     "TEMPERATURE_SUNDAY_12"=> 19.0,
     "ENDTIME_SUNDAY_12"=> 1440,
     "TEMPERATURE_SUNDAY_13"=> 19.0,
     "ENDTIME_SUNDAY_13"=> 1440
     ));
?>

Es liegt auch ausführbar im Verzeichnis scritpe unter /var/lib/homegear

Jetzt versuche ich es mittels:

docker exec -ti homegear.service homegear -e rs I_OG_BA_HZ_programm_WT.php

ODER Step by Step:

docker exec -ti homegear.service /bin/bash

und dann

homegear -e rs I_OG_BA_HZ_programm_WT.php

an das Wandthermostat zu senden.
Dies scheint aber nicht zu klappen.

Als Rückmeldung erhalte ich nur die erste Zeile aus dem PHP-File.

Es wird aber nichts an den Wandthermostat gesendet.

Was mache ich falsch?
Habe ich im Dockercontainer noch irgendentwas mit PHP vergessen?

Hallo @der-brumm-baer,

Du machst fast alles richtig ;-). Das Problem ist, dass hg_invoke nicht mehr unterstützt wird. Inzwischen ist das Ganze voll objektorientiert.

Hier das korrigierte Skript:

<?php
//Wochenprogramm fuer Badezimmer Heizungsthermostat


$device=3;

$hg = new \Homegear\Homegear();

$hg->setValue($device, 1, "WINDOW_OPEN_TEMPERATURE", 12.0);
$hg->setValue($device, 1, "ECO_TEMPERATURE", 19.0);
$hg->setValue($device, 1, "COMFORT_TEMPERATURE", 22.0);
$hg->setValue($device, 1, "DECALCIFICATION_TIME", 11);
$hg->setValue($device, 1, "DECALCIFICATION_WEEKDAY", 1);




$hg->putParamset($device, -1, "MASTER", array(
     "TEMPERATURE_MONDAY_1"=> 19.0,
     "ENDTIME_MONDAY_1"=> 60,
     "TEMPERATURE_MONDAY_2"=> 19.0,
     "ENDTIME_MONDAY_2"=> 75,
     "TEMPERATURE_MONDAY_3"=> 19.0,
     "ENDTIME_MONDAY_3"=> 135,
     "TEMPERATURE_MONDAY_4"=> 19.0,
     "ENDTIME_MONDAY_4"=> 195,
     "TEMPERATURE_MONDAY_5"=> 19.0,
     "ENDTIME_MONDAY_5"=> 255,
     "TEMPERATURE_MONDAY_6"=> 22.0,
     "ENDTIME_MONDAY_6"=> 315,
     "TEMPERATURE_MONDAY_7"=> 20.0,
     "ENDTIME_MONDAY_7"=> 450,
     "TEMPERATURE_MONDAY_8"=> 22.0,
     "ENDTIME_MONDAY_8"=> 1080,
     "TEMPERATURE_MONDAY_9"=> 19.0,
     "ENDTIME_MONDAY_9"=> 1260,
     "TEMPERATURE_MONDAY_10"=> 19.0,
     "ENDTIME_MONDAY_10"=> 1335,
     "TEMPERATURE_MONDAY_11"=> 19.0,
     "ENDTIME_MONDAY_11"=> 1395,
     "TEMPERATURE_MONDAY_12"=> 19.0,
     "ENDTIME_MONDAY_12"=> 1440,
     "TEMPERATURE_MONDAY_13"=> 19.0,
     "ENDTIME_MONDAY_13"=> 1440,


     "TEMPERATURE_TUESDAY_1"=> 19.0,
     "ENDTIME_TUESDAY_1"=> 60,
     "TEMPERATURE_TUESDAY_2"=> 19.0,
     "ENDTIME_TUESDAY_2"=> 75,
     "TEMPERATURE_TUESDAY_3"=> 19.0,
     "ENDTIME_TUESDAY_3"=> 135,
     "TEMPERATURE_TUESDAY_4"=> 19.0,
     "ENDTIME_TUESDAY_4"=> 195,
     "TEMPERATURE_TUESDAY_5"=> 19.0,
     "ENDTIME_TUESDAY_5"=> 255,
     "TEMPERATURE_TUESDAY_6"=> 22.0,
     "ENDTIME_TUESDAY_6"=> 315,
     "TEMPERATURE_TUESDAY_7"=> 20.0,
     "ENDTIME_TUESDAY_7"=> 450,
     "TEMPERATURE_TUESDAY_8"=> 22.0,
     "ENDTIME_TUESDAY_8"=> 1080,
     "TEMPERATURE_TUESDAY_9"=> 19.0,
     "ENDTIME_TUESDAY_9"=> 1260,
     "TEMPERATURE_TUESDAY_10"=> 19.0,
     "ENDTIME_TUESDAY_10"=> 1335,
     "TEMPERATURE_TUESDAY_11"=> 19.0,
     "ENDTIME_TUESDAY_11"=> 1395,
     "TEMPERATURE_TUESDAY_12"=> 19.0,
     "ENDTIME_TUESDAY_12"=> 1440,
     "TEMPERATURE_TUESDAY_13"=> 19.0,
     "ENDTIME_TUESDAY_13"=> 1440,

     "TEMPERATURE_WEDNESDAY_1"=> 19.0,
     "ENDTIME_WEDNESDAY_1"=> 60,
     "TEMPERATURE_WEDNESDAY_2"=> 19.0,
     "ENDTIME_WEDNESDAY_2"=> 75,
     "TEMPERATURE_WEDNESDAY_3"=> 19.0,
     "ENDTIME_WEDNESDAY_3"=> 135,
     "TEMPERATURE_WEDNESDAY_4"=> 19.0,
     "ENDTIME_WEDNESDAY_4"=> 195,
     "TEMPERATURE_WEDNESDAY_5"=> 19.0,
     "ENDTIME_WEDNESDAY_5"=> 255,
     "TEMPERATURE_WEDNESDAY_6"=> 22.0,
     "ENDTIME_WEDNESDAY_6"=> 315,
     "TEMPERATURE_WEDNESDAY_7"=> 20.0,
     "ENDTIME_WEDNESDAY_7"=> 435,
     "TEMPERATURE_WEDNESDAY_8"=> 22.0,
     "ENDTIME_WEDNESDAY_8"=> 1080,
     "TEMPERATURE_WEDNESDAY_9"=> 19.0,
     "ENDTIME_WEDNESDAY_9"=> 1260,
     "TEMPERATURE_WEDNESDAY_10"=> 19.0,
     "ENDTIME_WEDNESDAY_10"=> 1335,
     "TEMPERATURE_WEDNESDAY_11"=> 19.0,
     "ENDTIME_WEDNESDAY_11"=> 1395,
     "TEMPERATURE_WEDNESDAY_12"=> 19.0,
     "ENDTIME_WEDNESDAY_12"=> 1440,
     "TEMPERATURE_WEDNESDAY_13"=> 19.0,
     "ENDTIME_WEDNESDAY_13"=> 1440,

     "TEMPERATURE_THURSDAY_1"=> 19.0,
     "ENDTIME_THURSDAY_1"=> 60,
     "TEMPERATURE_THURSDAY_2"=> 19.0,
     "ENDTIME_THURSDAY_2"=> 75,
     "TEMPERATURE_THURSDAY_3"=> 19.0,
     "ENDTIME_THURSDAY_3"=> 135,
     "TEMPERATURE_THURSDAY_4"=> 19.0,
     "ENDTIME_THURSDAY_4"=> 195,
     "TEMPERATURE_THURSDAY_5"=> 19.0,
     "ENDTIME_THURSDAY_5"=> 255,
     "TEMPERATURE_THURSDAY_6"=> 22.0,
     "ENDTIME_THURSDAY_6"=> 315,
     "TEMPERATURE_THURSDAY_7"=> 20.0,
     "ENDTIME_THURSDAY_7"=> 450,
     "TEMPERATURE_THURSDAY_8"=> 22.0,
     "ENDTIME_THURSDAY_8"=> 1080,
     "TEMPERATURE_THURSDAY_9"=> 19.0,
     "ENDTIME_THURSDAY_9"=> 1260,
     "TEMPERATURE_THURSDAY_10"=> 19.0,
     "ENDTIME_THURSDAY_10"=> 1335,
     "TEMPERATURE_THURSDAY_11"=> 19.0,
     "ENDTIME_THURSDAY_11"=> 1395,
     "TEMPERATURE_THURSDAY_12"=> 19.0,
     "ENDTIME_THURSDAY_12"=> 1440,
     "TEMPERATURE_THURSDAY_13"=> 19.0,
     "ENDTIME_THURSDAY_13"=> 1440,

     "TEMPERATURE_FRIDAY_1"=> 19.0,
     "ENDTIME_FRIDAY_1"=> 60,
     "TEMPERATURE_FRIDAY_2"=> 19.0,
     "ENDTIME_FRIDAY_2"=> 75,
     "TEMPERATURE_FRIDAY_3"=> 19.0,
     "ENDTIME_FRIDAY_3"=> 135,
     "TEMPERATURE_FRIDAY_4"=> 19.0,
     "ENDTIME_FRIDAY_4"=> 195,
     "TEMPERATURE_FRIDAY_5"=> 19.0,
     "ENDTIME_FRIDAY_5"=> 255,
     "TEMPERATURE_FRIDAY_6"=> 22.0,
     "ENDTIME_FRIDAY_6"=> 315,
     "TEMPERATURE_FRIDAY_7"=> 20.0,
     "ENDTIME_FRIDAY_7"=> 450,
     "TEMPERATURE_FRIDAY_8"=> 22.0,
     "ENDTIME_FRIDAY_8"=> 1080,
     "TEMPERATURE_FRIDAY_9"=> 21.0,
     "ENDTIME_FRIDAY_9"=> 1260,
     "TEMPERATURE_FRIDAY_10"=> 21.0,
     "ENDTIME_FRIDAY_10"=> 1335,
     "TEMPERATURE_FRIDAY_11"=> 19.0,
     "ENDTIME_FRIDAY_11"=> 1395,
     "TEMPERATURE_FRIDAY_12"=> 19.0,
     "ENDTIME_FRIDAY_12"=> 1440,
     "TEMPERATURE_FRIDAY_13"=> 19.0,
     "ENDTIME_FRIDAY_13"=> 1440,

     "TEMPERATURE_SATURDAY_1"=> 19.0,
     "ENDTIME_SATURDAY_1"=> 60,
     "TEMPERATURE_SATURDAY_2"=> 19.0,
     "ENDTIME_SATURDAY_2"=> 75,
     "TEMPERATURE_SATURDAY_3"=> 19.0,
     "ENDTIME_SATURDAY_3"=> 135,
     "TEMPERATURE_SATURDAY_4"=> 19.0,
     "ENDTIME_SATURDAY_4"=> 195,
     "TEMPERATURE_SATURDAY_5"=> 19.0,
     "ENDTIME_SATURDAY_5"=> 255,
     "TEMPERATURE_SATURDAY_6"=> 22.0,
     "ENDTIME_SATURDAY_6"=> 315,
     "TEMPERATURE_SATURDAY_7"=> 20.0,
     "ENDTIME_SATURDAY_7"=> 540,
     "TEMPERATURE_SATURDAY_8"=> 22.0,
     "ENDTIME_SATURDAY_8"=> 1080,
     "TEMPERATURE_SATURDAY_9"=> 21.0,
     "ENDTIME_SATURDAY_9"=> 1260,
     "TEMPERATURE_SATURDAY_10"=> 21.0,
     "ENDTIME_SATURDAY_10"=> 1335,
     "TEMPERATURE_SATURDAY_11"=> 19.0,
     "ENDTIME_SATURDAY_11"=> 1395,
     "TEMPERATURE_SATURDAY_12"=> 19.0,
     "ENDTIME_SATURDAY_12"=> 1440,
     "TEMPERATURE_SATURDAY_13"=> 19.0,
     "ENDTIME_SATURDAY_13"=> 1440,

     "TEMPERATURE_SUNDAY_1"=> 19.0,
     "ENDTIME_SUNDAY_1"=> 60,
     "TEMPERATURE_SUNDAY_2"=> 19.0,
     "ENDTIME_SUNDAY_2"=> 75,
     "TEMPERATURE_SUNDAY_3"=> 19.0,
     "ENDTIME_SUNDAY_3"=> 135,
     "TEMPERATURE_SUNDAY_4"=> 19.0,
     "ENDTIME_SUNDAY_4"=> 195,
     "TEMPERATURE_SUNDAY_5"=> 19.0,
     "ENDTIME_SUNDAY_5"=> 255,
     "TEMPERATURE_SUNDAY_6"=> 22.0,
     "ENDTIME_SUNDAY_6"=> 315,
     "TEMPERATURE_SUNDAY_7"=> 20.0,
     "ENDTIME_SUNDAY_7"=> 540,
     "TEMPERATURE_SUNDAY_8"=> 22.0,
     "ENDTIME_SUNDAY_8"=> 1080,
     "TEMPERATURE_SUNDAY_9"=> 20.0,
     "ENDTIME_SUNDAY_9"=> 1260,
     "TEMPERATURE_SUNDAY_10"=> 19.0,
     "ENDTIME_SUNDAY_10"=> 1335,
     "TEMPERATURE_SUNDAY_11"=> 19.0,
     "ENDTIME_SUNDAY_11"=> 1395,
     "TEMPERATURE_SUNDAY_12"=> 19.0,
     "ENDTIME_SUNDAY_12"=> 1440,
     "TEMPERATURE_SUNDAY_13"=> 19.0,
     "ENDTIME_SUNDAY_13"=> 1440
     ));

// Kein "?>", um Leerausgaben im Log zu vermeiden.

Viele Grüße

Sathya

Hallo Sathya,

Bin jetzt erst dazu gekommen das zu testen, klappt wunderbar.

Werde mich mal in dem anderen Thread an Zennix wenden, ob er sein Tool anpassen kann.

Danke und Gruß
Sven