Wink Lutron Connected Bulb Remote Automations

Are you able to use changes in the Lutron Connected Bulb Remote attributes to trigger automations or are those state changes not reported reliably to HASS through the Wink component? I’ve been attempting to do so with no luck. Is there anyway to verify or log that I received a change on button press from these remotes? Thanks.

I am using this to turn on/off the lights in my office.

Are you saying you don’t see the changes reliably or at all?

At all, but I am absolutely horrible at writing automations and wouldn’t be surprised if I just failed there. Would you mind sharing your automation with me?

Sure thing just a second. Also, did you post this question on reddit? If not there is another question I’ll need to go help with.

Yeah, that’s me :slight_smile:

1 Like
  - alias: office lights on remote
    trigger:
      platform: template
      value_template: "{{ is_state_attr('binary_sensor.remote', 'button_on_pressed', True)}}"
    action:
      - service: homeassistant.turn_on
        entity_id: light.office_lamp
      - service: homeassistant.turn_on
        entity_id: switch.power_strip

  - alias: office lights off remote
    trigger:
      platform: template
      value_template: "{{ is_state_attr('binary_sensor.remote', 'button_off_pressed', True)}}"
    action:
      - service: homeassistant.turn_off
        entity_id: light.office_lamp
      - service: homeassistant.turn_off
        entity_id: switch.power_strip

This is for the top and bottom buttons. I am not using the middle two buttons, but you would do the same thing.

All of the attributes are as follows.

{
“button_off_pressed”: false,
“button_on_pressed”: false,
“button_down_pressed”: false,
“button_up_pressed”: false
}

1 Like

Oh yeah, my value_template was much different. Thanks. I’ll give that a shot when I get home tonight.

Also, thank you so much for all the work you have put into the Wink component. It has made its usage with HASS so much better.

1 Like

Not a problem, glad I am able to help out.

Hi, sorry for bringing to live this post, I’m using the code you gladly shared @w1ll1am23,it’s great!
I’m now trying to make the remotes work as dimmers, can this be accomplished? I looked at a code published here: I’m really new to coding in HA. Thanks in advance!

I am sure it could be done, but the automation(s) would be a nightmare. I think you would need to check the current dim level and if it’s X set it to Y for every single state. So if you wanted one for 0-100% brightness which I believe in ha is 0-255 you would need an automation for every step or 255, and then the same for going the other direction.

Now I could be very wrong here, and chances are I am but I don’t do my automations in HA anymore. I think there is probably a way you could just subcract a specific amount each time he button is pressed and ignore the current state.

Thanks so much for you response, I think I will leave that behind, now my problem lies with pairing the remotes to wink, I had a couple remotes succesfully working with this code, but the rest of them are not, Im trying to just pair my remotes without assigning any lights to them, but after pairing to wink they are not even recognizing a button has been pressed. Any advice on how to pair them this way?

I don’t have any advice really. When I had he one I have paired to Wink it was flaky and would stop working some times. I would re-pair it and it would work for awhile again

I use it with node-red and zha, not using direct binding. I listen for zha events for it and then use a template to evaluate the current brightness and step it up or down. Here is my flow if you’d like to see.

[
    {
        "id": "99454021.302d7",
        "type": "api-call-service",
        "z": "cf4e273e.d72598",
        "name": "Family Room Lamps ON",
        "server": "b3217b27.630be8",
        "service_domain": "light",
        "service": "turn_on",
        "data": "{\"entity_id\":\"light.family_room_lamps\",\"brightness\":\"254\"}",
        "mergecontext": "",
        "output_location": "",
        "output_location_type": "none",
        "mustacheAltTags": false,
        "x": 1890,
        "y": 200,
        "wires": [
            []
        ]
    },
    {
        "id": "dc571f40.edfcc",
        "type": "api-call-service",
        "z": "cf4e273e.d72598",
        "name": "Family Room Lamps OFF",
        "server": "b3217b27.630be8",
        "service_domain": "light",
        "service": "turn_off",
        "data": "{\"entity_id\":\"light.family_room_lamps\"}",
        "mergecontext": "",
        "output_location": "",
        "output_location_type": "none",
        "mustacheAltTags": false,
        "x": 1890,
        "y": 260,
        "wires": [
            []
        ]
    },
    {
        "id": "cdf57912.001418",
        "type": "api-call-service",
        "z": "cf4e273e.d72598",
        "name": "Familty Room Lamps UP",
        "server": "b3217b27.630be8",
        "service_domain": "light",
        "service": "turn_on",
        "data": "{\"entity_id\":\"light.family_room_lamps\",\"brightness\":\"{{payload}}\"}",
        "mergecontext": "",
        "output_location": "",
        "output_location_type": "none",
        "mustacheAltTags": false,
        "x": 1890,
        "y": 320,
        "wires": [
            []
        ]
    },
    {
        "id": "2d15807a.42c81",
        "type": "api-call-service",
        "z": "cf4e273e.d72598",
        "name": "Family Room Lamps DOWN",
        "server": "b3217b27.630be8",
        "service_domain": "light",
        "service": "turn_on",
        "data": "{\"entity_id\":\"light.family_room_lamps\",\"brightness\":\"{{payload}}\"}",
        "mergecontext": "",
        "output_location": "",
        "output_location_type": "none",
        "mustacheAltTags": false,
        "x": 1900,
        "y": 380,
        "wires": [
            []
        ]
    },
    {
        "id": "9c63de58.7bed9",
        "type": "stoptimer",
        "z": "cf4e273e.d72598",
        "duration": "750",
        "units": "Millisecond",
        "payloadtype": "num",
        "payloadval": "0",
        "name": "750 ms timer",
        "x": 1850,
        "y": 440,
        "wires": [
            [
                "af2541aa.0fabc"
            ],
            []
        ]
    },
    {
        "id": "3058d83.a95a528",
        "type": "switch",
        "z": "cf4e273e.d72598",
        "name": "Top or Bottom",
        "property": "payload.event.args",
        "propertyType": "msg",
        "rules": [
            {
                "t": "cont",
                "v": "254",
                "vt": "str"
            },
            {
                "t": "cont",
                "v": "0",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 2,
        "x": 1600,
        "y": 160,
        "wires": [
            [
                "99454021.302d7"
            ],
            [
                "dc571f40.edfcc"
            ]
        ]
    },
    {
        "id": "7341368c.ba3618",
        "type": "api-render-template",
        "z": "cf4e273e.d72598",
        "name": "Brighten",
        "server": "b3217b27.630be8",
        "template": "{{ [255, state_attr('light.family_room_lamps', 'brightness')|int(0) + 26]|min }}",
        "resultsLocation": "payload",
        "resultsLocationType": "msg",
        "templateLocation": "template",
        "templateLocationType": "msg",
        "x": 1600,
        "y": 220,
        "wires": [
            [
                "cdf57912.001418",
                "9c63de58.7bed9"
            ]
        ]
    },
    {
        "id": "d00c6f76.4eeab",
        "type": "api-render-template",
        "z": "cf4e273e.d72598",
        "name": "Dim",
        "server": "b3217b27.630be8",
        "template": "{{ [10, state_attr('light.family_room_lamps', 'brightness')|int(0) - 26]|max }}",
        "resultsLocation": "payload",
        "resultsLocationType": "msg",
        "templateLocation": "template",
        "templateLocationType": "msg",
        "x": 1590,
        "y": 280,
        "wires": [
            [
                "2d15807a.42c81",
                "9c63de58.7bed9"
            ]
        ]
    },
    {
        "id": "34b024f6.3064bc",
        "type": "switch",
        "z": "cf4e273e.d72598",
        "name": "Click Type",
        "property": "payload.event.command",
        "propertyType": "msg",
        "rules": [
            {
                "t": "eq",
                "v": "move_to_level_with_on_off",
                "vt": "str"
            },
            {
                "t": "eq",
                "v": "step_with_on_off",
                "vt": "str"
            },
            {
                "t": "eq",
                "v": "step",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 3,
        "x": 1390,
        "y": 180,
        "wires": [
            [
                "3058d83.a95a528"
            ],
            [
                "7341368c.ba3618"
            ],
            [
                "d00c6f76.4eeab"
            ]
        ]
    },
    {
        "id": "af2541aa.0fabc",
        "type": "switch",
        "z": "cf4e273e.d72598",
        "name": "Family Room Lamp Remote",
        "property": "payload.event.device_ieee",
        "propertyType": "msg",
        "rules": [
            {
                "t": "eq",
                "v": "ff:ff:00:0f:e7:ff:50:4b",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 1180,
        "y": 180,
        "wires": [
            [
                "34b024f6.3064bc"
            ]
        ]
    },
    {
        "id": "93421f25.d2b8b",
        "type": "server-events",
        "z": "cf4e273e.d72598",
        "name": "ZHA Event Listener",
        "server": "b3217b27.630be8",
        "event_type": "zha_event",
        "x": 1150,
        "y": 80,
        "wires": [
            [
                "af2541aa.0fabc",
                "41dda1f2.a8849",
                "e5564929.4421f8"
            ]
        ]
    },
    {
        "id": "b3217b27.630be8",
        "type": "server",
        "z": "",
        "name": "Home Assistant",
        "legacy": false,
        "hassio": false,
        "rejectUnauthorizedCerts": true,
        "ha_boolean": "y|yes|true|on|home|open",
        "connectionDelay": true
    }
]