Giter VIP home page Giter VIP logo

swemail's People

Contributors

dsorlov avatar ehn avatar matfouc avatar thulin82 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

swemail's Issues

Number of days left not translated

Just found and installed this plugin. It's downloading the values correctly, but not translating it to how many days left so what I see in the sensor is not "Today", I see 0. Tested both swedish and english UI, also can see the translation files in the folder structure so they are in there. Any good way of troubleshooting and making the translations to fly? One of the pictures for PostNord sensor and one for City mail so therefor the number 0 don't align so you don't wonder..

image image

Calendar

It would be great to get the delivery dates in the HA calendar.

Sensors not updating

The last couple of days I noticed that there seems to be some issue with the sensors not updating properly.

Sometimes the entities are shown as unavailable but after reloading values are populated. However they don't reflect the values I get when manually looking at postnord for my postal code.

I can't see any errors in the log file.

Screenshot 2024-03-26 at 08 55 56 Screenshot 2024-03-26 at 08 52 09

Since the delivery changed it's nit working any more.

Since 2 May when the rest of Sweden changed to delivery every second Day, HA still tell me I should recive post all weekdays.
This is for postal code 78465.
I tried it for my parents adress 61833, they have had the system for while, and there it works.

Home Assistant 2023.6.0 upgrades Python to 3.11. Breaks loading.

In the beta released for the 2023.6.0 version of Home Assistant, this module can no longer be loaded. Please see trace below.

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/loader.py", line 813, in get_component
    ComponentProtocol, importlib.import_module(self.pkg_path)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/config/custom_components/swemail/__init__.py", line 20, in <module>
    @asyncio.coroutine
     ^^^^^^^^^^^^^^^^^
AttributeError: module 'asyncio' has no attribute 'coroutine'

Not working to set up

I have tried both 1.0.3 and 1.0.2 using HACS but keep getting issues...

Screenshot_20220311-184153.png
Screenshot_20220311-184217.png

Is this repo tested with latest version of Home Assistant? (which I use)

Not displaying days left in natural language after 2023.4

Prior to Home Assistant release 2023.4 the sensor displayed the time remaining to next delivery in natural language, e.g. "Tomorrow" or "In three days". After updating Home Assistant to 2023.4 (and since 2023.4.1) only the number of remaining days is shown, e.g "4".

Errors in logs

This error shows up repeatedly in the logs:

2022-02-21 06:23:50 ERROR (MainThread) [custom_components.swemail.sensor] value = 0

No title or icon in integrations page

On all other integrations there is an icon and a title, don't know if there is anything wrong or if this integration just doesn't have any ?

Here is what it looks like in my system:
image

Detected integration that called async_setup_platforms instead of awaiting async_forward_entry_setups; this will fail in version 2023.3

Logger: homeassistant.helpers.frame
Source: helpers/frame.py:77
First occurred: 17:04:41 (1 occurrences)
Last logged: 17:04:41

Detected integration that called async_setup_platforms instead of awaiting async_forward_entry_setups; this will fail in version 2023.3. Please report issue to the custom integration author for swemail using this method at custom_components/swemail/init.py, line 53: hass.config_entries.async_setup_platforms(entry, PLATFORMS)

Got -1 as a state

Hi! Sometimes I get -1 as a state. I'm guessing it's a bug of some sort.
Swemail err
.

Ordförbättring

Tänker att när den säger att det är 1 dag kvar till postutdelning borde det inte vara bättre att det heter att posten kommer i morgon, samt när det står 0 dagar kvar så borde det heta att posten kommer idag

[not an issue] 2 delivery carriers but 3 sensors in HA ?

Hi,

Thanks for your work ! I've submitted a separate PR to add a french translation just in case it could be useful for some others :).
Anyway besides that, i have a question, i see 3 sensors in HA despite there are 2 carriers so far (Postnord and Citymail).
Since the integration is still very recent and documentation is clear but short, i'm wondering the purpose of the 3rd sensor.

  • Is it correct that it simply aggregates both carriers and indicates the next scheduled delivery, independantly of which carrier it is ?

Cheers,
Matthieu

Invalid Config

My integration says invalid configuration an it does not loss

Log Details (ERROR)

Logger: homeassistant.setup
Source: setup.py:215
First occurred: 09:00:24 (1 occurrences)
Last logged: 09:00:24

Setup failed for custom integration swemail: Unable to import component: Exception importing custom_components.swemail

This error originated from a custom integration.

Logger: homeassistant.loader
Source: custom_components/swemail/init.py:20
Integration: Svensk Postutdelning (documentation, issues)
First occurred: 09:00:24 (1 occurrences)
Last logged: 09:00:24

Unexpected exception importing component custom_components.swemail
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/loader.py", line 813, in get_component
ComponentProtocol, importlib.import_module(self.pkg_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1206, in _gcd_import
File "", line 1178, in _find_and_load
File "", line 1149, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/config/custom_components/swemail/init.py", line 20, in
@asyncio.coroutine
^^^^^^^^^^^^^^^^^
AttributeError: module 'asyncio' has no attribute 'coroutine'

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.