JonasJoKuJonas / homeassistant-WebUntis

Custom component to access data from Web Untis in Home Assistant
https://community.home-assistant.io/t/webuntis-timetable-in-ha/568273
MIT License
52 stars 12 forks source link

After installation error: JSON data is disabled - activate it in the options #85

Closed sagresbier closed 1 year ago

sagresbier commented 1 year ago

Hello, I wanted to connect my home assistant to webuntis. After some problems with seeing the komma between first_name and last_name, it connected very easy. But now, I the sensors and it says: lesson: JSON data is disabled - activate it in the options device_class: timestamp icon: mdi:table-clock friendly_name: Nic_Fonse_20120812 Next Class

And: day: >- [JSON data is disabled - activate it in the options, JSON data is disabled - activate it in the options, JSON data is disabled - activate it in the options, JSON data is disabled - activate it in the options, JSON data is disabled - activate it in the options, JSON data is disabled - activate it in the options, JSON data is disabled - activate it in the options, JSON data is disabled - activate it in the options, JSON data is disabled - activate it in the options, JSON data is disabled - activate it in the options, JSON data is disabled - activate it in the options, JSON data is disabled - activate it in the options, JSON data is disabled - activate it in the options, JSON data is disabled - activate it in the options, JSON data is disabled - activate it in the options, JSON data is disabled - activate it in the options, JSON data is disabled - activate it in the options, JSON data is disabled - activate it in the options, JSON data is disabled - activate it in the options, JSON data is disabled - activate it in the options] device_class: timestamp icon: mdi:clock-start friendly_name: Nic_Fonse_20120812 Next lesson to wake up

Where am I able to activate JSON data? Kind regards
Sagresbier

JonasJoKuJonas commented 1 year ago

This is intentional and serves the purpose of demonstrating the feature's enablement. However, the bug where the day sensor displays the message multiple times will be addressed in a future update. Enabling JSON generation in the option flow is possible, but it will result in additional API requests. (Devices/ Services -> WebUntis -> configurate -> Backend)

If JSON isn't necessary for your needs, feel free to keep the settings as they are. Utilize the JSON data to access more lesson information, such as for a smart speaker announcement or to display other relevant informations on your dashboard.

sagresbier commented 1 year ago

Thank you. It works like charm.