Interestingly the reservation number shows up as the name for the AirBnB clients, the name shows up for the VRBO customers.
Is this by design?
Thanks
Craig
Interestingly the reservation number shows up as the name for the AirBnB clients, the name shows up for the VRBO customers.
Is this by design?
Thanks
Craig
Yes, itās by design. AirBnB doesnāt provide the guest name in the calendar details while VRBO does. The most unique ānameā is pulled from the calendar for sensors.
Please note that using a different timezone in RC from the actual system TZ with the lock management portion is not a supported configuration. Itās fine if youāre using it on a āmanagementā instance for information / driving of automations that donāt need to happen at the property, but I do not test, nor do I know exactly what will happen, if you try setting the TZ different on an instance that is trying to control a lock itself as Keymaster doesnāt directly support timezones.
FYI VRBO does support https itself on the calendars. For some reason everyone that has provided me a link to their VRBO itās been an http link. Just add change it to https and things will work correctly.
You do not need to disable the SSL check at all.
Disabling the āignore events that are not standardā means that youāll get events that are blocking events but not actual reservations in your event sensors. That option is because I had several people say they wanted those events to show up.
I have only used this with Guesty before and it provided the AirBnB names so I was not aware of this. AirBnb must provide that info over the API but not the calendar export. I will be switching this one to Guesty art some point so that should take care of the problem.
Thanks Again
Craig
Hey all! Iām not sure what could be going wrong with this setup. I successfully set up two other Home Assistant installations using Keymaster and Rental Control with no issue. However, this third one Iām trying to set up, Iām getting nothing but issues. I feel like I must be doing something stupid, so any help anyone could provide would be greatly appreciated.
points of note:
Screenshots from this setup, into one larger file:
Thanks in advance if you can point out what Iāve done wrong
If you donāt have your logger configured, then I would suggest you make the following changes to your configuration.yaml
file first:
logger: !include logger.yaml
Then add a logger.yaml
file that looks like this:
default: warning
Just do that, this will then allow you to turn on and off logging of components via the UI using the developer tools. So, to turn up the logging to debug level for Rental Control you would do the following:
Logger: Set level
custom_components.rental_control: debug
Your logs should now be filling with a lot of debug spew from the component. When youāre done with that logging change debug
to info
in your data section and will revert to its more normal logging.
I had already done debug logging via an earlier post of yours:
Hereās a pastebin of the log: 2023-06-30 07:09:07.096 WARNING (SyncWorker_0) [homeassistant.loader] We found a - Pastebin.com
And a bit more of the same: 2023-06-30 07:09:07.096 WARNING (SyncWorker_0) [homeassistant.loader] We found a - Pastebin.com
First: Why do you have the calendar refresh set to 0? That seems overly aggressive, yes, Iām aware that I wrote the system to support that, but my experience has been that you shouldnāt need less than a refresh of every 2 minutes.
In my reading through the debug thatās the thing that stands out the most to me. I see that the sensors arenāt picking up because the calendar system is saying itās not ready and I think itās because the refresh of the calendar is happening so frequently. This is just my guess based on the logs though.
I had only done that while experimenting with it while not working. It did the exact same thing (though not as often) when set to the default 2 minutes. Happy to change it and get the logs again, but it was exactly the same minus the frequency. It was still showing that the calendar wasnāt ready.
Edit: hereās the logs again. I went ahead and set it to 5min and itās still showing ācalendar not ready, skipping mapping updateā. Still, though, it does pull the calendar, and I can see it in HAās Calendar tab.
Edit again; My account is new, so Iām not able to respond to the comment below, unfortunately, so hereās my response
Yes, itās new (it was happening the same way previously, which is why I wiped it out again as a test).
The config/packages directory exists, as do the Keymaster and Rental Control subfolders.
Screenshots: HA hosted at ImgBB ā ImgBB
Thanks!
You said this is a new HA setup? Does the config/packages
directory exist? Itās needed for both Keymaster as well as Rental Control. When the integration is configured to manage a lock then the calendar will not become ready if the automations from the integration are not properly installed and loaded. They will automatically get installed into the config/packages
directory as long as you leave the default for the configuration files alone.
In particular there is a startup integration that needs to fire. It will automatically fire when HA is restarted and it also fires when a rental_control_refresh
event is fired which happens automatically when you reconfigure / install the integration. That particular automation sends data about what keymaster has configured back into rental control which informs the mapper where itās allowed to direct codes.
@tykeal youāre going to quickly realize that I am not very good at this,
I want to create an Automation Condition that checks to see if a guest is checking out today. Iāll use that condition to do other stuff. Can you help me with writing that condition? Iām not good at many things, including dealing with attributes.
Edit---------------------------------------------------------------------------
I was able to do this:
platform: template
sensors:
next_airbnb_guest_leave_date:
friendly_name: āNext Airbnb Guest Leave Dateā
entity_id: sensor.rental_control_airbnb_event_0
value_template: ā{{ state_attr(āsensor.rental_control_airbnb_event_0ā, āendā) }}ā
next_vrbo_guest_leave_date:
friendly_name: āNext VRBO Guest Leave Dateā
entity_id: sensor.rental_control_carriage_house_event_0
value_template: ā{{ state_attr(āsensor.rental_control_carriage_house_event_0ā, āendā) }}ā
Now Iām trying to create a condition that checks if either one of these dates is today
Eric
The start and end attributes are datetime objects. If you want to reduce the date to just the the day of leaving then something like this:
value_template: "{{ as_timestamp(state_attr(āsensor.rental_control_airbnb_event_0ā, āendā)) | timestamp_custom("%Y-%m-%d") | as_timestamp() }}"
This will end up providing you a unix date object (not datetime) which is effectively the day @ 00:00 (midnight)
If youāre trying to write an automation that uses that to do stuff for ātodayā then have it trigger on your sensor changing and then do the evaluation of if it needs to do anything in a choose object or in the condition. The reason being you canāt have now()
be used in a trigger but you can use it in the conditions or actions section.
To do a comparison in your conditions you could do something like (totally untested):
{% if ( as_timestamp(now()) | timestamp_custom("%Y-%m-%d") ) == states("sensor.next_airbnb_guest_leave_date") %}true{% else %}false{% endif %}
Thank you so very much
Hey @tykeal, sorry that I couldnāt post a response earlier. I was still ānewā as far as this was concerned, so I had to edit my reply above to update.
For as another update, Iāve moved this HA setup into service, along with one lock Iām trying out (just in case my internet connection / firewall was somehow blocking something or causing a problem).
It still wasnāt working in the new location, so I deleted the Keymaster & Rental Control setups and started again.
Keymaster is still working completely normally, and Rental Control is still doing the same thing as before. If you check out the screenshot in my edited last message, you can see that the proper directories exist.
As far as the rental_control_refresh, I see the āRental Control - Update (name of setup) - startupā that fires upon startup, and I see the event type: ārental_control_refreshā, so that seems to be working/correct, except that itās not actually working.
Iām happy to give you access to the installation if youād like to check it out.
@gabestover DM me details. I donāt know if Iāll be able to solve it for you either, but I can take a look. Iām not really seeing anything in the logs that give me an idea as to whatās going on though.
Thanks - just sent you details!
@gabestover ok, so I figured out the problem. The primary issue was that you had named your Rental Control a pure numeric. The automations that feed the data from Keymaster back into RC were having a problem with this. Version 0.9.1 has been released with a fix for this. You will need to do the following:
Thanks so much for figuring out this was due to only having numbers in the name!
Unfortunately, the 0.9.1 update still didnāt work for me, using the same ānumbers-onlyā name as before.
I ended up changing the lock name itself, and the names in Keymaster and Rental Control to start with a word, and everything is now working perfectly.
If you re-read my message above, youāll see that I said you needed to either make a change to your configuration to get it to rebuild the files or remove and re-add it to force it to rebuild the files.
Either one of those would do it, just upgrading to 0.9.1 would not have. That being said, changing from a numeric only name also will fix it thatās essentially the first option, but also gets around the bug.