Having issue with elevation no longer updating

Hi All,
Just getting started with HA and while many things are going smoothly, there’s one very issue that’s driving me nuts.

I noticed my elevation will stop updating and will not resume until I restart the server, and without elevation working correctly, a few of the most basic automations I’m trying to trigger with lights are not executing. Screen Shot 2020-09-07 at 8.30.05 AM

I’m running Hassio on an older mac in virtualbox:

arch x86_64
chassis vm
dev false
docker true
docker_version 19.03.11
hassio true
host_os HassOS 4.12
installation_type Home Assistant OS
os_name Linux
os_version 5.4.56
python_version 3.8.3
supervisor 240
timezone America/Los_Angeles
version 0.114.3
virtualenv false

I don’t see anything in the log file and my config is still pretty basic. I added sun2 thinking it might fix the issue. I added timezone and location to make sure that wasn’t the issue either.

config:


# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:

#error test
logger:
  default: error
  logs:
    requests.packages.urllib3.connectionpool: critical 
    py.warnings: critical
    
#location
homeassistant:
  time_zone: America/Los_Angeles
  latitude: 37.732201
  longitude: -122.482315
  elevation: 46
  unit_system: imperial

#sun
sun:
  monitored_conditions:
    - azimuth
    - elevation
    - max_elevation
    - next_dawn
    - next_dusk
    - next_midnight
    - next_noon
    - daylight
    - next_daylight
    - prev_daylight
    - sunrise
    - sunset
  scan_interval:
    minutes: 1


# Text to speech
tts:
  - platform: google_translate

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

#show date and time
sensor:
  - platform: sun2
    monitored_conditions:
      - sunrise
      - sunset
      - elevation
  - platform: time_date
    display_options:
      - 'time'
      - 'date'
      - 'date_time'
      - 'date_time_utc'
      - 'date_time_iso'
      - 'time_date'
      - 'time_utc'
      - 'beat'

binary_sensor:
  - platform: sun2 #sun2
    monitored_conditions:
      - elevation
      - elevation: 10

I have just trying using sun.sun, but it will also not accurately reflect the current position in terms of the horizon.

This seems like it’s probably something extremely obvious and yet searching around I haven’t been able to find anything about this issue. Hopefully someone has some thoughts to help guide me to a solution.
Thank you,
-Boris

Remove this from your config and restart:

#sun
sun:
  monitored_conditions:
    - azimuth
    - elevation
    - max_elevation
    - next_dawn
    - next_dusk
    - next_midnight
    - next_noon
    - daylight
    - next_daylight
    - prev_daylight
    - sunrise
    - sunset
  scan_interval:
    minutes: 1

The sun integration is included in default config (which you have). Also even if you weren’t using default config monitored condItions is not a valid option.

@tom_l, Thanks for taking a look and replying!

I removed the redundant sun from the config and will monitor to see how it behaves over the next few days.

I’m not super optimistic, because I added that in when I started trying to find solutions and troubleshoot. That’s also why I’m overriding default with

#location
homeassistant:
  time_zone: America/Los_Angeles
  latitude: 37.732201
  longitude: -122.482315
  elevation: 46
  unit_system: imperial

which I don’t think is helping/doing anything different from default.

That is part of onboarding and not part of the default config.

Less the 24 hours, both sun2 and sun.sun have stopped updating (although at different times?)

Sun.sun:

{{ state_attr('sun.sun', 'elevation') }}

10.51

sensor.elevation current state:

57.2

Screen Shot 2020-09-07 at 8.24.02 PM

next_change: 2020-09-08T01:07:20-07:00
unit_of_measurement: °
friendly_name: Elevation
icon: mdi:weather-sunny

current time:

2020-09-08 03:28:17.721008+00:00
2020-09-07 20:28:17.721050-07:00
2020-09-07 20:28:17.721095-07:00
2020-09-07 20:28:17.723191-07:00
UTC
America/Los_Angeles
PDT

log:

2020-09-07 10:55:09 ERROR (Thread-13) [pychromecast.socket_client] [Dad's mini(192.168.1.10):8009] Failed to connect to service Google-Home-Mini-5e6b9a4e202788e91ed93cbb1e7d974f._googlecast._tcp.local., retrying in 5.0s
2020-09-07 10:55:09 ERROR (Thread-12) [pychromecast.socket_client] [Parent's Room(192.168.1.10):32040] Failed to connect to service Google-Cast-Group-7e76b807bc54424c80fbe6612219241c-1._googlecast._tcp.local., retrying in 5.0s
2020-09-07 10:57:16 ERROR (Thread-11) [pychromecast.socket_client] [All Speakers(192.168.1.10):32223] Failed to connect to service Google-Cast-Group-3dc160d082234e55a059438521a66344._googlecast._tcp.local., retrying in 5.0s
2020-09-07 12:16:49 ERROR (SyncWorker_6) [pyvesync.helpers] HTTPSConnectionPool(host='smartapi.vesync.com', port=443): Read timed out. (read timeout=5)
2020-09-07 12:33:23 ERROR (Thread-11) [pychromecast.socket_client] [All Speakers(192.168.1.10):32223] Error reading from socket.
2020-09-07 12:33:23 ERROR (Thread-11) [pychromecast.socket_client] [All Speakers(192.168.1.10):32223] Failed to connect to service Google-Cast-Group-3dc160d082234e55a059438521a66344._googlecast._tcp.local., retrying in 5.0s
2020-09-07 12:57:53 ERROR (Thread-11) [pychromecast.socket_client] [All Speakers(192.168.1.10):32223] Error reading from socket.
2020-09-07 12:57:53 ERROR (Thread-11) [pychromecast.socket_client] [All Speakers(192.168.1.10):32223] Failed to connect to service Google-Cast-Group-3dc160d082234e55a059438521a66344._googlecast._tcp.local., retrying in 5.0s
2020-09-07 13:21:37 ERROR (Thread-11) [pychromecast.socket_client] [All Speakers(192.168.1.10):32223] Error reading from socket.
2020-09-07 14:15:00 ERROR (Thread-11) [pychromecast.socket_client] [All Speakers(192.168.1.10):32223] Error reading from socket.
2020-09-07 14:15:00 ERROR (Thread-11) [pychromecast.socket_client] [All Speakers(192.168.1.10):32223] Failed to connect to service Google-Cast-Group-3dc160d082234e55a059438521a66344._googlecast._tcp.local., retrying in 5.0s
2020-09-07 15:06:36 ERROR (Thread-11) [pychromecast.socket_client] [All Speakers(192.168.1.10):32223] Failed to connect to service Google-Cast-Group-3dc160d082234e55a059438521a66344._googlecast._tcp.local., retrying in 5.0s
2020-09-07 16:30:15 ERROR (Thread-11) [pychromecast.socket_client] [All Speakers(192.168.1.10):32223] Error reading from socket.
2020-09-07 16:30:15 ERROR (Thread-11) [pychromecast.socket_client] [All Speakers(192.168.1.10):32223] Failed to connect to service Google-Cast-Group-3dc160d082234e55a059438521a66344._googlecast._tcp.local., retrying in 5.0s
2020-09-07 16:47:55 ERROR (Thread-11) [pychromecast.socket_client] [All Speakers(192.168.1.12):42547] Error reading from socket.
2020-09-07 16:47:55 ERROR (Thread-11) [pychromecast.socket_client] [All Speakers(192.168.1.12):42547] Failed to connect to service Google-Cast-Group-3dc160d082234e55a059438521a66344._googlecast._tcp.local., retrying in 5.0s
2020-09-07 18:03:31 ERROR (SyncWorker_7) [pyvesync.helpers] HTTPSConnectionPool(host='smartapi.vesync.com', port=443): Read timed out. (read timeout=5)
2020-09-07 18:15:39 ERROR (Thread-11) [pychromecast.socket_client] [All Speakers(192.168.1.10):32223] Error reading from socket.
2020-09-07 18:15:39 ERROR (Thread-11) [pychromecast.socket_client] [All Speakers(192.168.1.10):32223] Failed to connect to service Google-Cast-Group-3dc160d082234e55a059438521a66344._googlecast._tcp.local., retrying in 5.0s
2020-09-07 18:20:39 ERROR (Thread-11) [pychromecast.socket_client] [All Speakers(192.168.1.12):42547] Error reading from socket.
2020-09-07 18:20:39 ERROR (Thread-11) [pychromecast.socket_client] [All Speakers(192.168.1.12):42547] Failed to connect to service Google-Cast-Group-3dc160d082234e55a059438521a66344._googlecast._tcp.local., retrying in 5.0s
2020-09-07 18:20:42 ERROR (Thread-8) [pychromecast.socket_client] [Common Area(192.168.1.12):42133] Error reading from socket.
2020-09-07 18:20:42 ERROR (Thread-8) [pychromecast.socket_client] [Common Area(192.168.1.12):42133] Failed to connect to service Google-Cast-Group-04c2c4d857954a1aa679a4dd9ce4c808-1._googlecast._tcp.local., retrying in 5.0s
2020-09-07 18:33:21 ERROR (Thread-11) [pychromecast.socket_client] [All Speakers(192.168.1.10):32223] Failed to connect to service Google-Cast-Group-3dc160d082234e55a059438521a66344._googlecast._tcp.local., retrying in 5.0s
2020-09-07 18:34:34 ERROR (Thread-11) [pychromecast.socket_client] [All Speakers(192.168.1.12):42547] Error reading from socket.
2020-09-07 18:34:34 ERROR (Thread-11) [pychromecast.socket_client] [All Speakers(192.168.1.12):42547] Failed to connect to service Google-Cast-Group-3dc160d082234e55a059438521a66344._googlecast._tcp.local., retrying in 5.0s
2020-09-07 18:35:50 ERROR (Thread-11) [pychromecast.socket_client] [All Speakers(192.168.1.12):42547] Failed to connect to service Google-Cast-Group-3dc160d082234e55a059438521a66344._googlecast._tcp.local., retrying in 5.0s
2020-09-07 18:59:35 ERROR (Thread-11) [pychromecast.socket_client] [All Speakers(192.168.1.12):42547] Error reading from socket.
2020-09-07 18:59:35 ERROR (Thread-11) [pychromecast.socket_client] [All Speakers(192.168.1.12):42547] Failed to connect to service Google-Cast-Group-3dc160d082234e55a059438521a66344._googlecast._tcp.local., retrying in 5.0s
2020-09-07 19:00:44 ERROR (Thread-11) [pychromecast.socket_client] [All Speakers(192.168.1.12):42547] Failed to connect to service Google-Cast-Group-3dc160d082234e55a059438521a66344._googlecast._tcp.local., retrying in 5.0s
2020-09-07 19:03:13 ERROR (Thread-11) [pychromecast.socket_client] [All Speakers(192.168.1.10):32223] Failed to connect to service Google-Cast-Group-3dc160d082234e55a059438521a66344._googlecast._tcp.local., retrying in 5.0s
2020-09-07 19:31:34 ERROR (Thread-14) [pychromecast.socket_client] [The TV(192.168.1.13):8009] Failed to connect to service Chromecast-e56e0ca811899fb1e74c94089bf12b79-1._googlecast._tcp.local., retrying in 5.0s
2020-09-07 20:14:10 ERROR (Thread-11) [pychromecast.socket_client] [All Speakers(192.168.1.10):32223] Failed to connect to service Google-Cast-Group-3dc160d082234e55a059438521a66344._googlecast._tcp.local., retrying in 5.0s
 

I stepped away from HA for a few months, just did a clean install from the current VM image and still same things :frowning: