FIBARO FGRM223 open command moves back to last position

For Z-Wave related questions in Domoticz

Moderator: leecollings

Post Reply
K0enH
Posts: 32
Joined: Monday 20 March 2017 14:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

FIBARO FGRM223 open command moves back to last position

Post 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
Michalux
Posts: 27
Joined: Sunday 22 March 2020 17:46
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: FIBARO FGRM223 open command moves back to last position

Post 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 :)
K0enH
Posts: 32
Joined: Monday 20 March 2017 14:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: FIBARO FGRM223 open command moves back to last position

Post 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 :)
K0enH
Posts: 32
Joined: Monday 20 March 2017 14:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: FIBARO FGRM223 open command moves back to last position

Post 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!
K0enH
Posts: 32
Joined: Monday 20 March 2017 14:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: FIBARO FGRM223 open command moves back to last position

Post 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??
Michalux
Posts: 27
Joined: Sunday 22 March 2020 17:46
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: FIBARO FGRM223 open command moves back to last position

Post 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 :)
K0enH
Posts: 32
Joined: Monday 20 March 2017 14:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: FIBARO FGRM223 open command moves back to last position

Post 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...
Michalux
Posts: 27
Joined: Sunday 22 March 2020 17:46
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: FIBARO FGRM223 open command moves back to last position

Post by Michalux »

Just FYI, as of version 12282 this problem should be fixed permanently :)
K0enH
Posts: 32
Joined: Monday 20 March 2017 14:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: FIBARO FGRM223 open command moves back to last position

Post 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?
Michalux
Posts: 27
Joined: Sunday 22 March 2020 17:46
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: FIBARO FGRM223 open command moves back to last position

Post by Michalux »

No idea, but beta looks fairly stable to me right now :)
lamama1234
Posts: 14
Joined: Tuesday 17 October 2017 9:02
Target OS: Windows
Domoticz version:
Contact:

Re: FIBARO FGRM223 open command moves back to last position

Post 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
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest