Skip to content

Comments

Experimental H200 Hub support#194

Open
hazzabeee wants to merge 5 commits intopetretiandrea:mainfrom
hazzabeee:h200
Open

Experimental H200 Hub support#194
hazzabeee wants to merge 5 commits intopetretiandrea:mainfrom
hazzabeee:h200

Conversation

@hazzabeee
Copy link

@hazzabeee hazzabeee commented Jul 11, 2024

Hello. I know H200 Hub support is down as WIP anyway, but I had some free time so I thought I'd give it a go. This version isn't perfect, but it did allow me to add a variety of sensors to my HomeAssistant dashboards, which I thought was a good step forward and maybe a base to build upon.

EDIT: Ah, just seen you did make some progress on this yourself along similar lines - hope the below is helpful in helping you get it across the line anyway - you can just take what you need. Not sure why I didn't check the list of PRs first, would probably have been more helpful.

At the moment, the generator is always TapoRequest, but this
format allows different generators to be added to reflect
different API protocols.
TapoRequestH200 generates requests in a format understood by
H200 hubs (e.g. generally camel case rather than snake case).

Some functions not immediately supported (WIP)

Some tweaks required elsewhere where code assumes particular
API format.
@hazzabeee hazzabeee changed the title H200 Experimental H200 Hub support Jul 11, 2024
Draws heavily on the pytapo implementation. WIP:
- No support for on-hub components (alarms, etc)
- Inefficient finding of child components

Also, tweak previous commit such that request generator is determined
by the protocol itself.
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

Successfully merging this pull request may close these issues.

1 participant