Page 1 of 1

FIBARO FGRM223 open command moves back to last position

Posted: Thursday 23 July 2020 14:04
by K0enH
Hi All,

I recently installed a FIBARO System FGRM223 Roller Shutter Controller 3+.
this has been configured as blinds percentage inverted within domoticz.
the issue I have, If it is closed and want to completely open and press the open button, it moves back to the last position.
so if I before had it open for 50% and have it closed after, and I want to completely open. then the button moves it back to the 50% setting.
so only the slider helps me out, so long as I dont move it to the "Open" state in the slider.
when I after repress the open button I see these error messages in the log:
2020-07-23 13:56:23.376 Status: OpenZWave: Application Status: Command Rejected

I even tried with a dummy button which triggers a dzevent script, but even that has the same issue.

is this a known issue? or is there anything which I can do with the module settings to prevent this behaviour?

grtz.
K0enH

Re: FIBARO FGRM223 open command moves back to last position

Posted: Wednesday 29 July 2020 11:12
by Michalux
This is due to a fact, that domoticz incorrectly implements level value for Open possiotion for ZWave devices.
It sends value 100 instead of 99. According to ZWave documentation value for Open is 99 not 100. 100 stands for "return to a previous position".
I have a fix for this (requires slight code change and recompilation of domoticz) - if You want to play around with building domoticz Yourself, I can provide the code :)

Re: FIBARO FGRM223 open command moves back to last position

Posted: Wednesday 29 July 2020 11:22
by K0enH
hi Michalux,

thanks for your reply, I think I can also work around as I have a dummy switch in front of it, which triggers a dzevent.
so when this dummy switch is used for Open, I should just send level 99 to the actual switch and then my issue is solved I gues ;)
will validate later and come back with the results :)

Re: FIBARO FGRM223 open command moves back to last position

Posted: Wednesday 29 July 2020 11:37
by K0enH
Michalux, you made my day.
this is my script which runs smoothly:

Code: Select all

return {
	on = {
		devices = {
			'Rolluik'
		}
	},
	execute = function(domoticz, device)
		domoticz.log('Device ' .. device.name .. ' was changed', domoticz.LOG_INFO)
		domoticz.log(device.state )
		domoticz.log(device.rawData[1])
		Rolluik = domoticz.devices('Rolluik-Hardware')
		
		if(device.state == 'Open' ) then
		 Rolluik.setLevel(99)
		
        elseif( device.state =='Closed') then
            Rolluik.switchOff()
	    
	    
    else
        newpercentage = 100 - device.rawData[1]
        domoticz.log(newpercentage)
        Rolluik.setLevel(newpercentage)
        
    end
    
	    
 
	
	end
}
thanks for pointing out!

Re: FIBARO FGRM223 open command moves back to last position

Posted: Wednesday 29 July 2020 12:07
by K0enH
last thing I'm now struggling with is the stop command.
can this be achieved with Rolluik.setValue(2) if I correctly understand value 2 is the stop command, right??

Re: FIBARO FGRM223 open command moves back to last position

Posted: Monday 03 August 2020 7:49
by Michalux
I haven't used "stop" command so far, so I can't help You with that, sorry.
But why would You need a stop command ? You can set the required level and the shutter will stop itself when needed :)

Re: FIBARO FGRM223 open command moves back to last position

Posted: Monday 03 August 2020 9:53
by K0enH
thats correct, but if you dont know the exact percentage then you might just want to move up/down and then "stop" when it is appropriate...

Re: FIBARO FGRM223 open command moves back to last position

Posted: Monday 31 August 2020 8:11
by Michalux
Just FYI, as of version 12282 this problem should be fixed permanently :)

Re: FIBARO FGRM223 open command moves back to last position

Posted: Monday 31 August 2020 9:28
by K0enH
Michalux wrote: Monday 31 August 2020 8:11 Just FYI, as of version 12282 this problem should be fixed permanently :)
ok cool, any timeline when this will be released in stable?

Re: FIBARO FGRM223 open command moves back to last position

Posted: Wednesday 02 September 2020 10:24
by Michalux
No idea, but beta looks fairly stable to me right now :)

Re: FIBARO FGRM223 open command moves back to last position

Posted: Friday 03 February 2023 20:45
by lamama1234
Hi guys,

Sorry for digging this up.

I just switched today from Fibaro's FGRM222 to FGRM223 - and now encountering all of the above:

1. Cannot use "Open" or "Close" commands (does nothing)
2. Percentage state not updated if roller moved using SW slider. Using the physical switches does update percentage state

I'm using a relatively old Domoticz version (2020.1) due to some limitations in my smart-home architecture so wondered if new Domoticz versions fixed those issues. If not, is any patch I can use?

Thanks