Page 1 of 1

Blockly temperature comparison not working?

Posted: Wednesday 02 September 2015 14:13
by edge
Hi,

I have one virtual sensor for the temperature (via WUnderground - link). The sensor is giving as output "14.9" only.

Just created an event for testing purposes, but (shame!) such an basic event isn't working... What am I doing wrong?:
Image

Re: [Newb] Notification on temperature

Posted: Wednesday 02 September 2015 14:24
by ThinkPad
Blockly seems to be correct, i have seen this earlier but nobody seems to have an answer about this...
I know user 'Domosapiens' is using these kind of comparisons and has it working, but as far as i know, your Blockly should just work...

Re: Blockly temperature comparison not working?

Posted: Wednesday 02 September 2015 21:20
by Domosapiens
.... these type of remarks:
but (shame!) such an basic event isn't working
in your 1st post! ....
You can say sorry, by using the Donate button here: https://domoticz.com/


Did some test:
Temp_Ouside is a scraped value from WUnderground
Temp_trigger_Capture1.JPG
Temp_trigger_Capture1.JPG (20.71 KiB) Viewed 5459 times
Seems not to work, it does not fire the Blockly, even when temperature is changed.

Temp_trigger_Capture2.JPG
Temp_trigger_Capture2.JPG (27.93 KiB) Viewed 5459 times
Temp_trigger_Capture3.JPG
Temp_trigger_Capture3.JPG (15.23 KiB) Viewed 5459 times
This one works, the trigger comes from the switch D_Check_Event_Syst that fires the Blockly

My ZWave DS18B20 temp sensors connected via FGBS001 do generate a trigger every time they report and as such fire the Blockly where they are used.

Don't know how to get a trigger after you scraped the temp part of WUnderground.
Hope someone else can help with that.
Domosapiens

Re: Blockly temperature comparison not working?

Posted: Thursday 03 September 2015 7:32
by edge
Domosapiens wrote:.... these type of remarks:
but (shame!) such an basic event isn't working
in your 1st post! ....
You can say sorry, by using the Donate button here: https://domoticz.com/
Well, the 'shame' reflects on myself, not Domoticz.

Thanks for testing Domosapiens..

Re: Blockly temperature comparison not working?

Posted: Thursday 03 September 2015 22:42
by scatman
Hellow

i have the sameproblem.

This is my simply event:
Przechwytywanie.PNG
Przechwytywanie.PNG (7.06 KiB) Viewed 5399 times
and this is log for event:

Code: Select all

2015-09-03 22:41:47.387 Error: EventSystem: Lua script error (Blockly), Name: Test_3_1 => [string "result = 0; weekday = os.date('*t')['wday']; ..."]:1: attempt to index global 'temperaturedevice' (a nil value)
What is wrong?

I've RFXcom on RPI2 and sensor temp is Oregno (THC238/268, THN132, THWR288, THRN122, THN122, AW129/131)!

Re: Blockly temperature comparison not working?

Posted: Saturday 05 September 2015 23:01
by scatman
scatman wrote:Hellow

i have the sameproblem.

This is my simply event:
Przechwytywanie.PNG
and this is log for event:

Code: Select all

2015-09-03 22:41:47.387 Error: EventSystem: Lua script error (Blockly), Name: Test_3_1 => [string "result = 0; weekday = os.date('*t')['wday']; ..."]:1: attempt to index global 'temperaturedevice' (a nil value)
What is wrong?

I've RFXcom on RPI2 and sensor temp is Oregno (THC238/268, THN132, THWR288, THRN122, THN122, AW129/131)!
Hi
I found the solution for this problem ...
You have to updateing your LUA ...

Code: Select all

sudo apt-get install lua5.2
...

Re: Blockly temperature comparison not working?

Posted: Sunday 06 September 2015 10:58
by bizziebis
That would be odd. An external dependency causing Domoticz base system to malfunction.. I thought LUA was compiled from source with Domoticz? If that's not the case maybe we should include it to avoid these kind of strange problems.

Re: Blockly temperature comparison not working?

Posted: Sunday 06 September 2015 19:41
by scatman
bizziebis wrote:That would be odd. An external dependency causing Domoticz base system to malfunction.. I thought LUA was compiled from source with Domoticz? If that's not the case maybe we should include it to avoid these kind of strange problems.
maybe, but I didn't change nothing in my event
I only update LUA and I've restarted my event and it was correct.

In the evening I've watched and moved my sensor temp but it's all.

Re: Blockly temperature comparison not working?

Posted: Thursday 10 September 2015 8:08
by edge
Hmm interesting.. Going to try that asap.

Re: Blockly temperature comparison not working?

Posted: Monday 28 September 2015 19:04
by MEk72
Any success in this?

I tried updating but without any success.


//Mattias

Re: Blockly temperature comparison not working?

Posted: Monday 28 September 2015 19:10
by Minglarn
Anyone tried to the update for LUA? and did the temperature comparison work after the update?

Re: Blockly temperature comparison not working?

Posted: Monday 23 November 2015 11:31
by talfr
Hi,

I have same error with some events blocky for many months.
I update lua script package, all errors disappear.

thank a lot.

Re: Blockly temperature comparison not working?

Posted: Tuesday 05 January 2016 22:34
by Mooseknuckle
Hi,

It works without updating Lua. I didn't use the scraped temp only sensor but the standard (temp+hum+baro)sensor which is created when you add Wunderground as hardware. Notifications based on temp values work for me when I use that sensor.

Greetings.