dsorlov / swemail Goto Github PK
View Code? Open in Web Editor NEWSwedish Post Delivery integration for Home Assistant
License: MIT License
Swedish Post Delivery integration for Home Assistant
License: MIT License
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..
It would be great to get the delivery dates in the HA calendar.
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.
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.
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'
Från idag den 6/3 har vi fått nytt postnummer , men integrationen visar bara det nya som otillgängligt!
Söker man på postnumret https://www.postnord.se/vara-verktyg/sok-postnummer-och-adress?countryCode=SE&query=54964
det gick tidigare under 54164
så vad kan vara fel?
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".
This error shows up repeatedly in the logs:
2022-02-21 06:23:50 ERROR (MainThread) [custom_components.swemail.sensor] value = 0
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)
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
Svensk Postutdelning doesn't work in HA with native IPv6 address.
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.
Cheers,
Matthieu
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'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.