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

[Device problem]: TuYa ERS-10TZBVK-AA and Hue_Move #223

Closed
Paalap opened this issue Aug 17, 2023 · 17 comments · Fixed by #225
Closed

[Device problem]: TuYa ERS-10TZBVK-AA and Hue_Move #223

Paalap opened this issue Aug 17, 2023 · 17 comments · Fixed by #225
Labels
device problem Data points or functionalities are missing

Comments

@Paalap
Copy link

Paalap commented Aug 17, 2023

Link

https://www.zigbee2mqtt.io/devices/ERS-10TZBVK-AA.html

Adapter version

2.10.1

What is missing or not working

"Hue_Move" is a true/false state and not a number. Is set to true on button hold and is released by "Hue_Stop" state

Device exposes

(Actaion_rate is a constant amount in this case)
{"payload":{"action":"hue_move","action_rate":15,"action_step_size":null,"action_transition_time":null,"battery":89,"brightness":33,"device":{"applicationVersion":67,"dateCode":"","friendlyName":"xxx","hardwareVersion":1,"ieeeAddr":"xxx","manufacturerID":4098,"manufacturerName":"_TZ3000_4fjiwweb","model":"ERS-10TZBVK-AA","networkAddress":52898,"powerSource":"Battery","stackVersion":0,"type":"EndDevice","zclVersion":3},"linkquality":142,"operation_mode":"command","voltage":2900},"topic":"xxx"}

release state:
{"payload":{"action":"hue_stop","action_rate":null,"action_step_size":null,"action_transition_time":null,"battery":89,"brightness":33,"device":{"applicationVersion":67,"dateCode":"","friendlyName":"xxx","hardwareVersion":1,"ieeeAddr":"xxx","manufacturerID":4098,"manufacturerName":"_TZ3000_4fjiwweb","model":"ERS-10TZBVK-AA","networkAddress":52898,"powerSource":"Battery","stackVersion":0,"type":"EndDevice","zclVersion":3},"linkquality":142,"operation_mode":"command","voltage":2900},"topic":"xxx"}
@Paalap Paalap added the device problem Data points or functionalities are missing label Aug 17, 2023
@o0shojo0o
Copy link
Contributor

According to the Exposes (https://www.zigbee2mqtt.io/devices/ERS-10TZBVK-AA.html#action-enum)
this is not supposed to be a number but an action that is a boolean in ioBroker.

image

@Paalap
Copy link
Author

Paalap commented Aug 17, 2023

Yes but the adapter is creating a number state...

@Paalap Paalap closed this as completed Aug 17, 2023
@Paalap Paalap reopened this Aug 17, 2023
@o0shojo0o
Copy link
Contributor

Ah ok, yes you are right!
Change in the payload the "action_rate":15 ?

@Paalap
Copy link
Author

Paalap commented Aug 17, 2023 via email

@o0shojo0o
Copy link
Contributor

Here #68 it was implemented at that time, probably then incorrectly ...

is then the Hue_stop created as a boolean?

@o0shojo0o
Copy link
Contributor

Or better can you give me a picture of the object tree of this device?

@Paalap
Copy link
Author

Paalap commented Aug 17, 2023

Yes, Hue_stop is boolean
image

o0shojo0o added a commit that referenced this issue Aug 17, 2023
o0shojo0o added a commit that referenced this issue Aug 17, 2023
@o0shojo0o
Copy link
Contributor

@Paalap
Copy link
Author

Paalap commented Aug 17, 2023

nope, somehow it does not work - also not with
if (payload.action_rate) { (instead of action_level)
return payload.action_rate;
} else {
return undefined;
}

@o0shojo0o
Copy link
Contributor

Did you also install the branch I posted?
Where did you get that code snippet?

@o0shojo0o
Copy link
Contributor

Otherwise we can meet in the ioBroker Discord.

@Paalap
Copy link
Author

Paalap commented Aug 17, 2023

yes installed it from the branch and tried to adjust it - I'm new to this adapter and trying to understand the code. For now (by deleting the part for hue_move code) it is working for me (not in a nice way as I would like to see hue_move set to true as long as the button is pushed and released by the action hue_stop. But I'll try to adjust the exposes.js for my purpose.

As I'm chnaging my zigbee setup there are also some other topics for me :)

@o0shojo0o
Copy link
Contributor

No, since the logic is different from adapter, it must you worked with the two data points that is also so wanted and owed to the Dynamic Generation of States and can now also not be changed so easily because otherwise many users would hunt me :)

@o0shojo0o
Copy link
Contributor

I would already merge the fix now.
This will close the issues here, but if you have any questions, suggestions or even mistakes, feel free to write a new one :)

@Paalap
Copy link
Author

Paalap commented Aug 17, 2023

Sure, just trying how I could do it for my purposes. I do not want to destroy the existing logic ;)

o0shojo0o added a commit that referenced this issue Aug 17, 2023
* fixed Hue_Move

Closed #223

* added changelog
@o0shojo0o
Copy link
Contributor

In this dev branch I added the option 'Generate simple 'Move' and 'Stop' states' this should match your expected behavior. https://github.com/o0shojo0o/ioBroker.zigbee2mqtt/tree/IKEA-E2123-(SYMFONISK-gen2)-Volume-hold-%23224

@Paalap
Copy link
Author

Paalap commented Aug 24, 2023

Thank you for your support and this additional option

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
device problem Data points or functionalities are missing
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants