Blockly temperature comparison not working?

Moderator: leecollings

Post Reply
edge
Posts: 10
Joined: Wednesday 02 September 2015 14:04
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Blockly temperature comparison not working?

Post 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
Last edited by ThinkPad on Wednesday 02 September 2015 14:25, edited 1 time in total.
Reason: Changed title to make more clear what topic is about ;)
ThinkPad
Posts: 890
Joined: Tuesday 30 September 2014 8:49
Target OS: Linux
Domoticz version: beta
Location: The Netherlands
Contact:

Re: [Newb] Notification on temperature

Post 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...
I am not active on this forum anymore.
User avatar
Domosapiens
Posts: 232
Joined: Wednesday 20 August 2014 12:08
Target OS: Windows
Domoticz version: V3.5981
Location: NL
Contact:

Re: Blockly temperature comparison not working?

Post 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 5361 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 5361 times
Temp_trigger_Capture3.JPG
Temp_trigger_Capture3.JPG (15.23 KiB) Viewed 5361 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
Win Vista&7; 1#Aeon Z-Stick S2; 1#Aeotec Z-Sick Gen5, 6#Fib.FGBS001; 24#DS18B20; 8#Everspr.AN158-2; 3#Philio PAN04; 1#Philio PAN06, 1#YouLess El; 1#Fib.FGWPE; 1#ZME_RC2; 2#FAK_ZWS230, 2#Quib.ZMNHCDx, 1#Quib.ZMNHDD1, 7#EM6555
edge
Posts: 10
Joined: Wednesday 02 September 2015 14:04
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Re: Blockly temperature comparison not working?

Post 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..
scatman
Posts: 17
Joined: Wednesday 26 August 2015 23:16
Target OS: Raspberry Pi / ODroid
Domoticz version: 2.2563
Location: Poland
Contact:

Re: Blockly temperature comparison not working?

Post by scatman »

Hellow

i have the sameproblem.

This is my simply event:
Przechwytywanie.PNG
Przechwytywanie.PNG (7.06 KiB) Viewed 5301 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)!
scatman
Posts: 17
Joined: Wednesday 26 August 2015 23:16
Target OS: Raspberry Pi / ODroid
Domoticz version: 2.2563
Location: Poland
Contact:

Re: Blockly temperature comparison not working?

Post 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
...
User avatar
bizziebis
Posts: 182
Joined: Saturday 19 October 2013 14:00
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8805
Location: The Netherlands
Contact:

Re: Blockly temperature comparison not working?

Post 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.
scatman
Posts: 17
Joined: Wednesday 26 August 2015 23:16
Target OS: Raspberry Pi / ODroid
Domoticz version: 2.2563
Location: Poland
Contact:

Re: Blockly temperature comparison not working?

Post 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.
edge
Posts: 10
Joined: Wednesday 02 September 2015 14:04
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Re: Blockly temperature comparison not working?

Post by edge »

Hmm interesting.. Going to try that asap.
MEk72
Posts: 2
Joined: Monday 21 September 2015 18:25
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Blockly temperature comparison not working?

Post by MEk72 »

Any success in this?

I tried updating but without any success.


//Mattias
Last edited by MEk72 on Monday 28 September 2015 21:21, edited 1 time in total.
User avatar
Minglarn
Posts: 214
Joined: Friday 21 August 2015 19:27
Target OS: Raspberry Pi / ODroid
Domoticz version: v3.8153
Location: Stockholm / Sweden
Contact:

Re: Blockly temperature comparison not working?

Post by Minglarn »

Anyone tried to the update for LUA? and did the temperature comparison work after the update?
When you eliminate the impossible, whatever remains, however improbable, must be the truth.” -Spock in Star Trek VI
talfr
Posts: 1
Joined: Saturday 13 July 2013 11:58
Target OS: -
Domoticz version:
Location: France
Contact:

Re: Blockly temperature comparison not working?

Post 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.
User avatar
Mooseknuckle
Posts: 43
Joined: Sunday 08 March 2015 9:24
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Blockly temperature comparison not working?

Post 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.
RPI 3, Philips Hue,Toon Thermostat, Harmony Smart Control, Yeelights
Mysensors wifi gateway + sensors, RFXtrx433E, Kaku stuff, Xiaomi gateway + sensors
Domoticz controlled DIY ambilight, Selectplus chime, Mi-light led controller
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest