Pass2PHP
Moderator: leecollings
- Egregius
- Posts: 2592
- Joined: Thursday 09 April 2015 12:19
- Target OS: Linux
- Domoticz version: v2024.7
- Location: Beitem, BE
- Contact:
Re: Pass2PHP
Look at the few lines I posted of the pass2php file. You'll have to add your device to that array.
At the moment it'll only take the temperature as I don't care about humidity etc.
At the moment it'll only take the temperature as I don't care about humidity etc.
-
- Posts: 390
- Joined: Wednesday 30 November 2016 11:58
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.10717
- Contact:
Re: Pass2PHP
ok, the log is stil saying the following
I've changed the pass2phpfile file to:
I don't think its working yet
Code: Select all
03-20 16:05:01.759 STATUS ==> Outdoor temperature = 4.3
2020-03-20 16:05:01.759 STATUS ==> Indoor temperature = 20.7 C, 47 %, 1014.6 hPa
2020-03-20 16:05:01.759 (SWITCH) => Duco-afzuiging => Off ()
Code: Select all
} elseif (in_array($device, array('Indoor-Temp&Hum'))) {
$status=explode(';', $status);
$status=$status[0];
- Egregius
- Posts: 2592
- Joined: Thursday 09 April 2015 12:19
- Target OS: Linux
- Domoticz version: v2024.7
- Location: Beitem, BE
- Contact:
Re: Pass2PHP
I see now. Yours has a comma as separator, mine has semicolon. Change the ; to , in the explode.
-
- Posts: 390
- Joined: Wednesday 30 November 2016 11:58
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.10717
- Contact:
Re: Pass2PHP
I'm Sorry I must have turned blind as I cannot see what you mean.
I've checked it all but cannot find any differences
I've checked it all but cannot find any differences

- Egregius
- Posts: 2592
- Joined: Thursday 09 April 2015 12:19
- Target OS: Linux
- Domoticz version: v2024.7
- Location: Beitem, BE
- Contact:
Re: Pass2PHP
Your logfile shows:
Which means that the fields in the status of your indoor temperature are separated with a comma.
On line 29 of https://github.com/Egregius/PHP-Floorpl ... ss2php.php
the status of the devices in the array on line 28 are exploded by a semicolon.
That's why your status doesn't get exploded into a array.
Copy lines 28-30 to a new elseif block:
to
It's up to you to decide if you need to add the $humidity and $baro lines and how to handle them. Maybe with a storemode.
Or don't explode them there and only explode them when you need them. That would be something like this:
Code: Select all
2020-03-20 16:05:01.759 STATUS ==> Indoor temperature = 20.7 C, 47 %, 1014.6 hPa
On line 29 of https://github.com/Egregius/PHP-Floorpl ... ss2php.php
the status of the devices in the array on line 28 are exploded by a semicolon.
That's why your status doesn't get exploded into a array.
Copy lines 28-30 to a new elseif block:
Code: Select all
} elseif (in_array($device, array('badkamer_temp'))) {
$status=explode(';', $status);
$status=$status[0];
to
Code: Select all
} elseif (in_array($device, array('badkamer_temp'))) {
$status=explode(';', $status);
$status=$status[0];
} elseif (in_array($device, array('Indoor-Temp&Hum'))) {
$status=explode(',', $status);
$status=$status[0];
$humidity=$status[1];
$baro=$status[2];
Or don't explode them there and only explode them when you need them. That would be something like this:
Code: Select all
$data=explode(',', $d['Indoor-Temp&Hum']['s']);
$indoortemp=$data[0];
$indoorhumidity=$data[1];
$indoorbaro=$data[2];
if ($d['Outdoor-Temp&Hum']['s']>=$indoortemp){
sw('Duco-afzuiging', 'Off');
}
-
- Posts: 390
- Joined: Wednesday 30 November 2016 11:58
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.10717
- Contact:
Re: Pass2PHP
hi all,
will pass2php work with mariadb?
since the upgrade to version 2020.1 msql is no longe possible to install.
thnx!
will pass2php work with mariadb?
since the upgrade to version 2020.1 msql is no longe possible to install.
thnx!
- Egregius
- Posts: 2592
- Joined: Thursday 09 April 2015 12:19
- Target OS: Linux
- Domoticz version: v2024.7
- Location: Beitem, BE
- Contact:
Re: Pass2PHP
Of course. Mariadb is the default mysql server in buster.
- sincze
- Posts: 1302
- Joined: Monday 02 June 2014 22:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.4
- Location: Netherlands / Breda Area
- Contact:
Re: Pass2PHP
Works like a charm.
Needed to update the php settings ofcourse to different 7.3 "sock" as that will be upgraded as well.

Needed to update the php settings ofcourse to different 7.3 "sock" as that will be upgraded as well.
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
-
- Posts: 390
- Joined: Wednesday 30 November 2016 11:58
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.10717
- Contact:
Pass2PHP
How did you install mcrypt? As it cannot be installed the usual waysincze wrote:Works like a charm.![]()
Needed to update the php settings ofcourse to different 7.3 "sock" as that will be upgraded as well.
Also how did you install the right mariadb?
Sent from my iPhone using Tapatalk
- Egregius
- Posts: 2592
- Joined: Thursday 09 April 2015 12:19
- Target OS: Linux
- Domoticz version: v2024.7
- Location: Beitem, BE
- Contact:
Re: Pass2PHP
I don't think I have mcrypt installed, don't even know what it's used for
I have these mariadb packages installed:
mariadb-client-10.3/stable,stable,now 1:10.3.22-0+deb10u1 amd64 [installed,automatic]
mariadb-client-core-10.3/stable,stable,now 1:10.3.22-0+deb10u1 amd64 [installed,automatic]
mariadb-common/stable,stable,now 1:10.3.22-0+deb10u1 all [installed,automatic]
mariadb-server-10.3/stable,stable,now 1:10.3.22-0+deb10u1 amd64 [installed,automatic]
mariadb-server-core-10.3/stable,stable,now 1:10.3.22-0+deb10u1 amd64 [installed,automatic]
Don't know why I have mariadb-server-10.3 instead of mariadb-server

I have these mariadb packages installed:
mariadb-client-10.3/stable,stable,now 1:10.3.22-0+deb10u1 amd64 [installed,automatic]
mariadb-client-core-10.3/stable,stable,now 1:10.3.22-0+deb10u1 amd64 [installed,automatic]
mariadb-common/stable,stable,now 1:10.3.22-0+deb10u1 all [installed,automatic]
mariadb-server-10.3/stable,stable,now 1:10.3.22-0+deb10u1 amd64 [installed,automatic]
mariadb-server-core-10.3/stable,stable,now 1:10.3.22-0+deb10u1 amd64 [installed,automatic]
Don't know why I have mariadb-server-10.3 instead of mariadb-server
-
- Posts: 390
- Joined: Wednesday 30 November 2016 11:58
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.10717
- Contact:
Re: Pass2PHP
I always thought that php relied on Mcrypt but I guess its not necessary anymore?
- Egregius
- Posts: 2592
- Joined: Thursday 09 April 2015 12:19
- Target OS: Linux
- Domoticz version: v2024.7
- Location: Beitem, BE
- Contact:
Re: Pass2PHP
If you install php the dependencies will also be installed. No need to worry about that.
-
- Posts: 390
- Joined: Wednesday 30 November 2016 11:58
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.10717
- Contact:
Re: Pass2PHP
Great! I got it all working again! 
is it me or does is it working faster with OZW 1.6?
anyway, again very happy with pass2php!

is it me or does is it working faster with OZW 1.6?
anyway, again very happy with pass2php!
- Egregius
- Posts: 2592
- Joined: Thursday 09 April 2015 12:19
- Target OS: Linux
- Domoticz version: v2024.7
- Location: Beitem, BE
- Contact:
Re: Pass2PHP
Don't know if OZW 1.6 is the cause, been running it for months now.
All I know, it works lighting fast and rock solid
All I know, it works lighting fast and rock solid

- Egregius
- Posts: 2592
- Joined: Thursday 09 April 2015 12:19
- Target OS: Linux
- Domoticz version: v2024.7
- Location: Beitem, BE
- Contact:
Re: Pass2PHP
Finally got my Daikin airconditioners installed
Of course, these are now also useable directly in pass2php

Of course, these are now also useable directly in pass2php

-
- Posts: 390
- Joined: Wednesday 30 November 2016 11:58
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.10717
- Contact:
Re: Pass2PHP
Cool!!$ which ones did you purchase. I am looking for an airco as wellEgregius wrote:Finally got my Daikin airconditioners installed![]()
Of course, these are now also useable directly in pass2php

Also perhaps anyone has some experience with adding a Samsung tv?
Sent from my iPhone using Tapatalk
- sincze
- Posts: 1302
- Joined: Monday 02 June 2014 22:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.4
- Location: Netherlands / Breda Area
- Contact:
Re: Pass2PHP
I'm Old school ..
LG Airo here since 2012 non-smart here
Did install a shelly to measure the power usage
LG Airo here since 2012 non-smart here

Did install a shelly to measure the power usage

Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
- Egregius
- Posts: 2592
- Joined: Thursday 09 April 2015 12:19
- Target OS: Linux
- Domoticz version: v2024.7
- Location: Beitem, BE
- Contact:
Re: Pass2PHP
I installed the 3MXM52N multi R32 in combination with 1x Perfera FTX-M35 and 2x Perfera FTX-M20.
-
- Posts: 483
- Joined: Tuesday 12 August 2014 5:37
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V3_8394
- Location: Rumbeke,Belgium
- Contact:
Re: Pass2PHP
Hi guys, well i think of returning back to domoticz lol and this php script.
I changed to Homey to try, but it does not give what i want.
Its very good i think for a user that doesn't know anything about programming.
But if want to switch on a light and switch off after x seconds, lol you need to do a lot.
Even for my heating in my house, djeezes , its to cry what i need to do lol
Now, i had domoticz running before on a raspberry pi. But then some strange things happened (i think Egrerius remembers? i have spoken to you sometimes and you were also out of options
)
Now, what system do you advice to my to run domoticz on with aeon zwave plus stick?
Thank you!
I changed to Homey to try, but it does not give what i want.
Its very good i think for a user that doesn't know anything about programming.
But if want to switch on a light and switch off after x seconds, lol you need to do a lot.
Even for my heating in my house, djeezes , its to cry what i need to do lol
Now, i had domoticz running before on a raspberry pi. But then some strange things happened (i think Egrerius remembers? i have spoken to you sometimes and you were also out of options

Now, what system do you advice to my to run domoticz on with aeon zwave plus stick?
Thank you!
- Egregius
- Posts: 2592
- Joined: Thursday 09 April 2015 12:19
- Target OS: Linux
- Domoticz version: v2024.7
- Location: Beitem, BE
- Contact:
Re: Pass2PHP
Damn, another few hundred euro in the trash, hope you can resell it.
Any raspberry should run Domoticz perfectly, keeping in mind SD card troubles.
For a truly worry free set up:
Use a Intel Nuc (or something similar). I have the Intel Baby Canyon NUC7i3BNH. I recently added 16GB ram so I'm at 24GB ram and I replaced the SATA SSD to a Samsung 970 EVO PLUS M2.SSD.
I installed ProxMox on it as a hypervisor. That permits to run multiple virtual machines on 1 computer. That's the main reason for the extra memory. I also added a extra network card.
In Proxmox I installed several virtual machines:
- pfSense firewall and add blocker. All my internet traffic passes this router.
- Domoticz with Aeotec Z-Wave and RFXCOM.
- A Windows 10 workstation because I use a Mac mainly but sometimes need Windows.
- Some linux distro's that only run to test some stuff.
One of the greatest advantages of the Proxmox setup is that you can easily take whole system snapshot to a NAS or external HD. If the nuc dies I can quickly run Proxmox from USB on a laptop and restore the snapshots until a new Nuc is delivered. In my home everything is handled from Domoticz. Every light, every roller, music, tv, heating, airco, everything. There are even rooms and outlets that can't be switched on without domoticz. So I cannot afford any downtime.
Agreed, it's quite more expensive than a Raspberry but it gives a lot in return. If you have on old laptop laying around that could also be a good option. You mainly want something that's stable and doesn't consume to much power.
Any raspberry should run Domoticz perfectly, keeping in mind SD card troubles.
For a truly worry free set up:
Use a Intel Nuc (or something similar). I have the Intel Baby Canyon NUC7i3BNH. I recently added 16GB ram so I'm at 24GB ram and I replaced the SATA SSD to a Samsung 970 EVO PLUS M2.SSD.
I installed ProxMox on it as a hypervisor. That permits to run multiple virtual machines on 1 computer. That's the main reason for the extra memory. I also added a extra network card.
In Proxmox I installed several virtual machines:
- pfSense firewall and add blocker. All my internet traffic passes this router.
- Domoticz with Aeotec Z-Wave and RFXCOM.
- A Windows 10 workstation because I use a Mac mainly but sometimes need Windows.
- Some linux distro's that only run to test some stuff.
One of the greatest advantages of the Proxmox setup is that you can easily take whole system snapshot to a NAS or external HD. If the nuc dies I can quickly run Proxmox from USB on a laptop and restore the snapshots until a new Nuc is delivered. In my home everything is handled from Domoticz. Every light, every roller, music, tv, heating, airco, everything. There are even rooms and outlets that can't be switched on without domoticz. So I cannot afford any downtime.
Agreed, it's quite more expensive than a Raspberry but it gives a lot in return. If you have on old laptop laying around that could also be a good option. You mainly want something that's stable and doesn't consume to much power.
Who is online
Users browsing this forum: No registered users and 1 guest