Skip to content

[FR] Add preconfigured support for smartthings.button event #45

@TRusselo

Description

@TRusselo

So Smartthings buttons have the same issue as Hue Dimmers

its just an event

3 states available : pushed , double , held

Pushed example:
{ "event_type": "smartthings.button", "data": { "component_id": "main", "device_id": "7b9d8adc-6f46-4d49-8022-0ce848a1881b", "location_id": "7de9ad93-a807-4208-aff4-9d9f2506524f", "value": "pushed", "name": "Master Bedroom Button", "data": {} }, "origin": "LOCAL", "time_fired": "2022-02-08T22:42:26.071286+00:00", "context": { "id": "bbfcf1243e40135819a03a64a316d02a", "parent_id": null, "user_id": null } }

Double example:
{ "event_type": "smartthings.button", "data": { "component_id": "main", "device_id": "7b9d8adc-6f46-4d49-8022-0ce848a1881b", "location_id": "7de9ad93-a807-4208-aff4-9d9f2506524f", "value": "double", "name": "Master Bedroom Button", "data": {} }, "origin": "LOCAL", "time_fired": "2022-02-08T22:42:26.071286+00:00", "context": { "id": "bbfcf1243e40135819a03a64a316d02a", "parent_id": null, "user_id": null } }

Held example:
{ "event_type": "smartthings.button", "data": { "component_id": "main", "device_id": "7b9d8adc-6f46-4d49-8022-0ce848a1881b", "location_id": "7de9ad93-a807-4208-aff4-9d9f2506524f", "value": "held", "name": "Master Bedroom Button", "data": {} }, "origin": "LOCAL", "time_fired": "2022-02-08T22:42:26.071286+00:00", "context": { "id": "bbfcf1243e40135819a03a64a316d02a", "parent_id": null, "user_id": null } }

Im pretty sure its possible to get running without this Feature Request, but don't know what to put in the "custom state mapping" feild.

I am already making use of the events in automations.... but its less than ideal having to find device_id each time.

``
alias: Master Bedroom Button Pushed
description: ''
trigger:

  • platform: event
    event_type: smartthings.button
    event_data:
    device_id: 7b9d8adc-6f46-4d49-8022-0ce848a1881b
    value: pushed
    condition: []
    action:
  • scene: scene.master_bedroom_lights_off
    mode: single
    ``

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions