Giter Site home page Giter Site logo

homeassistant_timetree_calendar's Introduction

"# homeassistant_timetree_calendar"

Create your Token here: https://timetreeapp.com/developers/personal_access_tokens

After that, replace the 'YOURAPIKEY' in Calendar.py with your Token

Everything else should be Fine.

For Changing the TimeZone, start Date, search for self._entities = timetree_object.get_upcoming_events(self._calendar.id, 'Europe/Berlin', 7).data in Calendar.py and change it accordingly

Create a Folder with the name: timetree in Config/custom_components paste the files into it.

Dont forget to add:

calendar:

  • platform: timetree

To your Configuration.yaml

Credits: TimeTree SDK (https://pypi.org/project/timetree-sdk/) has been created by Shoya Shiraki under the MIT License

homeassistant_timetree_calendar's People

Contributors

micha95 avatar

Stargazers

 avatar tomaschku avatar 蜜柑ルーペ avatar  avatar  avatar

Watchers

 avatar  avatar

homeassistant_timetree_calendar's Issues

After solution from issues #1 AttributeError: 'EventAttributes' object has no attribute 'start_at'

Used the zip file and added them into now the error is.

AttributeError: 'EventAttributes' object has no attribute 'start_at'

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 514, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 709, in async_device_update
raise exc
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/timetree/calendar.py", line 74, in update
self.data.update()
File "/usr/src/homeassistant/homeassistant/util/init.py", line 192, in wrapper
result = method(*args, **kwargs)
File "/config/custom_components/timetree/calendar.py", line 148, in update
start = entity.attributes.start_at
AttributeError: 'EventAttributes' object has no attribute 'start_at'

TypeError: __init__() got an unexpected keyword argument 'location_lat'

Hi,

i am trying to use your time tree intergation.

I have done a git clone in my custom_componet directory, changed my api_key and activated in in my configuration.yaml.

But I alway get this Error

Logger: homeassistant.components.calendar
Source: custom_components/timetree/timetree_sdk/models/base.py:11
Integration: Kalender (documentation, issues)
First occurred: 18:21:13 (1 occurrences)
Last logged: 18:21:13

Error while setting up timetree platform for calendar
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
await asyncio.shield(task)
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/timetree/calendar.py", line 38, in setup_platform
EntitiesCalendarDevice(
File "/config/custom_components/timetree/calendar.py", line 55, in init
self.data = EntitiesCalendarData(
File "/config/custom_components/timetree/calendar.py", line 114, in init
self._entities = timetree_object.get_upcoming_events(self._calendar.id, 'Europe/Berlin', 7).data
File "/config/custom_components/timetree/timetree_sdk/api.py", line 83, in get_upcoming_events
return EventResponse.new_from_json_dict(response.json())
File "/config/custom_components/timetree/timetree_sdk/models/base.py", line 11, in new_from_json_dict
return cls(**d)
File "/config/custom_components/timetree/timetree_sdk/models/responses.py", line 152, in init
self.data = [self.get_or_new_from_json_dict(it, EventDataResponse) for it in data]
File "/config/custom_components/timetree/timetree_sdk/models/responses.py", line 152, in
self.data = [self.get_or_new_from_json_dict(it, EventDataResponse) for it in data]
File "/config/custom_components/timetree/timetree_sdk/models/base.py", line 18, in get_or_new_from_json_dict
return cls.new_from_json_dict(data)
File "/config/custom_components/timetree/timetree_sdk/models/base.py", line 11, in new_from_json_dict
return cls(**d)
File "/config/custom_components/timetree/timetree_sdk/models/responses.py", line 164, in init
self.attributes = self.get_or_new_from_json_dict(attributes, EventAttributes)
File "/config/custom_components/timetree/timetree_sdk/models/base.py", line 18, in get_or_new_from_json_dict
return cls.new_from_json_dict(data)
File "/config/custom_components/timetree/timetree_sdk/models/base.py", line 11, in new_from_json_dict
return cls(**d)
TypeError: init() got an unexpected keyword argument 'location_lat'

Any Ideas what I can do?

Error while setting platform: timetree as calendar

Hi!

Unfortunately, when I tried to install the "add-on", I got this error message:

2021-10-23 19:36:33 ERROR (MainThread) [homeassistant.components.calendar] Error while setting up timetree platform for calendar
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
await asyncio.shield(task)
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/timetree/calendar.py", line 38, in setup_platform
EntitiesCalendarDevice(
File "/config/custom_components/timetree/calendar.py", line 55, in __init__
self.data = EntitiesCalendarData(
File "/config/custom_components/timetree/calendar.py", line 114, in __init__
self._entities = timetree_object.get_upcoming_events(self._calendar.id, 'Europe/Berlin', 7).data
File "/config/custom_components/timetree/timetree_sdk/api.py", line 83, in get_upcoming_events
return EventResponse.new_from_json_dict(response.json())
File "/config/custom_components/timetree/timetree_sdk/models/base.py", line 11, in new_from_json_dict
return cls(**d)
File "/config/custom_components/timetree/timetree_sdk/models/responses.py", line 152, in __init__
self.data = [self.get_or_new_from_json_dict(it, EventDataResponse) for it in data]
File "/config/custom_components/timetree/timetree_sdk/models/responses.py", line 152, in <listcomp>
self.data = [self.get_or_new_from_json_dict(it, EventDataResponse) for it in data]
File "/config/custom_components/timetree/timetree_sdk/models/base.py", line 18, in get_or_new_from_json_dict
return cls.new_from_json_dict(data)
File "/config/custom_components/timetree/timetree_sdk/models/base.py", line 11, in new_from_json_dict
return cls(**d)
File "/config/custom_components/timetree/timetree_sdk/models/responses.py", line 164, in __init__
self.attributes = self.get_or_new_from_json_dict(attributes, EventAttributes)
File "/config/custom_components/timetree/timetree_sdk/models/base.py", line 18, in get_or_new_from_json_dict
return cls.new_from_json_dict(data)
File "/config/custom_components/timetree/timetree_sdk/models/base.py", line 11, in new_from_json_dict
return cls(**d)
TypeError: __init__() got an unexpected keyword argument 'location_lat'

Can you please help with it?

Thanks!

Error Massage in LOG

Hi together,
Hi Micha,

I get this error massage in server log and the calendar is not available.

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform await asyncio.shield(task) File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run result = self.fn(*self.args, **self.kwargs) File "/config/custom_components/timetree/calendar.py", line 34, in setup_platform calendars = timetree_object.get_calendars() AttributeError: 'str' object has no attribute 'get_calendars'

For additional information, I have more calendars on timetree configuration. Is there any point what I must consider?

Calendar not pulling data

I've a issue that My calendar is not pulling in any data from the actual TimeTree Calendar.
It did add all the calendars I have but in Home-Assistant the calendar is empty even tho there are a lot of events in the actual calendar.

I don't get any error logs so I can't find the actual issue.
Personal Token is also getting used and has all the rights.
image

Hope you can help me out on this one

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.