Skip to content
This repository has been archived by the owner on Jul 23, 2021. It is now read-only.

Cannot set state manually #88

Closed
Aephir opened this issue Oct 16, 2018 · 5 comments
Closed

Cannot set state manually #88

Aephir opened this issue Oct 16, 2018 · 5 comments

Comments

@Aephir
Copy link

Aephir commented Oct 16, 2018

First, thanks for the work put into this!

My issue is kind of related to #85 .

I am using a few remotes, and especially for the Hue Tap, I need a idle state (this one only has 1_click, not 1_click_up, 1_click_hold, etc.). Otherwise it cannot see sequential clicks of the same button. I
made either a shell_command or a python script to change the state to "idle" after running an automation.

e.g.:

hass.states.set('sensor.bedroom_switch', 'idle')

But when I run this, I can see in the dev-states the state change to "idle" for less than a second, before it automatically changes back to whatever the previous state was. I'm not sure why, and if this is because of the way this component was written, but it doesn't happen when I try the same for other sensors. So if it is something that could be addressed, it would be greatly appreciated.

I can't offer to help with the code (I'm absolutely clueless), but if I can help with testing, I'd be happy to.

@robmarkcole
Copy link
Owner

These remotes need to be implemented as remotes really

@Aephir
Copy link
Author

Aephir commented Jan 5, 2019

Is that something I can do while setting up, or something that should/could be done in the component code?

In any case, I broke my hue tap. But before doing that, I made a python script in appdaemon to control it, and there it did react to multiple clicks of the same button. So I think I have a workaround. Now I just need to get a new remote 🙄

@yottatsa
Copy link
Contributor

yottatsa commented Jan 5, 2019

With 1.0.2 sensors will be updated only when the bridge state changes, so you could potentially set the state.

@johansmitsnl
Copy link

johansmitsnl commented Jan 26, 2019

@yottatsa does this mean that the idle state is not needed?

I used a rest sensor in the past and the HUE TAP I used the idle state to trigger actions on the same button again.

To me this issue and #85 are the same and one should be marked as duplicate and closed.

@yottatsa
Copy link
Contributor

yottatsa commented Feb 6, 2019

Duplicate: #85

@yottatsa yottatsa closed this as completed Feb 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants