FutureTense / keymaster

Home Assistant integration for managing Z-Wave enabled locks
MIT License
238 stars 45 forks source link

Unable to find referenced entities #332

Closed Amishman closed 1 year ago

Amishman commented 1 year ago

Home Assistant 2023.4.4 Supervisor 2023.04.0 Operating System 9.5 Frontend 20230411.0 - latest

Keymaster Version: 0.0.85

RaspPi 4

When I look at my HA logs I see a warning:

Logger: homeassistant.helpers.service
Source: helpers/service.py:757
First occurred: 10:43:42 AM (25 occurrences)
Last logged: 12:04:59 PM

Unable to find referenced entities automation.copy_frontdoor_accesscount_garagedoor_9, automation.copy_frontdoor_accesslimit_garagedoor_9, automation.copy_frontdoor_daterange_garagedoor_9, automation.copy_frontdoor_enabled_garagedoor_9, automation.copy_frontdoor_end_date_garagedoor_9, automation.copy_frontdoor_fri_end_date_garagedoor_9, automation.copy_frontdoor_fri_garagedoor_9, automation.copy_frontdoor_fri_inc_garagedoor_9, automation.copy_frontdoor_fri_start_date_garagedoor_9, automation.copy_frontdoor_mon_end_date_garagedoor_9, automation.copy_frontdoor_mon_garagedoor_9, automation.copy_frontdoor_mon_inc_garagedoor_9, automation.copy_frontdoor_mon_start_date_garagedoor_9, automation.copy_frontdoor_name_garagedoor_9, automation.copy_frontdoor_notify_garagedoor_9, automation.copy_frontdoor_pin_garagedoor_9, automation.copy_frontdoor_reset_garagedoor_9, automation.copy_frontdoor_sat_end_date_garagedoor_9, automation.copy_frontdoor_sat_garagedoor_9, automation.copy_frontdoor_sat_inc_garagedoor_9, automation.copy_frontdoor_sat_start_date_garagedoor_9, automation.copy_frontdoor_start_date_garagedoor_9, automation.copy_frontdoor_sun_end_date_garagedoor_9, automation.copy_frontdoor_sun_garagedoor_9, automation.copy_frontdoor_sun_inc_garagedoor_9, automation.copy_frontdoor_sun_start_date_garagedoor_9, automation.copy_frontdoor_thu_end_date_garagedoor_9, automation.copy_frontdoor_thu_garagedoor_9, automation.copy_frontdoor_thu_inc_garagedoor_9, automation.copy_frontdoor_thu_start_date_garagedoor_9, automation.copy_frontdoor_tue_end_date_garagedoor_9, automation.copy_frontdoor_tue_garagedoor_9, automation.copy_frontdoor_tue_inc_garagedoor_9, automation.copy_frontdoor_tue_start_date_garagedoor_9, automation.copy_frontdoor_wed_end_date_garagedoor_9, automation.copy_frontdoor_wed_garagedoor_9, automation.copy_frontdoor_wed_inc_garagedoor_9, automation.copy_frontdoor_wed_start_date_garagedoor_9 or it is/they are currently not available
Unable to find referenced entities automation.copy_frontdoor_accesscount_backdoor_10, automation.copy_frontdoor_accesslimit_backdoor_10, automation.copy_frontdoor_daterange_backdoor_10, automation.copy_frontdoor_enabled_backdoor_10, automation.copy_frontdoor_end_date_backdoor_10, automation.copy_frontdoor_fri_backdoor_10, automation.copy_frontdoor_fri_end_date_backdoor_10, automation.copy_frontdoor_fri_inc_backdoor_10, automation.copy_frontdoor_fri_start_date_backdoor_10, automation.copy_frontdoor_mon_backdoor_10, automation.copy_frontdoor_mon_end_date_backdoor_10, automation.copy_frontdoor_mon_inc_backdoor_10, automation.copy_frontdoor_mon_start_date_backdoor_10, automation.copy_frontdoor_name_backdoor_10, automation.copy_frontdoor_notify_backdoor_10, automation.copy_frontdoor_pin_backdoor_10, automation.copy_frontdoor_reset_backdoor_10, automation.copy_frontdoor_sat_backdoor_10, automation.copy_frontdoor_sat_end_date_backdoor_10, automation.copy_frontdoor_sat_inc_backdoor_10, automation.copy_frontdoor_sat_start_date_backdoor_10, automation.copy_frontdoor_start_date_backdoor_10, automation.copy_frontdoor_sun_backdoor_10, automation.copy_frontdoor_sun_end_date_backdoor_10, automation.copy_frontdoor_sun_inc_backdoor_10, automation.copy_frontdoor_sun_start_date_backdoor_10, automation.copy_frontdoor_thu_backdoor_10, automation.copy_frontdoor_thu_end_date_backdoor_10, automation.copy_frontdoor_thu_inc_backdoor_10, automation.copy_frontdoor_thu_start_date_backdoor_10, automation.copy_frontdoor_tue_backdoor_10, automation.copy_frontdoor_tue_end_date_backdoor_10, automation.copy_frontdoor_tue_inc_backdoor_10, automation.copy_frontdoor_tue_start_date_backdoor_10, automation.copy_frontdoor_wed_backdoor_10, automation.copy_frontdoor_wed_end_date_backdoor_10, automation.copy_frontdoor_wed_inc_backdoor_10, automation.copy_frontdoor_wed_start_date_backdoor_10 or it is/they are currently not available
Unable to find referenced entities automation.copy_frontdoor_accesscount_garagedoor_10, automation.copy_frontdoor_accesslimit_garagedoor_10, automation.copy_frontdoor_daterange_garagedoor_10, automation.copy_frontdoor_enabled_garagedoor_10, automation.copy_frontdoor_end_date_garagedoor_10, automation.copy_frontdoor_fri_end_date_garagedoor_10, automation.copy_frontdoor_fri_garagedoor_10, automation.copy_frontdoor_fri_inc_garagedoor_10, automation.copy_frontdoor_fri_start_date_garagedoor_10, automation.copy_frontdoor_mon_end_date_garagedoor_10, automation.copy_frontdoor_mon_garagedoor_10, automation.copy_frontdoor_mon_inc_garagedoor_10, automation.copy_frontdoor_mon_start_date_garagedoor_10, automation.copy_frontdoor_name_garagedoor_10, automation.copy_frontdoor_notify_garagedoor_10, automation.copy_frontdoor_pin_garagedoor_10, automation.copy_frontdoor_reset_garagedoor_10, automation.copy_frontdoor_sat_end_date_garagedoor_10, automation.copy_frontdoor_sat_garagedoor_10, automation.copy_frontdoor_sat_inc_garagedoor_10, automation.copy_frontdoor_sat_start_date_garagedoor_10, automation.copy_frontdoor_start_date_garagedoor_10, automation.copy_frontdoor_sun_end_date_garagedoor_10, automation.copy_frontdoor_sun_garagedoor_10, automation.copy_frontdoor_sun_inc_garagedoor_10, automation.copy_frontdoor_sun_start_date_garagedoor_10, automation.copy_frontdoor_thu_end_date_garagedoor_10, automation.copy_frontdoor_thu_garagedoor_10, automation.copy_frontdoor_thu_inc_garagedoor_10, automation.copy_frontdoor_thu_start_date_garagedoor_10, automation.copy_frontdoor_tue_end_date_garagedoor_10, automation.copy_frontdoor_tue_garagedoor_10, automation.copy_frontdoor_tue_inc_garagedoor_10, automation.copy_frontdoor_tue_start_date_garagedoor_10, automation.copy_frontdoor_wed_end_date_garagedoor_10, automation.copy_frontdoor_wed_garagedoor_10, automation.copy_frontdoor_wed_inc_garagedoor_10, automation.copy_frontdoor_wed_start_date_garagedoor_10 or it is/they are currently not available

If I search for "automation.copy_frontdoor_accesscount_garagedoor_9" in automations, it is not found but I am able to find "keymaster_copy_frontdoor_accesscount_backdoor_9". Are they the same thing and how do I have it be found by the helpers/service.py if they are the same?

firstof9 commented 1 year ago

Re-generate your scripts using the keymaster.generate service

Amishman commented 1 year ago

I'm sorry but how do I do that?

firstof9 commented 1 year ago

Click Dev-tools -> Services click YAML mode and enter:

service: keymaster.generate_package
data:
  lockname: frontdoor

just replace "frontdoor" with the name you gave your lock.

image

ChrisHardie commented 1 year ago

Having a similar issue, when I try this I get an error:

Failed to call service keymaster.generate_package. Unable to find service keymaster.generate_package

firstof9 commented 1 year ago

Sounds like the integration isn't loaded.

TheTravelAddict commented 1 year ago

I also get this error; mine has a bit more text; but it is unhelpful: Failed to call service keymaster.generate_package. Unknown error

mattyrc commented 1 year ago

I also get this error; mine has a bit more text; but it is unhelpful: Failed to call service keymaster.generate_package. Unknown error

Same here. Did you ever get this working?

Amishman commented 1 year ago

Sorry, I should have closed this issue a long time ago. Yes, I am no longer having this issue. I did what firstof9 said and it fixed my issue.