-
-
Notifications
You must be signed in to change notification settings - Fork 2
Add MQTT support #2
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
base: main
Are you sure you want to change the base?
Conversation
bddfb48 to
7171b26
Compare
2a2f3af to
3f9bd9f
Compare
533bd75 to
41c3994
Compare
|
@rohankapoorcom @jncasey this is as far as I can take this without being able to test it against a system that's using Zigbee2MQTT. If/when either of you have time to review it and/or take it to the point of being usable, I think it would be much appreciated by anyone using Zigbee2MQTT. 🥂 |
bd4f127 to
a0cc274
Compare
0ce1d5c to
2a81862
Compare
b2a77bd to
c2e9c1f
Compare
Beginning to refactor tests to allow a bit more code re-use. This will become more important for #2 and other integrations that get added.
735b2f1 to
0dafcdc
Compare
|
This now requires Zigbee2MQTT v2.6.0 which includes @rohankapoorcom's |
a4cb904 to
7076f81
Compare
a084dca to
e0d21f6
Compare
bdf9e50 to
8a89cec
Compare
|
There hasn't been any activity on this pull request recently. This pull request has been automatically marked as stale because of that and will be closed if no further activity occurs within 7 days. |
This is currently untested.
There's still some work to do on this:
Device Names and Identifiers
I got some great explanations on naming, topics, and identifiers.
Before this, in c2e9c1f, switches could be looked up by MQTT device ID or name (in case that's ever a useful idea to apply again).
Original problem description:
Obtaining Parameter Values
In c2e9c1f, I used the same strategy of locating related entities from the device. It turns out, though, that the 2x tap to dismiss notifications entity is disabled by default in the entity registry. The approach being implemented now is to request an update from MQTT when switches are added and process state updates for them.
Original problem description:
Prior Art & Documentation Resources
The following were suggested as reference points for implementation:
mqtt.publishmqtt.async_subscribeNotes
ZHA has some events that it can receive from the switches, namely
0x24which is forled_effect_complete. When this PR was first openened, that wasn't present in the Z2M docs nor the herdsman converters, but @rohankapoorcom added support for this in Koenkk/zigbee-herdsman-converters#9735.