-
-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[adsb-multi-portal-feeder] Add Aircraft sensors #172
Comments
@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 |
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 Didn't reproduce any unique_id missing issue |
About additional sensors for other feeders:
|
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. |
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 ! |
You may add adsb.fi , launched by some adsbexchange main developpers fired or leave after sold out |
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 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 ? |
https://developers.home-assistant.io/docs/creating_component_index/ does this point to in any right direction? |
Yes this is right direction. 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: |
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. |
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: 5be38c6
@plo53 It looks good, will try to get it integrated and tested! :)
The text was updated successfully, but these errors were encountered: