PHP interface for TellStick, HomeAutomation v2.0.2 released!

Moderator: Telldus

filifjonkan
Posts: 9
Joined: Fri Mar 17, 2023 9:45 am

Re: PHP interface for TellStick, HomeAutomation v2.0.2 relea

Post by filifjonkan »

Was looking forward to the mobile interface. Looks OK but unfortunately it does not respond when clicking. Using an iPaq with Windows Mobile 6.0 and PIE. Any ideas?
tom_rosenback
Posts: 779
Joined: Fri Mar 17, 2023 9:45 am
Contact:

Re: PHP interface for TellStick, HomeAutomation v2.0.2 relea

Post by tom_rosenback »

filifjonkan wrote:Was looking forward to the mobile interface. Looks OK but unfortunately it does not respond when clicking. Using an iPaq with Windows Mobile 6.0 and PIE. Any ideas?
It requires that you have javascript enabled. Does the mobile GUI work for you through the normal browser, FF / IE?
//Tom

Senaste info och release om/av HomeAutomation hittas här http://karpero.mine.nu/ha
Latest info and release of HomeAutomation can be found here http://karpero.mine.nu/ha
filifjonkan
Posts: 9
Joined: Fri Mar 17, 2023 9:45 am

Re: PHP interface for TellStick, HomeAutomation v2.0.2 relea

Post by filifjonkan »

tom_rosenback wrote:
filifjonkan wrote:Was looking forward to the mobile interface. Looks OK but unfortunately it does not respond when clicking. Using an iPaq with Windows Mobile 6.0 and PIE. Any ideas?
It requires that you have javascript enabled. Does the mobile GUI work for you through the normal browser, FF / IE?
Yes, mobile GUI works with FF/Chrome/IE. Settings for PIE on Windows 6.0 is really limited, javascript on/off is not one of them. Not a big deal really, Windows Mobile 6.0 is fading away.
tom_rosenback
Posts: 779
Joined: Fri Mar 17, 2023 9:45 am
Contact:

Re: PHP interface for TellStick, HomeAutomation v2.0.2 relea

Post by tom_rosenback »

filifjonkan wrote:
tom_rosenback wrote:
filifjonkan wrote:Was looking forward to the mobile interface. Looks OK but unfortunately it does not respond when clicking. Using an iPaq with Windows Mobile 6.0 and PIE. Any ideas?
It requires that you have javascript enabled. Does the mobile GUI work for you through the normal browser, FF / IE?
Yes, mobile GUI works with FF/Chrome/IE. Settings for PIE on Windows 6.0 is really limited, javascript on/off is not one of them. Not a big deal really, Windows Mobile 6.0 is fading away.
I will take a look on this how to make it work without javascript.
//Tom

Senaste info och release om/av HomeAutomation hittas här http://karpero.mine.nu/ha
Latest info and release of HomeAutomation can be found here http://karpero.mine.nu/ha
pumo
Posts: 12
Joined: Fri Mar 17, 2023 9:45 am

Re: PHP interface for TellStick, HomeAutomation v2.0.2 relea

Post by pumo »

question about car warmer, if I set starting time with outer temperature (1wire) what are settings how many minutes/hours it starts before ?
I mean right times, manual says it uses calix recommendations, but what are those?
my car have defa warmer :)
tom_rosenback
Posts: 779
Joined: Fri Mar 17, 2023 9:45 am
Contact:

Re: PHP interface for TellStick, HomeAutomation v2.0.2 relea

Post by tom_rosenback »

pumo wrote:question about car warmer, if I set starting time with outer temperature (1wire) what are settings how many minutes/hours it starts before ?
I mean right times, manual says it uses calix recommendations, but what are those?
my car have defa warmer :)
The car heater is on max 2 hours, then depending on the temperature reading the time varies, but nothing more than 2 hours.

Formula: offset = (-temperature / 10 * 60) + 60

So for example if outside temperature is -5 degrees you get:

(-(-5) / 10 * 60) + 60 = 90 minutes of on time
Calix recommendations wrote:At + 10 ° C about 1h
At 0 ° C about 1h
At - 10 ° C about 2h
At - 20 ° C for approximately 3h
I hope this answered your question
//Tom

Senaste info och release om/av HomeAutomation hittas här http://karpero.mine.nu/ha
Latest info and release of HomeAutomation can be found here http://karpero.mine.nu/ha
pumo
Posts: 12
Joined: Fri Mar 17, 2023 9:45 am

