Update RC4 is now a stable release version, please upgrade if running an older one. Previous stable version 2016.09 is no longer supported.
Changes from RC3:
1. Fixed incorrect custom icon display when status object has different data type than the main object
2. Pincode is now ignored if object mode is set to start/stop or stop/start. Since pincode window steals focus from the button there's no way to make it work with pincode enabled
3. Remote services: object list was not working if a time/day object was exported
4. Fix alert messages with % character resulting in an error
5. Improve error handling and reporting for mbus library, fixed issues with mbus.getdata() calls
6. DALI: fix removal of internal gateways during gateway scan
I have a little thing about grp.check... functions and writing to unsigned 1 byte objects. At this moment function doesn't filter any write without third argument(delta) when values are equal(unsigned byte). I mean somehing like this:
Code:
grp.checkupdate("Test_value", 1, 0.5)
I think such constructions especially for unsigned 1 byte which is integer are not apropriate
01.07.2017, 21:56 (This post was last modified: 01.07.2017, 21:56 by rocfusion.)
Hi,
Admin are there any examples for these new functions cause they don't seem to work.
My interpretation from these check functions would be to read\write\respond\update to the bus\object if the current object value is different to the requested value. This is to prevent repeat values being sent on the bus. Which is equivalent to something like.
local vln = tonumber(somevalue)
if(grp.getvalue('11/2/14')~=vln)then
grp.response('11/2/14',vln,dt.scale)
end
Would it be possible to add a new parameter to the checkwrite\response\update, so that the function compares the requested value against another object (group address)
For example, I have a light that I want to set to 50%
grp.checkwrite('1/2/1', 50, '1/4/1')
which effectively does,
if(grp.getvalue('1/4/1')~=50)then
grp.write('1/2/1',50,dt.scale)
end
when this object is not specified then the comparison is made against the original object.
Not sure about that, though there will be a new function grp.checkvalue(alias, value [, delta]) which tells whether the value should be sent or not. It can be used for your task (you can create your own wrapper function and put it into common functions):
Code:
value = 50
if grp.checkvalue('1/4/1', value) then
grp.write('1/2/1', value)
end
it seems sunset/sunrise calculation isn't working when script is generated from FB Editor
"out" is always nil
Also would it be possible to add a "Run every X days" on schedulers or on scheduled scripts?
Code:
require('custom.fbeditor20.Time')
Latitude = 38.14
Longitude = 27.47
Time_offset = 2
out = fbe_sunrise(Latitude, Longitude, Time_offset, 'fb__test1__fbe_sunrise__id')
log(out)
if out ~= nil then
grp.write('32/1/2', out)
end
(04.07.2017, 10:04)admin Wrote: Not sure about that, though there will be a new function grp.checkvalue(alias, value [, delta]) which tells whether the value should be sent or not. It can be used for your task (you can create your own wrapper function and put it into common functions):
Code:
value = 50
if grp.checkvalue('1/4/1', value) then
grp.write('1/2/1', value)
end
I am not asking to add a new function just modify the exist ( grp.checkwrite, grp.checkresponse, grp.checkupdate ). I think in terms of performance a wrapper will be slower. Plus I wouldn't need to use grp.checkwrite since a double comparison is made.
@rocfusion, there's virtually zero performance difference between built-in and a wrapper function. I don't want to change how check* functions work as your case is not so common.
Installed this on LM Reactor V3. KNX to DALI communication failed, tried to install it again, same. + missing the System configuration Network KNX connection window. ++++
tried to install the LogicMachine firmware 2016.09, but now i cannot get in to it. tried the password i have set, but no luck, tried default password, but no luck.
do i have to take a full reset of it?
08.07.2017, 12:45 (This post was last modified: 08.07.2017, 12:52 by buuuudzik.)
I have a problem with upgrade on one LM4 which has now firmware 20160927. When remains time for upgrade go to 169s then LM back to System configuration. I've upgraded before another LM4 and there was no such a problem but it has newer firmware so maybe this is because of it. I want prepare this upgrade especially for Mosaic and its new modules. Maybe somebody had similar problem. I've also prepared a screen from System log after the upgrade try. I see only some problem with filesystem on /dev/mmcblk0p3 but I don't know if this is real problem with SD or only some small problem indication.
11.07.2017, 12:21 (This post was last modified: 11.07.2017, 12:31 by Thomas.)
Hi
I have got this error after update to RC4 in my error log:
User script:2: module 'custom.fbeditor20.Gate' not found:
no field package.preload['custom.fbeditor20.Gate']
no file './custom/fbeditor20/Gate'
no file 'Library custom/fbeditor20/Gate'
no file 'Library custom/fbeditor20/Gate'
no file 'Library custom/fbeditor20/Gate.so'
no file 'Library custom.so'
stack traceback:
[C]: in function 'require'
User script:2: in main chunk
Ignore it. The error disappeared after second reboot.
LM5Lp, firmware: 2018.08.22 and 2021.12.15, FlashSYS v2, ARMv7 Processor rev 5 (v7l), kernel 4.4.151 and 4.4.259