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

Add support for double-tappable buttons #12

Closed
jason0x43 opened this issue Feb 18, 2020 · 5 comments
Closed

Add support for double-tappable buttons #12

jason0x43 opened this issue Feb 18, 2020 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@jason0x43
Copy link
Owner

See https://docs.hubitat.com/index.php?title=Driver_Capability_List#DoubleTapableButton

@jason0x43 jason0x43 added the enhancement New feature or request label Feb 18, 2020
@SPCulhane
Copy link

thank you! looking forward to this

@jason0x43 jason0x43 self-assigned this Feb 19, 2020
@SPCulhane
Copy link

I gave this a shot and its not working.

2020-02-19 07:27:48 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 422, in _async_add_entity
    await entity.async_added_to_hass()
  File "/usr/src/homeassistant/homeassistant/components/automation/__init__.py", line 361, in async_added_to_hass
    await self.async_enable()
  File "/usr/src/homeassistant/homeassistant/components/automation/__init__.py", line 423, in async_enable
    self._async_detach_triggers = await self._async_attach_triggers()
  File "/usr/src/homeassistant/homeassistant/components/automation/__init__.py", line 464, in _async_attach_triggers
    self.hass, conf, self.async_trigger, info
  File "/usr/src/homeassistant/homeassistant/components/automation/device.py", line 31, in async_attach_trigger
    return await platform.async_attach_trigger(hass, config, action, automation_info)
  File "/config/custom_components/hubitat/device_trigger.py", line 158, in async_attach_trigger
    raise InvalidDeviceAutomationConfig
homeassistant.components.device_automation.exceptions.InvalidDeviceAutomationConfig

The option is there when creating an automation but there isn't any text:
image

- id: '1582115162734'
  alias: test
  description: ''
  trigger:
  - device_id: 087eaf0689f943d5b0cdd3ef21d67a20
    domain: hubitat
    platform: device
    subtype: '1'
    type: double tapped
  condition: []
  action:
  - entity_id: light.kitchen_dining_area_light
    service: light.turn_on

@jason0x43 jason0x43 reopened this Feb 19, 2020
jason0x43 added a commit that referenced this issue Feb 19, 2020
@jason0x43
Copy link
Owner Author

I published v0.4.3 which should fix the missing labels, and also added some additional logging statements to help diagnose trigger issues. You may need to delete and recreate double tap automations.

Let me know if that works any better.

@SPCulhane
Copy link

thank you for the quick fix. I can confirm the labels are displaying correcting and everything is working.

@jason0x43
Copy link
Owner Author

Great! Closing this as fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants