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

adding HmIP-WTH-B-2 devicedump #529

Open
mamugit opened this issue Jun 6, 2024 · 6 comments
Open

adding HmIP-WTH-B-2 devicedump #529

mamugit opened this issue Jun 6, 2024 · 6 comments

Comments

@mamugit
Copy link

mamugit commented Jun 6, 2024

Hi,

it would be great if HmIP-WTH-B-2 Display/Wall-Thermostate could be added to the Rest-API; device-dump is here:
https://gist.github.com/mamugit/c1660662d84378b045b32831f1014171

@hahn-th
Copy link
Owner

hahn-th commented Jul 3, 2024

I guess youre talking about the Integration in HomeAssistant?
I currently working on make the HomeAssistant work with a new release of this library. Takes a while cause i have to rewrite lots of code.
After that, all the devices will work.

If you wanna help testing: [email protected] or discord!

@mamugit
Copy link
Author

mamugit commented Jul 3, 2024

no, this was due to the fact that HmIP-WTH-B-2 is marked not supported on your entry page for the restAPI on github.
no tickbox marked
meanwhile I had more time to test and the cli is working properly with HmIP-WTH-B-2.
So due to my understanding it should be supported by your API and CLI
maybe the dump is useful for you anyways.

@hahn-th
Copy link
Owner

hahn-th commented Jul 3, 2024

Okay nice!

If you like you could try out the new cli.
Would help me a lot!
pip install homematicip==1.1.0.post1.dev53

@mamugit
Copy link
Author

mamugit commented Jul 3, 2024

did a quick test with 1.1.0.post1.dev53:

generating auth token -> working
hmip list rssi -> working
hmip list last-status-update -> working
hmip list firmware -> working
hmip run dump filename.txt -> working

hmip list devices -> failure

Devices:
Traceback (most recent call last):
File "/home/user/.local/bin/./hmip", line 8, in
sys.exit(cli())
^^^^^
File "/home/user/.local/lib/python3.12/site-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/.local/lib/python3.12/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/home/user/.local/lib/python3.12/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/.local/lib/python3.12/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/.local/lib/python3.12/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/.local/lib/python3.12/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/.local/lib/python3.12/site-packages/homematicip/cli/hmip.py", line 151, in devices
output = generate_output_device(device, format_config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/.local/lib/python3.12/site-packages/homematicip/cli/output_formatter/formatter.py", line 17, in generate_output_device
return _generate_output(device, output_format_config.device_attributes)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'device_attributes'

... maybe Data-Output of prssi is causing this; since a while I get prssi value= None; rssiPeerValue(None)

hmip list groups -> failure

Groups:
Traceback (most recent call last):
File "/home/user/.local/bin/./hmip", line 8, in
sys.exit(cli())
^^^^^
File "/home/user/.local/lib/python3.12/site-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/.local/lib/python3.12/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/home/user/.local/lib/python3.12/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/.local/lib/python3.12/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/.local/lib/python3.12/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/.local/lib/python3.12/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/.local/lib/python3.12/site-packages/homematicip/cli/hmip.py", line 169, in groups
output = generate_output_group(group, format_config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/.local/lib/python3.12/site-packages/homematicip/cli/output_formatter/formatter.py", line 12, in generate_output_group
return _generate_output(group, output_format_config.group_attributes)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'group_attributes'

@hahn-th
Copy link
Owner

hahn-th commented Jul 5, 2024

@mamugit
Copy link
Author

mamugit commented Jul 5, 2024

great! hmip list devices and hmip list groups is working with 1.1.0.post1.dev54 !!

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

No branches or pull requests

2 participants