Code Monkey home page Code Monkey logo

Comments (12)

Danielhiversen avatar Danielhiversen commented on July 21, 2024

Could you enable debug logging?


logger:
  default: warning
  logs:
    custom_components.petcare: debug


from home_assistant_petcare.

retoziegler avatar retoziegler commented on July 21, 2024

I have it like that.
And all I see related to petcare is the following line - no DEBUG messages at all (also after several restarts):
2021-06-24 14:43:55 WARNING (SyncWorker_4) [homeassistant.loader] We found a custom integration petcare which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant

from home_assistant_petcare.

Danielhiversen avatar Danielhiversen commented on July 21, 2024

Then it is something wrong with your setup. It should log much more in debug mode.

from home_assistant_petcare.

retoziegler avatar retoziegler commented on July 21, 2024

That's what I have suspected...

from home_assistant_petcare.

retoziegler avatar retoziegler commented on July 21, 2024

I managed to get some DEBUG log entries for this integration - that's all that is repeatedly being logged:

2021-06-25 09:41:28 DEBUG (MainThread) [custom_components.petcare.petcare] data {'data': {'devices': [{'id': #####, 'product_id': 1, 'household_id': #####, 'name': 'CatHub', 'serial_number': '#####', 'mac_address': '#####', 'version': 'MTU=', 'created_at': '2020-03-19T13:45:40+00:00', 'updated_at': '2021-06-22T22:58:10+00:00', 'control': {'led_mode': 4, 'pairing_mode': 0}, 'status': {'led_mode': 4, 'pairing_mode': 0, 'version': {'device': {'hardware': 3, 'firmware': 2.43}}, 'online': True}}, {'id': #####, 'parent_device_id': #####, 'product_id': 3, 'household_id': #####, 'name': 'Kellertürli', 'mac_address': '#####', 'index': 0, 'version': 'OQ==', 'created_at': '2021-06-22T15:31:05+00:00', 'updated_at': '2021-06-22T22:58:10+00:00', 'pairing_at': '2021-06-22T15:31:05+00:00', 'control': {'curfew': {'enabled': True, 'lock_time': '22:00', 'unlock_time': '05:00'}, 'fast_polling': True}, 'parent': {'id': #####, 'product_id': 1, 'household_id': #####, 'name': 'CatHub', 'serial_number': '#####', 'mac_address': '#####', 'version': 'MTU=', 'created_at': '2020-03-19T13:45:40+00:00', 'updated_at': '2021-06-22T22:58:10+00:00'}, 'status': {'battery': 6.359999999999999, 'locking': {'mode': 4, 'curfew': {'delay_time': 0, 'lock_time': '22:00', 'permission': 2, 'unlock_time': '05:00', 'locked': True}}, 'version': {'lcd': {'hardware': 1, 'firmware': 1}, 'rf': {'hardware': 4, 'firmware': 0.16}}, 'learn_mode': False, 'online': True, 'signal': {'device_rssi': -62.25, 'hub_rssi': -61}}, 'tags': [{'id': #####, 'index': 0, 'version': 'MA==', 'created_at': '2021-06-22T15:50:49+00:00', 'updated_at': '2021-06-22T15:50:49+00:00'}]}], 'households': [{'id': #####, 'name': '#####', 'share_code': '#####', 'timezone_id': 320, 'version': 'MA==', 'created_at': '2021-06-22T15:18:21+00:00', 'updated_at': '2021-06-22T15:18:21+00:00', 'invites': [{'id': #####, 'code': '#####', 'email_address': '#####', 'creator_user_id': #####, 'acceptor_user_id': #####, 'owner': True, 'write': True, 'status': 1, 'version': 'Mg==', 'created_at': '2021-06-22T16:28:18+00:00', 'updated_at': '2021-06-22T16:35:08+00:00', 'user': {'acceptor': {'id': #####, 'name': '#####', 'photo_id': #####, 'photo': {'id': #####, 'location': '#####', 'uploading_user_id': #####, 'version': 'MA==', 'created_at': '2021-06-22T16:36:01+00:00', 'updated_at': '2021-06-22T16:36:01+00:00'}}, 'creator': {'id': #####, 'name': '#####'}}}], 'users': [{'id': #####, 'owner': True, 'write': True, 'version': 'MA==', 'created_at': '2021-06-22T15:18:21+00:00', 'updated_at': '2021-06-22T15:18:21+00:00', 'user': {'id': #####, 'name': '#####'}}, {'id': #####, 'owner': True, 'write': True, 'version': 'MA==', 'created_at': '2021-06-22T16:35:07+00:00', 'updated_at': '2021-06-22T16:35:07+00:00', 'user': {'id': #####, 'name': '#####', 'photo_id': #####, 'photo': {'id': #####, 'location': '#####', 'uploading_user_id': #####, 'version': 'MA==', 'created_at': '2021-06-22T16:36:01+00:00', 'updated_at': '2021-06-22T16:36:01+00:00'}}}]}], 'pets': [{'id': #####, 'name': '#####', 'gender': 1, 'comments': '', 'household_id': #####, 'breed_id': 342, 'species_id': 1, 'tag_id': #####, 'version': 'MQ==', 'created_at': '2021-06-22T15:50:49+00:00', 'updated_at': '2021-06-22T16:28:00+00:00', 'position': {'tag_id': #####, 'device_id': #####, 'where': 2, 'since': '2021-06-22T15:52:42+00:00'}, 'status': {'activity': {'tag_id': #####, 'device_id': #####, 'where': 2, 'since': '2021-06-22T15:52:42+00:00'}}}], 'photos': [{'id': #####, 'location': '#####', 'uploading_user_id': 3139053842, 'version': 'MA==', 'created_at': '2021-06-22T16:36:01+00:00', 'updated_at': '2021-06-22T16:36:01+00:00'}], 'tags': [{'id': #####, 'tag': '#####', 'version': 'MA==', 'created_at': '2021-06-22T15:50:49+00:00', 'updated_at': '2021-06-22T15:50:49+00:00', 'supported_product_ids': [3]}], 'user': {'id': #####, 'email_address': '#####', 'first_name': '#####', 'last_name': '#####', 'country_id': 43, 'language_id': 32, 'marketing_opt_in': False, 'terms_accepted': True, 'weight_units': 0, 'time_format': 0, 'version': 'MA==', 'created_at': '2021-06-22T15:17:36+00:00', 'updated_at': '2021-06-22T15:17:36+00:00', 'notifications': {'device_status': True, 'animal_movement': True, 'intruder_movements': True, 'new_device_pet': True, 'household_management': True, 'photos': True, 'low_battery': True, 'curfew': True, 'feeding_activity': True, 'drinking_activity': True, 'feeding_topup': True, 'drinking_topup': True}}}}
2021-06-25 09:41:28 DEBUG (MainThread) [custom_components.petcare.petcare] tl data {'data': [{'id': #####, 'type': 20, 'data': '{"locked":true,"mode":{"entry_down":false,"exit_down":false,"curfew_action":true},"time":"20:58","lock":"22:00","unlock":"05:00"}', 'created_at': '2021-06-22T22:58:33+00:00', 'updated_at': '2021-06-22T22:58:33+00:00', 'devices': [{'id': #####, 'parent_device_id': #####, 'product_id': 3, 'household_id': #####, 'name': 'Kellertürli', 'mac_address': '#####', 'index': 0, 'version': 'OQ==', 'created_at': '2021-06-22T15:31:05+00:00', 'updated_at': '2021-06-22T22:58:10+00:00', 'pairing_at': '2021-06-22T15:31:05+00:00'}]}, {'id': #####, 'type': 12, 'data': '#####', 'created_at': '2021-06-22T16:35:07+00:00', 'updated_at': '2021-06-22T16:35:07+00:00', 'households': [{'id': #####, 'name': '#####', 'share_code': '#####', 'timezone_id': 320, 'version': 'MA==', 'created_at': '2021-06-22T15:18:21+00:00', 'updated_at': '2021-06-22T15:18:21+00:00'}], 'users': [{'id': #####, 'name': '#####', 'photo_id': #####}]}, {'id': #####, 'type': 6, 'data': '{"mode":4,"last_mode":4,"time":"17:57","lock":"22:00","unlock":"05:00"}', 'created_at': '2021-06-22T16:29:50+00:00', 'updated_at': '2021-06-22T16:29:52+00:00', 'devices': [{'id': #####, 'parent_device_id': #####, 'product_id': 3, 'household_id': #####, 'name': 'Kellertürli', 'mac_address': '#####', 'index': 0, 'version': 'OQ==', 'created_at': '2021-06-22T15:31:05+00:00', 'updated_at': '2021-06-22T22:58:10+00:00', 'pairing_at': '2021-06-22T15:31:05+00:00'}], 'users': [{'id': #####, 'name': '#####'}]}, {'id': #####, 'type': 6, 'data': '{"mode":4,"last_mode":0,"time":"17:57","lock":"12:01","unlock":"12:02"}', 'created_at': '2021-06-22T16:29:50+00:00', 'updated_at': '2021-06-22T16:29:51+00:00', 'devices': [{'id': #####, 'parent_device_id': #####, 'product_id': 3, 'household_id': #####, 'name': 'Kellertürli', 'mac_address': '#####', 'index': 0, 'version': 'OQ==', 'created_at': '2021-06-22T15:31:05+00:00', 'updated_at': '2021-06-22T22:58:10+00:00', 'pairing_at': '2021-06-22T15:31:05+00:00'}], 'users': [{'id': #####, 'name': '#####'}]}, {'id': #####, 'type': 6, 'data': '{"mode":0,"last_mode":4}', 'created_at': '2021-06-22T16:28:38+00:00', 'updated_at': '2021-06-22T16:28:40+00:00', 'devices': [{'id': #####, 'parent_device_id': #####, 'product_id': 3, 'household_id': #####, 'name': 'Kellertürli', 'mac_address': '#####', 'index': 0, 'version': 'OQ==', 'created_at': '2021-06-22T15:31:05+00:00', 'updated_at': '2021-06-22T22:58:10+00:00', 'pairing_at': '2021-06-22T15:31:05+00:00'}]}, {'id': #####, 'type': 6, 'data': '{"mode":4,"last_mode":4,"time":"12:128","lock":"12:01","unlock":"12:02"}', 'created_at': '2021-06-22T15:53:12+00:00', 'updated_at': '2021-06-22T15:53:12+00:00', 'devices': [{'id': #####, 'parent_device_id': #####, 'product_id': 3, 'household_id': #####, 'name': 'Kellertürli', 'mac_address': '#####', 'index': 0, 'version': 'OQ==', 'created_at': '2021-06-22T15:31:05+00:00', 'updated_at': '2021-06-22T22:58:10+00:00', 'pairing_at': '2021-06-22T15:31:05+00:00'}]}, {'id': #####, 'type': 6, 'data': '{"mode":4,"last_mode":3,"time":"12:128","lock":"12:01","unlock":"12:02"}', 'created_at': '2021-06-22T15:53:11+00:00', 'updated_at': '2021-06-22T15:53:12+00:00', 'devices': [{'id': #####, 'parent_device_id': #####, 'product_id': 3, 'household_id': #####, 'name': 'Kellertürli', 'mac_address': '#####', 'index': 0, 'version': 'OQ==', 'created_at': '2021-06-22T15:31:05+00:00', 'updated_at': '2021-06-22T22:58:10+00:00', 'pairing_at': '2021-06-22T15:31:05+00:00'}]}, {'id': #####, 'type': 6, 'data': '{"mode":3,"last_mode":0}', 'created_at': '2021-06-22T15:52:59+00:00', 'updated_at': '2021-06-22T15:52:59+00:00', 'devices': [{'id': #####, 'parent_device_id': #####, 'product_id': 3, 'household_id': #####, 'name': 'Kellertürli', 'mac_address': '#####', 'index': 0, 'version': 'OQ==', 'created_at': '2021-06-22T15:31:05+00:00', 'updated_at': '2021-06-22T22:58:10+00:00', 'pairing_at': '2021-06-22T15:31:05+00:00'}]}, {'id': #####, 'type': 0, 'data': 'null', 'created_at': '2021-06-22T15:52:42+00:00', 'updated_at': '2021-06-22T15:52:42+00:00', 'devices': [{'id': #####, 'parent_device_id': #####, 'product_id': 3, 'household_id': #####, 'name': 'Kellertürli', 'mac_address': '#####', 'index': 0, 'version': 'OQ==', 'created_at': '2021-06-22T15:31:05+00:00', 'updated_at': '2021-06-22T22:58:10+00:00', 'pairing_at': '2021-06-22T15:31:05+00:00'}], 'movements': [{'id': #####, 'device_id': #####, 'tag_id': #####, 'time': '17:51', 'direction': 2, 'type': 6, 'created_at': '2021-06-22T15:52:42+00:00', 'updated_at': '2021-06-22T15:52:42+00:00'}], 'pets': [{'id': #####, 'name': '#####', 'gender': 1, 'comments': '', 'household_id': #####, 'breed_id': 342, 'species_id': 1, 'tag_id': #####, 'version': 'MQ==', 'created_at': '2021-06-22T15:50:49+00:00', 'updated_at': '2021-06-22T16:28:00+00:00'}], 'tags': [{'id': #####, 'tag': '#####', 'version': 'MA==', 'created_at': '2021-06-22T15:50:49+00:00', 'updated_at': '2021-06-22T15:50:49+00:00', 'supported_product_ids': [3]}]}, {'id': #####, 'type': 0, 'data': 'null', 'created_at': '2021-06-22T15:52:34+00:00', 'updated_at': '2021-06-22T15:52:35+00:00', 'devices': [{'id': #####, 'parent_device_id': #####, 'product_id': 3, 'household_id': #####, 'name': 'Kellertürli', 'mac_address': '#####', 'index': 0, 'version': 'OQ==', 'created_at': '2021-06-22T15:31:05+00:00', 'updated_at': '2021-06-22T22:58:10+00:00', 'pairing_at': '2021-06-22T15:31:05+00:00'}], 'movements': [{'id': #####, 'device_id': #####, 'tag_id': #####, 'time': '17:51', 'direction': 0, 'type': 4, 'created_at': '2021-06-22T15:52:34+00:00', 'updated_at': '2021-06-22T15:52:34+00:00'}], 'pets': [{'id': #####, 'name': '#####', 'gender': 1, 'comments': '', 'household_id': #####, 'breed_id': 342, 'species_id': 1, 'tag_id': #####, 'version': 'MQ==', 'created_at': '2021-06-22T15:50:49+00:00', 'updated_at': '2021-06-22T16:28:00+00:00'}], 'tags': [{'id': #####, 'tag': '#####', 'version': 'MA==', 'created_at': '2021-06-22T15:50:49+00:00', 'updated_at': '2021-06-22T15:50:49+00:00', 'supported_product_ids': [3]}]}, {'id': #####, 'type': 0, 'data': 'null', 'created_at': '2021-06-22T15:51:20+00:00', 'updated_at': '2021-06-22T15:51:23+00:00', 'devices': [{'id': #####, 'parent_device_id': #####, 'product_id': 3, 'household_id': #####, 'name': 'Kellertürli', 'mac_address': '#####', 'index': 0, 'version': 'OQ==', 'created_at': '2021-06-22T15:31:05+00:00', 'updated_at': '2021-06-22T22:58:10+00:00', 'pairing_at': '2021-06-22T15:31:05+00:00'}], 'movements': [{'id': #####, 'device_id': #####, 'tag_id': #####, 'time': '12:27', 'direction': 2, 'type': 6, 'created_at': '2021-06-22T15:51:20+00:00', 'updated_at': '2021-06-22T15:51:20+00:00'}], 'pets': [{'id': #####, 'name': '#####', 'gender': 1, 'comments': '', 'household_id': #####, 'breed_id': 342, 'species_id': 1, 'tag_id': #####, 'version': 'MQ==', 'created_at': '2021-06-22T15:50:49+00:00', 'updated_at': '2021-06-22T16:28:00+00:00'}], 'tags': [{'id': #####, 'tag': '#####', 'version': 'MA==', 'created_at': '2021-06-22T15:50:49+00:00', 'updated_at': '2021-06-22T15:50:49+00:00', 'supported_product_ids': [3]}]}, {'id': #####, 'type': 2, 'data': '{"index":0,"from":"StoredTagListener","reason":1}', 'created_at': '2021-06-22T15:50:46+00:00', 'updated_at': '2021-06-22T15:50:49+00:00', 'devices': [{'id': #####, 'parent_device_id': #####, 'product_id': 3, 'household_id': #####, 'name': 'Kellertürli', 'mac_address': '#####', 'index': 0, 'version': 'OQ==', 'created_at': '2021-06-22T15:31:05+00:00', 'updated_at': '2021-06-22T22:58:10+00:00', 'pairing_at': '2021-06-22T15:31:05+00:00'}], 'pets': [{'id': #####, 'name': '#####', 'gender': 1, 'comments': '', 'household_id': #####, 'breed_id': 342, 'species_id': 1, 'tag_id': #####, 'version': 'MQ==', 'created_at': '2021-06-22T15:50:49+00:00', 'updated_at': '2021-06-22T16:28:00+00:00'}], 'tags': [{'id': #####, 'tag': '#####', 'version': 'MA==', 'created_at': '2021-06-22T15:50:49+00:00', 'updated_at': '2021-06-22T15:50:49+00:00', 'supported_product_ids': [3]}]}, {'id': #####, 'type': 13, 'data': '#####', 'created_at': '2021-06-22T15:50:49+00:00', 'updated_at': '2021-06-22T15:50:49+00:00', 'households': [{'id': #####, 'name': '#####', 'share_code': '#####', 'timezone_id': 320, 'version': 'MA==', 'created_at': '2021-06-22T15:18:21+00:00', 'updated_at': '2021-06-22T15:18:21+00:00'}], 'pets': [{'id': #####, 'name': '#####', 'gender': 1, 'comments': '', 'household_id': #####, 'breed_id': 342, 'species_id': 1, 'tag_id': #####, 'version': 'MQ==', 'created_at': '2021-06-22T15:50:49+00:00', 'updated_at': '2021-06-22T16:28:00+00:00'}]}, {'id': #####, 'type': 3, 'data': '#####', 'created_at': '2021-06-22T15:31:05+00:00', 'updated_at': '2021-06-22T15:31:05+00:00', 'devices': [{'id': #####, 'parent_device_id': #####, 'product_id': 3, 'household_id': #####, 'name': 'Kellertürli', 'mac_address': '#####', 'index': 0, 'version': 'OQ==', 'created_at': '2021-06-22T15:31:05+00:00', 'updated_at': '2021-06-22T22:58:10+00:00', 'pairing_at': '2021-06-22T15:31:05+00:00'}], 'households': [{'id': #####, 'name': '#####', 'share_code': '#####', 'timezone_id': 320, 'version': 'MA==', 'created_at': '2021-06-22T15:18:21+00:00', 'updated_at': '2021-06-22T15:18:21+00:00'}]}, {'id': #####, 'type': 3, 'data': '#####', 'created_at': '2021-06-22T15:27:52+00:00', 'updated_at': '2021-06-22T15:27:52+00:00', 'devices': [{'id': #####, 'product_id': 1, 'household_id': #####, 'name': 'CatHub', 'serial_number': '#####', 'mac_address': '#####', 'version': 'MTU=', 'created_at': '2020-03-19T13:45:40+00:00', 'updated_at': '2021-06-22T22:58:10+00:00'}], 'households': [{'id': #####, 'name': '#####', 'share_code': '#####', 'timezone_id': 320, 'version': 'MA==', 'created_at': '2021-06-22T15:18:21+00:00', 'updated_at': '2021-06-22T15:18:21+00:00'}], 'users': [{'id': #####, 'name': '#####'}]}, {'id': #####, 'type': 3, 'data': '#####', 'created_at': '2021-06-22T15:26:03+00:00', 'updated_at': '2021-06-22T15:26:03+00:00', 'devices': [{'id': #####, 'product_id': 1, 'household_id': #####, 'name': 'CatHub', 'serial_number': '#####', 'mac_address': '#####', 'version': 'MTU=', 'created_at': '2020-03-19T13:45:40+00:00', 'updated_at': '2021-06-22T22:58:10+00:00'}], 'households': [{'id': #####, 'name': '#####', 'share_code': '#####', 'timezone_id': 320, 'version': 'MA==', 'created_at': '2021-06-22T15:18:21+00:00', 'updated_at': '2021-06-22T15:18:21+00:00'}], 'users': [{'id': #####, 'name': '#####'}]}, {'id': #####, 'type': 12, 'data': '#####', 'created_at': '2021-06-22T15:18:21+00:00', 'updated_at': '2021-06-22T15:18:21+00:00', 'households': [{'id': #####, 'name': '#####', 'share_code': '#####', 'timezone_id': 320, 'version': 'MA==', 'created_at': '2021-06-22T15:18:21+00:00', 'updated_at': '2021-06-22T15:18:21+00:00'}], 'users': [{'id': #####, 'name': '#####'}]}, {'id': #####, 'type': 17, 'data': 'null', 'created_at': '2021-06-22T15:17:36+00:00', 'updated_at': '2021-06-22T15:17:36+00:00', 'users': [{'id': #####, 'name': '#####'}]}], 'meta': {'page': 1, 'page_size': 25, 'count': 999999}}

from home_assistant_petcare.

Danielhiversen avatar Danielhiversen commented on July 21, 2024

Great, now I have something to work on :)

from home_assistant_petcare.

retoziegler avatar retoziegler commented on July 21, 2024

Btw: I removed all the IDs etc. - let me know if and which ones are needed and I'll add them

from home_assistant_petcare.

Danielhiversen avatar Danielhiversen commented on July 21, 2024

Could you try to upgrade to 0.2.0 ?

from home_assistant_petcare.

retoziegler avatar retoziegler commented on July 21, 2024

I have updated to 0.2.0 and I get the following error:
2021-06-25 23:35:08 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up petcare platform for sensor Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 250, in _async_setup_platform await asyncio.shield(task) File "/config/custom_components/petcare/sensor.py", line 20, in async_setup_entry await _setup(hass, async_add_entities) File "/config/custom_components/petcare/sensor.py", line 27, in _setup await petcare_data_handler.get_device_data() File "/config/custom_components/petcare/petcare.py", line 265, in get_device_data self._flaps = [ File "/config/custom_components/petcare/petcare.py", line 270, in <listcomp> "state": LockState(val.get("control").get("locking")).name, File "/usr/local/lib/python3.8/enum.py", line 339, in __call__ return cls.__new__(cls, value) File "/usr/local/lib/python3.8/enum.py", line 662, in __new__ raise ve_exc ValueError: None is not a valid LockState

from home_assistant_petcare.

Danielhiversen avatar Danielhiversen commented on July 21, 2024

Okay, since you have a different version of the flap than me, some trials and failures will be.
But I hope the 0.2.1 version should work

from home_assistant_petcare.

retoziegler avatar retoziegler commented on July 21, 2024

I updated to v0.3.0 and now it works fine - the locks are added and work just fine. Thanks!

from home_assistant_petcare.

Danielhiversen avatar Danielhiversen commented on July 21, 2024

Great

from home_assistant_petcare.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.