Page 1 of 1

blocky not running on temprature change

Posted: Tuesday 01 August 2017 1:40
by markjgabb
hi guys please see blocky below

the scenario is,
i dont think blocky events are ebing triggered on temprature change, i think it is using it as part of block but not as a trigger to run the event...

overnight when we are asleep if the temp falls below 18 heater should turn on,,,but it doesnt.....but if i change the heater selector from timer, to off and back to timer again it does work....
ill attach the blocky below to see if someone else can see if i have missed something

last 2 nights in a row temp has gotten to 14 so heater should definatly have kicked in overnight, and definatly heater selector is right, as when i turn it to timer it kicks in.....i manually ran temps up and down with a blow dryer and cold air....if i run the temp up to 30 it doesnt turn off, but if i switch select to on then back to timer it turns off
heater.PNG
heater.PNG (68.84 KiB) Viewed 1851 times

Re: blocky not running on temprature change

Posted: Wednesday 02 August 2017 8:27
by mivo
Hi,

i am not using Blocky, because it is was unclear for me (yes, have some programmer skills ;) ) and hard to debug... Using LUA or Python with Domoticz.

But in general - try to simplify your conditions first, because combination of NOT EQUAL, AND, OR etc. can be hard to debug. Try to put some logging in code / logic, so you can see which conditions and when are evaluated. When you are sure your "state machine" detect all required conditions correctly, put actions next to logging

Re: blocky not running on temprature change

Posted: Wednesday 02 August 2017 8:38
by gizmocuz
Could you also state your domoticz version (please read the red text before posting!)
What type of hardware is the temp sensor ? Is it a virtual one ? If virtual, created with the dummy create button ?

Indeed, try a simple test first, if temp>xx then write a log message

Re: blocky not running on temprature change

Posted: Thursday 03 August 2017 6:28
by markjgabb
my appologies
domoticz version: 3.8153
platform RPI 3
Lounge temp is a dummy sensor created on the hardware menu(type temprature) with the create virtual sensors button, it is updated via a lua script from a mysensors temp+hum sensor that is updated every 5 minutes....
i have done as suggested an created a simple blocky that was if lounge temp is higher than 23 write 23 to log

ive had it running all day and temp is currently 25 in lounge room, but on every update there is no sign of the 23 being written to log....
is this due to it being a dummy temp sensor? does it not detect change the same way?
thank you for for correcting my way of posting this...i usually do it better but completely missed it this time....