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

Trying power calc but having this issue #345

Closed
ahmaddxb opened this issue Nov 5, 2021 · 6 comments
Closed

Trying power calc but having this issue #345

ahmaddxb opened this issue Nov 5, 2021 · 6 comments
Labels
bug Something isn't working

Comments

@ahmaddxb
Copy link

ahmaddxb commented Nov 5, 2021

Please see log of process

2021-11-05 07:53:22,658 [INFO] Selected powermeter: tasmota
2021-11-05 07:53:22,659 [INFO] Selected Light controller: hass
2021-11-05 07:53:22,664 [DEBUG] Starting new HTTP connection (1): 192.168.1.120:8123
2021-11-05 07:53:22,670 [DEBUG] http://192.168.1.120:8123 "GET /api/ HTTP/1.1" 200 35
2021-11-05 07:53:22,673 [DEBUG] Starting new HTTP connection (1): 192.168.1.120:8123
2021-11-05 07:53:25,711 [DEBUG] http://192.168.1.120:8123 "POST /api/config/core/check_config HTTP/1.1" 200 42
2021-11-05 07:53:25,717 [DEBUG] Starting new HTTP connection (1): 192.168.1.120:8123
2021-11-05 07:53:25,804 [DEBUG] http://192.168.1.120:8123 "GET /api/states HTTP/1.1" 200 148701
? Select the color mode? brightness
? Do you want to generate model.json? Yes
? Specify the full light model name aa
? Which device (manufacturer, model) do you use to take the measurement? aaa
? Do you want to gzip CSV files? Yes
? Are you measuring multiple lights. In some situations it helps to connect multiple lights to be able to measure low cu
rrents. No
? Select the light? (Use arrow keys)
❯ light.amirlight
light.backdoor_light
light.balcony_room_balcony_light
light.balcony_room_light_1
light.balcony_room_light_2
light.balcony_room_light_3
light.balcony_room_light_4
light.browser_mod_0041c973_a6987460
light.browser_mod_06502d15_7f90c071
light.browser_mod_08172c6c_0a6882b3
light.browser_mod_08782156_ac4ff6e0
light.browser_mod_0c5e8ef3_1e6cb908
light.browser_mod_14a89de3_5756074c
light.browser_mod_169d1ad1_6476ccf0
light.browser_mod_372bf6b7_5f72fe1e
light.browser_mod_3b606df3_6665183f
light.browser_mod_5a01f79c_06547d98
light.browser_mod_5aa036e2_6fc1ba47
light.browser_mod_5d5a0bb0_eaf4ada1
light.browser_mod_5fac7583_b2ad72b6
light.browser_mod_5fd329ba_a97daebc
light.browser_mod_674bcf64_3d060958
light.browser_mod_6a3567a0_e945417e
light.browser_mod_89c934dc_ac78e213
light.browser_mod_8b3ab103_685e027b
light.browser_mod_94092165_584198fb
light.browser_mod_991fb5fa_e8254f74
light.browser_mod_9988e37a_42db0dca
light.browser_mod_9f1e8f8c_122deee4
light.browser_mod_a053e698_0068bf90
light.browser_mod_a150d472_f24187b1
light.browser_mod_a54fba09_8db1952c
light.browser_mod_ab7bf736_6fd86aa3
light.browser_mod_ace1997b_a8dbc0e0
light.browser_mod_ae75573a_885c5a1f
light.browser_mod_b2c69743_7b98015a
light.browser_mod_b46db178_20a5579d
light.browser_mod_bb11ace1_2e76db31
light.browser_mod_c0aeb2ef_b728f150
light.browser_mod_c0e4c5da_b3080bf9
light.browser_mod_c3383802_9bd4f6a0
light.browser_mod_c6799fef_c581f24f
light.browser_mod_caddaf23_053fa260
light.browser_mod_cb6b6ccd_0c2a9290
light.browser_mod_d5c92ae3_5902b626
light.browser_mod_d60325aa_b729d72f
light.browser_mod_d7cf00fb_208fc8b4
light.browser_mod_da2e8aba_87a3e540
light.browser_mod_dcd6d374_8747dbc7
light.browser_mod_ea62c14a_c7360eca
light.browser_mod_ec52f4bd_e42af21d
light.browser_mod_f3a6e58c_a738f8e3
? Select the light? light.amirlight
? What model is your light? Ex: LED1837R5 aaaa
Traceback (most recent call last):
File "measure.py", line 488, in
main()
File "measure.py", line 485, in main
measure.start()
File "measure.py", line 110, in start
self.light_info = self.light_controller.get_light_info()
File "/app/light_controller/hass.py", line 34, in get_light_info
state = self.client.get_state(self._entity_id)
File "/usr/local/lib/python3.8/site-packages/homeassistant_api/client.py", line 207, in get_state
raise MalformedInputError(f"The entity_id, {entity_id!r}, is malformed")
homeassistant_api.errors.MalformedInputError: The entity_id, 'light.amirlight', is malformed

@bramstroker bramstroker added the bug Something isn't working label Nov 5, 2021
@bramstroker
Copy link
Owner

How exactly are you running the measure script? with docker or directly with Python? And are you using the latest version?

@bramstroker
Copy link
Owner

I was able to reproduce the issue. The bug is actually in an upstream library I am using to communicate with Home Assistant API. https://github.com/GrandMoff100/HomeAssistantAPI

@bramstroker
Copy link
Owner

Bug report created. GrandMoff100/HomeAssistantAPI#47.

@GrandMoff100
Copy link

Bug Resolved: GrandMoff100/HomeAssistantAPI#47 (comment)

@bramstroker
Copy link
Owner

Thanks a lot @GrandMoff100
Fixed with #348. Will be in upcoming release v0.10.4

@ahmaddxb
Copy link
Author

ahmaddxb commented Nov 5, 2021

Amazing mate thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants