I received my thermostat and tried to use it via the eq3.exp script. But i always run into the following error:
eq3.exp: command not found
Were you faced with the same issue?
It seems, that expect is not correctly installed or anything else, but google search results in nearly no helpful thread.
When i install expect via this command:
sudo apt install expect
I get this:
Reading package lists… Done
Building dependency tree
Reading state information… Done
expect is already the newest version (5.45-7+deb9u1).
0 upgraded, 0 newly installed, 0 to remove and 14 not upgraded.
thanks for that info! i will try that, when i get the device to be connected with my rpi. at the moment i found out that the connection is not established correctly.
many thanks once again for this great support here!
I placed both files eq3.exp & eq3.php in /etc/openhab2/html/, which is accessible via http://[your OH server]:8080/static/[the file name] (see the following link)
the output you’ve got is the content of the php file, which is being displayed as text - so php isn’t set-up properly on your system.
I’m not sure if you can run php from within the OH ‘static’ directory.
I’ve got a ‘normal’ (not OH) webserver running on my server with php already configured and installed the scripts there.
At the end, for me the above mentioned code fence remains, after having set up the php webserver, in a completely empty, blank, webpage, and nothing did change to the radiator.
what happens if you run ‘hcitools lescan’ from the commandline? Does the bluetooth see the Radstat?
If so, what happens if you run
./eq3.exp 11:22:33:44:55:66 sync
(with your RadStat’s mac-address, from the directory that eq3.exp is in)
Note that running eq3.exp might not work everytime, so try a few times. If that reports back with temperature, etc, as detailed in the readme for the code, then it should work.
you are 100% sure that you are not connected/ paired with this radiator??
i tried to do that, but whenever i try to run
sudo bluetoothctl
and then
pair "my mac adress"
bluetoothctl does not ask me to enter a pairing code, but the display of the radiators give me one (long press on the round button); meaning that after a 5 seconds timeout, i lose connection to the radiator.
Im quite happy because i managed it to get status information on the terminal level!
what i have done is (only once, after reboot the following are also working)
gatttool -I
connect "my mac adress"
now i can exetuting this (i need to use the “-”, the “:” are not working!!!
./eq3.exp 00:1A:22:0F:3D:71 sync
and gets that:
Temperature: 21.0°C
Valve: 100%
Mode: auto dst
Vacation mode: off
after executing the command via the webpage, i still get an empty page and the radiator does not change the values, but when executing the command via the terminal, i receive data from the radiator…
meaning there must be a mistake…
I have my eq3.exp script in the ‘eq3’ directory and the eq3.php script in the ‘php’ subdirectory - so I’m guessing that’s the structure it unzips in. You have both scripts in the php directory.
So try moving eq3.exp to the ‘eq3’ directory and adjust the $script variable in the php script to reflect that.
seriously, im not quite sure if this change made the difference or not, but after having changed this what you mentioned it works!!!
but additional to that, i completely deleted the eq3.php file again and created it once more with the correctly set up path to the eq3.exp.
now it works!! great man, i really really appreciate your help!