Re: PHP interface for TellStick, HomeAutomation v2.0.2 relea

Post by pumo »

thanks this information is enough.
out there is freezing cold -20 and 2hours is long enough.
ltpitt
Posts: 18
Joined: Fri Mar 17, 2023 9:45 am

Re: PHP interface for TellStick, HomeAutomation v2.0.2 relea

Post by ltpitt »

Hello there my friends!

I am exchanging informations about how to setup and use the lovely software using email contact on website then I thought to use a more public channel so also other people can use information :)

I've downloaded and installed 2.0 and then installed patch 2.0.2

I have different problems and questions but I'll start with the (I hope) simpler one:

scheduling is not working.

If I launch manually (clicking on gears) a schedule it works flawlessly but if I wait for its time to kick in it never works.

What can I do?
tom_rosenback
Posts: 779
Joined: Fri Mar 17, 2023 9:45 am
Contact:

Re: PHP interface for TellStick, HomeAutomation v2.0.2 relea

Post by tom_rosenback »

ltpitt wrote:Hello there my friends!

I am exchanging informations about how to setup and use the lovely software using email contact on website then I thought to use a more public channel so also other people can use information :)

I've downloaded and installed 2.0 and then installed patch 2.0.2

I have different problems and questions but I'll start with the (I hope) simpler one:

scheduling is not working.

If I launch manually (clicking on gears) a schedule it works flawlessly but if I wait for its time to kick in it never works.

What can I do?
Hi!

To be able to help you I need to know which OS you are using.
//Tom

Senaste info och release om/av HomeAutomation hittas här http://karpero.mine.nu/ha
Latest info and release of HomeAutomation can be found here http://karpero.mine.nu/ha
ltpitt
Posts: 18
Joined: Fri Mar 17, 2023 9:45 am

Re: PHP interface for TellStick, HomeAutomation v2.0.2 relea

Post by ltpitt »

Ops! :P

I am using a rasperry pi - debian arm linux.
tom_rosenback
Posts: 779
Joined: Fri Mar 17, 2023 9:45 am
Contact:

Re: PHP interface for TellStick, HomeAutomation v2.0.2 relea

Post by tom_rosenback »

ltpitt wrote:Ops! :P

I am using a rasperry pi - debian arm linux.
Then you are probably missing AT scheduler, install it with the following command

Code: Select all

apt-get install at
after that ensure that the www-data user is not in at.deny file, also check cron.deny file while you are at it.

You can verify that the AT daemon is running with the following command

Code: Select all

ps -ef|grep atd
//Tom

Senaste info och release om/av HomeAutomation hittas här http://karpero.mine.nu/ha
Latest info and release of HomeAutomation can be found here http://karpero.mine.nu/ha
ltpitt
Posts: 18
Joined: Fri Mar 17, 2023 9:45 am

Re: PHP interface for TellStick, HomeAutomation v2.0.2 relea

Post by ltpitt »

I am the happiest!

At installation did greatly the job!

www-data was in the deny file as you correctly predicted :)

Just three problems left... (please be patient :)

1) How can I add my smartphone to HA so I can use it in scheduling?

I've tried to add a device in (add new raw device) but I get only:

lampa - bastu - dimmer - motorvarmare

2) I would like to use external temperature so I've added my lat and long to config file: how can I check if it's working? Can I use it in scheduling?

3) I have a dallas 1-wire internal temperature sensor correctly working. I've downloaded the latest weather parser and configured it. If I run manyally php parser.php I get no errors and renewing sensor in HA gave me the new sensor. Now I get graph and data but... I get 5.0 °C 20.2.2013 05:45 79.0 °C 19.2.2013 20:15

My home is not that hot! :D

Forgive me for all this questions that I hope will make the path clearer also to other users.

If you want I can write down a raspberry PI q&a based on all the info you gave me: I think more and more PI users will choose HA :)
tom_rosenback
Posts: 779
Joined: Fri Mar 17, 2023 9:45 am
Contact:

Re: PHP interface for TellStick, HomeAutomation v2.0.2 relea

Post by tom_rosenback »

ltpitt wrote:I am the happiest!

At installation did greatly the job!

www-data was in the deny file as you correctly predicted :)

Just three problems left... (please be patient :)

1) How can I add my smartphone to HA so I can use it in scheduling?

I've tried to add a device in (add new raw device) but I get only:

lampa - bastu - dimmer - motorvarmare

2) I would like to use external temperature so I've added my lat and long to config file: how can I check if it's working? Can I use it in scheduling?

3) I have a dallas 1-wire internal temperature sensor correctly working. I've downloaded the latest weather parser and configured it. If I run manyally php parser.php I get no errors and renewing sensor in HA gave me the new sensor. Now I get graph and data but... I get 5.0 °C 20.2.2013 05:45 79.0 °C 19.2.2013 20:15

My home is not that hot! :D

Forgive me for all this questions that I hope will make the path clearer also to other users.

If you want I can write down a raspberry PI q&a based on all the info you gave me: I think more and more PI users will choose HA :)
Great! I have tested HA on a RPi myself so I know it works :D

1. Just choose "lampa". If you want HA in english you have to set your browsers langauge to english. If you want you can translate the english resource file into the language you prefer too.

2. If you want to use external temperature you need to add a URL in External Temperature Url field. This URL should only return the temperature, without unit. Latitude and longitude are used to calculate sunrise/set times.

3. Is this high temperature repeating its entry? Or is it just some glitch value (1-wire sensors can have that but it should be 85 then)?
//Tom

Senaste info och release om/av HomeAutomation hittas här http://karpero.mine.nu/ha
Latest info and release of HomeAutomation can be found here http://karpero.mine.nu/ha
ltpitt
Posts: 18
Joined: Fri Mar 17, 2023 9:45 am

Re: PHP interface for TellStick, HomeAutomation v2.0.2 relea

Post by ltpitt »

Here I am!


1. If I choose "lampa" where should I specify telephone's IP? Or you mean that I should build myself a bash or python script that updates also HA? I have tried cp en.php it.php (I have Italian browser) but no english translation for me...
2. I'd like to use external temperature... I've tried the url that you prepare as default in your installation but it won't work (or at least I can't find external temperature anywhere)
3. Right now I try my php parser.php and I get:

Parsing 'owfs'
Found: 0000041c5c44, value: 6
Parsing 'owfs' completed

if I read temperature with my python the sensor works ok and says 22.6 celsius

My parser_config.php is:

$HomeAutomationRootPath = "/var/www/automation/";
$systems[] = "owfs";

and my owfs.php is:

$sensorsToParse["0000041c5c44"] = "/sys/devices/w1_bus_master1/28-0000041c5c44/w1_slave";
$filteringEnabled = true;

Thank you again for your kind help and patience :)
tom_rosenback
Posts: 779
Joined: Fri Mar 17, 2023 9:45 am
Contact:

Re: PHP interface for TellStick, HomeAutomation v2.0.2 relea

Post by tom_rosenback »

ltpitt wrote:Here I am!


1. If I choose "lampa" where should I specify telephone's IP? Or you mean that I should build myself a bash or python script that updates also HA? I have tried cp en.php it.php (I have Italian browser) but no english translation for me...
2. I'd like to use external temperature... I've tried the url that you prepare as default in your installation but it won't work (or at least I can't find external temperature anywhere)
3. Right now I try my php parser.php and I get:

Parsing 'owfs'
Found: 0000041c5c44, value: 6
Parsing 'owfs' completed

if I read temperature with my python the sensor works ok and says 22.6 celsius

My parser_config.php is:

$HomeAutomationRootPath = "/var/www/automation/";
$systems[] = "owfs";

and my owfs.php is:

$sensorsToParse["0000041c5c44"] = "/sys/devices/w1_bus_master1/28-0000041c5c44/w1_slave";
$filteringEnabled = true;

Thank you again for your kind help and patience :)
Is your HA in Swedish? It should default to English...

1. You need an external script that checks the connection status of your device and updates HA accordingly.
2. The default URL, http://www.temperatur.nu/termo/globen/temp.txt should work. If you browse that URL you should get the temperature from Stockholm. If you can see the temperature in your browser you need to add the external temperature sensor to you houseplan. If you don´t see it there is some other issue. Let me know if it works.
3. Could you post the output of /sys/devices/w1_bus_master1/28-0000041c5c44/w1_slave ?

Code: Select all

cat /sys/devices/w1_bus_master1/28-0000041c5c44/w1_slave
I suscpect that there is some mismatch between decimal sign, owfs reports one and PHP excpects another hence you only get the 6, the decimal value that is. But anyhow, post the content of /sys/devices/w1_bus_master1/28-0000041c5c44/w1_slave and we continue from there.
//Tom

Senaste info och release om/av HomeAutomation hittas här http://karpero.mine.nu/ha
Latest info and release of HomeAutomation can be found here http://karpero.mine.nu/ha
Post Reply