Open MaxWinterstein opened 1 year ago
@plo53 first quick feedback - it works! ❤️
Currently drafting the release, maybe get it done before the toddler ends his nap 🤞
a) Can you add some uuid to the sensor? Maybe someone want's to e.g. overwrite the icon or stuff
b) In the mood to add sensors to the other feeders as well? 😉
Can be tested with just released version 1.27.0
🥳
this sensor did have a unique id
b) Why not. Need first to register feeding to them, and see what can be done depending on openness of their implementation
Just installed 1.27.0 Everything working fine
Didn't reproduce any unique_id missing issue
About additional sensors for other feeders:
fr24 : restfull api 8754 already there
radarbox : I got trapped into the rbfeeder "segmentation fault" issue within x86 platform. Can't investigate further
planefinder : it's impossible to create a new sharecode, port 30054 isn't exposed by Thom-x image
Good news:
New sensors for Opensky and Planefinder in release hassio-sensors v1.1.0
Awesome ❤️
Updated along #174
@plo53 if you could add a max range sensor too?
In local feeders, I may have (or not at all) limited history of aircraft postions.
So depends by what do you mean by max range.
For adsbexchange and adsb.fi, I can retrieved the outlines. From them I can compute the max distance from the receiver location.
For opensky and planefinder, I have at least the aircraft positions, I can compute the farthest over time.
for example flight radar gives it as max range
so max range will give us an idea about our antenna placement etc etc over time.
yes indeed, this is the max range for one day history
I prototyped a sensor to track the "farthest" aircraft over time:
Then using a Statistics Graph card like bellow, we should get the same Max Range per day as FR24:
Let us wait for some days to see ...
yes indeed, this is the max range for one day history
I prototyped a sensor to track the "farthest" aircraft over time:
Then using a Statistics Graph card like bellow, we should get the same Max Range per day as FR24:
Let us wait for some days to see ...
yes wanted this sensor, we can use it for any graph, per hour, per day or per week etc.
I am using this custom history graph, which creates bar graph on it's own
Which feeder are you using ?
PS: Alex's History explorer card is awesome !
Which feeder are you using ?
PS: Alex's History explorer card is awesome !
All feeders all mentioned in this screenshot and radarbox.
You may add adsb.fi , launched by some adsbexchange main developpers fired or leave after sold out
You may add adsb.fi , launched by some adsbexchange main developpers fired or leave after sold out
it is already added.
hassio-sensors v1.1.2-1 released, to be reviewed by Max
Update released - works fine. Thanks @plo53 !
Would it be possible to add the sensors to the Home Assistand Addon? Not sure how that via supervisor works, only know it from mqtt site. Rel https://github.com/MaxWinterstein/toogoodtogo-ha-mqtt-bridge/issues/21
So the sensors will be listed at the addon page?
Update released - works fine. Thanks @plo53 !
Would it be possible to add the sensors to the Home Assistand Addon? Not sure how that via supervisor works, only know it from mqtt site. Rel MaxWinterstein/toogoodtogo-ha-mqtt-bridge#21
So the sensors will be listed at the addon page?
that will simplify it a lot. just click Add to Dashboard and you are done. instead of finding each and every sensor.
Yeah sure. Need to figure out how to integrate the sensors list in the addon page
@MaxWinterstein : can you explain how you integrated your sensors into the device ?
I presume the sensor list in the device is a predifined list by HA, that needs to be handle by the addon.
Here ie the version is not found:
https://developers.home-assistant.io/docs/creating_component_index/
does this point to in any right direction?
Yes this is right direction. This is developping a custom integration defining a device and its sensors logic.
This is outside of the addon itself.
Wouldn't it be possible to just add device info to the payload, so it will be created and all sensors will be assigned to this device?
The hassio REST API doesn't provide any device settings method.
The "ideal" solution would be an associated custom integration, but I am not in favor because then your add-on would no longer be independent.
I will investigate if replacing REST API communication by MQTT can provide much device control
At least device autodiscovery would work in that case 🤔
Btw, I saw this error while fiddling around:
Traceback (most recent call last):
File "/usr/local/share/planefinder/planefinder_max-range.py", line 28, in <module>
ulat=radians(float( options['MLAT_EXACT_LAT'] ))
ValueError: could not convert string to float: 'HOMEASSISTANT_LATITUDE'
I named this a 'magic variable', as it will be replaced by some script:
No deeper search here as just on coffee break, but i guess sourcing my bash script on top of the sensors might do the job: https://github.com/MaxWinterstein/homeassistant-addons/blob/main/adsb-multi-portal-feeder/Dockerfile#L25
In fact my script is directly reading /data/options.json and I am expecting exact lat/lon float values configured in the addon
If you want, I can inject this via my dockerfile, just like the others.
Initialy I selected to use EXACT_LAT/LON (MLAT) to enable more precise range computing, guessing the site HOMEASSISTANT_LAT/LON may be more approximative. Anyway, I can update my script to retrieve the values from your env variables. At the moment, to get rid of the traceback, define EXACT_LAT/LON in the addon config.
PS: I noted it in the Readme. But your are right, especially for feeder that doesn't enable MLAT, this can trouble users.
SURVEY : I have implemented in my local dev version a one day tracking of aircrafts seen by my receiver. Let me know if it brings interest ?
Would it be possible to add the sensors to the Home Assistand Addon? Not sure how that via supervisor works, only know it from mqtt site. Rel MaxWinterstein/toogoodtogo-ha-mqtt-bridge#21 So the sensors will be listed at the addon page? that will simplify it a lot. just click Add to Dashboard and you are done. instead of finding each and every sensor.
I am progressing reworking the adsb sensors from hassio to mqtt with device discovery.
Question : how to manage backward compatibility ?
Created to continue the discussion that is slightly lost here: https://github.com/MaxWinterstein/homeassistant-addons/commit/5be38c6d740f4645bb49719c5497db1b6d72f36c
@plo53 It looks good, will try to get it integrated and tested! :)