Home Assistant Community Add-on: AppDaemon 4

That is not how you change ports with add-ons.

@sagittcyber You can change the port of the AppDaemon add-on by going to the add-on setting page, there is a “Network” section there, where you can assign/adjust the port of AppDaemon.

As for the Traccar add-on, that thing uses a wide range of ports (and therefore runs on the host network and does not have a Network section in the add-on settings). Which can be adjusted in the configuration that is stored in /config/traccar.xml. Please refer to the Traccar documentation on how to configure that.

You need to either change AppDaemon or Traccar, a port simply cannot be used twice.

1 Like

with hassio i can only change host port, but not container port. this is a big problem

didnt know that @frenck. thx. for telling.
is there a part in your addon readme, that tells people that the addon does that different then in our docs?

if not it might be helpfull.

What are you referring to with that comment, since we have no clue if you are talking about Traccar or AppDaemon at this point…

Please be a bit more descriptive on your problem, what you did to try to resolve it OR how you would like to resolve it. That way we can guide you. Right now, we have a bunch of posts from you, where it is really hard to follow where your mind is going or is at right now.

This is how all add-on work and is clearly visible on the add-on page. Including port descriptions.

ok didnt know its clearly visible.

i just think that in a readme how to configure the appdaemon addon, all things that need to be done different then what the docs from the programs say should be mentioned.

if it would have been there i would have pointed to it :wink:

On the page u installed and run the add-ons from it’s there, you really need to read those pages

:tada: Release v0.2.0

Full Changelog

This is a general maintenance release.

:hammer: Changes

  • :books: Update add-on documentation to use new YAML configuration format
  • :hammer: Updates for upstream Supervisor changes
  • :hammer: Re-branding
  • :sparkles: Add access to serial ports
  • :arrow_up: Upgrades add-on base image to v7.0.2
  • :hammer: Update community forum links

Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work:
https://github.com/sponsors/frenck or https://patreon.com/frenck

1 Like

I just logged an issue.

2020-02-24 10:22:05.673472 INFO AppDaemon: AppDaemon Version 4.0.1 starting
2020-02-24 10:22:05.673740 INFO AppDaemon: Python version is 3.8.1
2020-02-24 10:22:05.673898 INFO AppDaemon: Configuration read from: /config/appdaemon/appdaemon.yaml
2020-02-24 10:22:05.674063 INFO AppDaemon: Added log: AppDaemon
2020-02-24 10:22:05.674238 INFO AppDaemon: Added log: Error
2020-02-24 10:22:05.674438 INFO AppDaemon: Added log: Access
2020-02-24 10:22:05.674602 INFO AppDaemon: Added log: Diag
2020-02-24 10:22:05.692897 WARNING AppDaemon: ------------------------------------------------------------
2020-02-24 10:22:05.693119 WARNING AppDaemon: Unexpected error during run()
2020-02-24 10:22:05.693283 WARNING AppDaemon: ------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/appdaemon/__main__.py", line 117, in run
    self.AD = ad.AppDaemon(self.logging, loop, **appdaemon)
  File "/usr/lib/python3.8/site-packages/appdaemon/appdaemon.py", line 188, in __init__
    self.sched = scheduler.Scheduler(self)
  File "/usr/lib/python3.8/site-packages/appdaemon/scheduler.py", line 54, in __init__
    self.init_sun()
  File "/usr/lib/python3.8/site-packages/appdaemon/scheduler.py", line 187, in init_sun
    self.location = astral.Location((
AttributeError: module 'astral' has no attribute 'Location'
2020-02-24 10:22:05.695393 INFO AppDaemon: Previous message repeated 1 times
2020-02-24 10:22:05.695532 INFO AppDaemon: AppDaemon Exited
[10:22:05] INFO: Starting AppDaemon...

I am running the addon with default settings but it keeps repeating that error…

:tada: Release v0.2.1

Full Changelog

This is a bug fix release, causing AppDaemon not to start in v0.2.0.

:hammer: Changes

  • :ambulance: Pin astral package to 1.10.1

Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work:
https://github.com/sponsors/frenck or https://patreon.com/frenck

1 Like

:ok_hand: thank you.

1 Like

Hey there, I’ve just noticed that there may be a problem with leap year :smiley:


2020-02-29 09:19:42.429382 WARNING AppDaemon: ------------------------------------------------------------

2020-02-29 09:19:43.434292 WARNING AppDaemon: ------------------------------------------------------------

2020-02-29 09:19:43.437744 WARNING AppDaemon: Unexpected error in scheduler loop

2020-02-29 09:19:43.440381 WARNING AppDaemon: ------------------------------------------------------------

2020-02-29 09:19:43.442770 WARNING AppDaemon: Traceback (most recent call last):

  File "/usr/lib/python3.8/site-packages/appdaemon/scheduler.py", line 421, in loop

    next_entries = self.get_next_entries()

  File "/usr/lib/python3.8/site-packages/appdaemon/scheduler.py", line 335, in get_next_entries

    next_exec = datetime.datetime.now(pytz.utc).replace(year=3000)

ValueError: day is out of range for month

It’s been fixed in appdaemon. Just need @frenck to update the version used in the add-on

1 Like

:tada: Release v0.2.2

Full Changelog

This is a general maintenance release.

:hammer: Changes

  • :arrow_up: Updates appdaemon to v4.0.2 (#15)

Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work:
https://github.com/sponsors/frenck or https://patreon.com/frenck

Thanks @frenck

1 Like

No problem! Sorry for the delay… I sleep from time to time :wink:

2 Likes

All sorted, Thank you Frenck.

1 Like

I was trying to sort it myself, I managed to edit the scheduler.py file but everytime the container restarts it seems it overwrites it again. At least we’ve learned something new, that centennial leap years only happen every on years divisible by 400 so 3000 is out of favour

Thank you @frenck :wink:

1 Like

:tada: Release v0.2.3

Full Changelog

This is a general maintenance release.

:hammer: Changes

  • :arrow_up: Updates appdaemon to v4.0.3 (#18)
  • :arrow_up: Upgrades python3 to 3.8.2-r0
  • :fire: Remove now obsolete astral pinning on the add-on end

Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work:
https://github.com/sponsors/frenck or https://patreon.com/frenck