I am getting a bunch of these in the log:
2020-09-12 09:18:10 ERROR (SyncWorker_31) [custom_components.average.sensor] Unable to find an entity “sensor.tasmoadmin_memory”
2020-09-12 09:18:10 ERROR (SyncWorker_34) [custom_components.average.sensor] Unable to find an entity “sensor.ssh_web_terminal_memory”
2020-09-12 09:18:10 ERROR (SyncWorker_6) [custom_components.average.sensor] Unable to find an entity “sensor.configurator_memory”
2020-09-12 09:18:10 ERROR (SyncWorker_52) [custom_components.average.sensor] Unable to find an entity “sensor.samba_memory”
All or these are setup like this:
- platform: rest
resource: http://10.90.11.100:8126/container/addon_a0d7b954_sonweb/stats
name: Tasmoadmin Memory
scan_interval: 900
value_template: '{{ (value_json.memory_stats.usage /1024/1024) |round(2) }}'
unit_of_measurement: 'MB'
- platform: average
name: tasmoadmin_memory_average
entities:
- sensor.tasmoadmin_memory
duration:
days: 2
So a rest sensor uses hadockermon to see how much memory every docker container is using and then the average (custom_component) averages that over the last 2 days. All of this is working perfectly but it seems that the average sensor is being created before the rest sensor has populated… but WTH how is this average then working at all if it is getting this error?
Like I said its all working correctly… just seems to be a timing issue and this should most likely be info or warning not an error in the log?