Aeon ZW062 garage door controller

Hi All,

I have an Aeon ZW062 Garage Door controller that I have mostly working, in that I can activate the switch and the door opens and closes, and I can see the door status in paperui.

However, I’m wanting to be able to send a specific ‘Open’ or ‘Close’ command, which doesn’t seem possible?

I can send an ‘ON’ command to the Switch - but if the door is already open, this will close the door.

If the door is already open, and I send an ‘Open’ command, I’d like the door to stay open - Openhab knows the status of the door.

Any tips on how to achieve this? I’m thinking I need some kind of rule that says if an Open command is received, to check the status of the door before ignoring the command or activating the switch, that can be made accessible via the rest API?

Cheers,

Paul

Can you post your item definition, and other relevant items, please?

Hi Vincent,

I’m currently using the item definitions from PaperUI.

I was previously using:

/*Garage */
Switch Garage_door "Garage Door"  {channel="zwave:device:5e25a738:node7:switch_binary"}
Number Garage_status "Status Garage Door [%s]" {channel="zwave:device:5e25a738:node7:barrier_state"}

& in sitemap:

        Frame label="Garage" {
                Switch item=Garage_door icon="garage" mappings=[ON="Closed", OFF="Open"]
                Text item=Garage_status icon="garage"
        }

I’ve also played around with maps and definitions from OpenHab2 and Linear NGD00Z-4 Garage Door Controller to no avail.

Thanks,

Paul

And from paper UI, the Garage_door item is a switch? not a contact?
Remove the mappings from your sitemap, we’ll play with these later.

Can you show the log when you open and close the door (In real)
And when you do it on the sitemap

Thanks

Hi Vincent!

Correct, it’s a Switch.

I assume you want a zwave log? If not I’ll have to recapture it. Dropbox - ZW062.log - Simplify your life

This has an open/close using the button on the wall; followed by an open/close using openhab

Cheers,

Paul

No, I just need to see the OH events.log when you use the button on the wall and when you use the sitemap both when opening and closing.

Sorry, here’s a snip of events.log:

2018-04-08 19:07:36.394 [vent.ItemStateChangedEvent] - Garage_Door changed from OFF to ON
2018-04-08 19:07:36.540 [vent.ItemStateChangedEvent] - Garage_status changed from NULL to 254
2018-04-08 19:07:58.958 [vent.ItemStateChangedEvent] - Garage_status changed from 254 to 255
2018-04-08 19:08:17.061 [vent.ItemStateChangedEvent] - Garage_Door changed from ON to OFF
2018-04-08 19:08:17.218 [vent.ItemStateChangedEvent] - Garage_status changed from 255 to 0
2018-04-08 19:08:26.842 [ome.event.ItemCommandEvent] - Item 'Garage_Door' received command ON
2018-04-08 19:08:26.854 [vent.ItemStateChangedEvent] - Garage_Door changed from OFF to ON
2018-04-08 19:08:27.162 [vent.ItemStateChangedEvent] - Garage_Door changed from ON to OFF
2018-04-08 19:08:27.673 [vent.ItemStateChangedEvent] - Garage_Door changed from OFF to ON
2018-04-08 19:08:27.815 [vent.ItemStateChangedEvent] - Garage_status changed from 0 to 254
2018-04-08 19:08:49.891 [vent.ItemStateChangedEvent] - Garage_status changed from 254 to 255
2018-04-08 19:09:00.672 [ome.event.ItemCommandEvent] - Item 'Garage_Door' received command OFF
2018-04-08 19:09:00.682 [vent.ItemStateChangedEvent] - Garage_Door changed from ON to OFF
2018-04-08 19:09:00.912 [vent.ItemStateChangedEvent] - Garage_Door changed from OFF to ON
2018-04-08 19:09:01.693 [vent.ItemStateChangedEvent] - Garage_status changed from 255 to 252

Hope this helps :slight_smile:

Cheers,

Paul

Is that when you pressed the button on the wall or from the sitemap?

Both. 1st 3 lines are button press on the wall remote and the door status changing to door open; next 2 lines are the button press to close the door.

2018-04-08 19:08:26.842 is the sitemap button press top open the door; followed by 2018-04-08 19:09:00.672 which is the sitemap button press to close the door.

New Item:

Switch proxyGarageDoor
rule "Garage Door"
when
    proxyGarageDoor received command
then
    if (receivedCommand.toString != Garage_door.state.toString) {
        Garage_door.sendCommand(receivedCommand.toString)
    }
end

rule "Garage door state"
when
    Garage_door received update
then
    proxyGarageDoor.postUpdate(Garage_door.state.toString)
end

Sitemap:

        Frame label="Garage" {
                Switch item=proxyGarageDoor icon="garage" mappings=[ON="Closed", OFF="Open"]
                Text item=Garage_status icon="garage"
        }

Cool! Will test tomorrow!!

OK, I got distracted… the rules posted above didn’t quite work, I got errors like:

2018-04-08 19:29:02.476 [WARN ] [el.core.internal.ModelRepositoryImpl] - Configuration model 'ProxyGarage.rules' has errors, therefore ignoring it: [3,5]: no viable alternative at input 'proxyGarageDoor'
[12,5]: no viable alternative at input 'Garage_door'

To get around this, I needed to use the following for rules:

rule "Garage Door"
when
    Item proxyGarageDoor received command
then
    if (receivedCommand.toString != Garage_Door.state.toString) {
        Garage_Door.sendCommand(receivedCommand.toString)
    }
end

rule "Garage door state"
when
    Item Garage_Door received update
then
    proxyGarageDoor.postUpdate(Garage_Door.state.toString)
end

I still need to do some debugging - my sitemap presents with a ‘Closed’ and ‘Open’ button - clicking ‘Closed’ with the door closed resulted in the door opening, so something isn’t quite right - a job for the weekend methinks to do some more debugging.

Cheers,

Paul

I think you have your mapping the wrong way round. Change ON=“Open” & OFF=“Closed”

Switch item=proxyGarageDoor icon="garage" mappings=[ON="Closed", OFF="Open"]

Yep! Looks good now and works as designed :slight_smile: Thanks for all the help!

I have the same garage controller, but I can not get it to work at all.

I also tried the code in this thread, but that just crashed my system.

How is the button supposed to work? I turn it on and nothing happens, I turn it off and nothing happens.