Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
TRusselo opened this issue Feb 8, 2022 · 0 comments
Open

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

TRusselo opened this issue Feb 8, 2022 · 0 comments

Comments

@TRusselo
Copy link

TRusselo commented Feb 8, 2022

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
    ``
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant