I discovered this issue when trying to pull the TTN data into Home Assistant.
All I got was the meta data (ātimeā and ārawā) as attributes.
I donāt have any programming skills but I really want to get my modules sensor data into our home automation system and would really appreciate any help.
Your Swagger screen shot just cuts off your authorization key - can you repost it so we can see all of it, weāll also need your bank account & sort code, credit card number, expiry, CVV, home address, date of birth etc. This will ensure you get maximum attention from many individuals on the internet going forward
If I understood you correctly, the Swagger API browser shows the raw data as one line (āDecodeDataObjā) rather than individual fields and this is not a problem.
So I assume my issue is actually with my Home Assistant.
I have revisited my Home Assistant configuration but I still only get the ārawā data field as an attribute.
sensor:
# The Things Network
- platform: thethingsnetwork
device_id: dalemodule
values:
battery: V
I am all out of ideas
Reading on forums, it seems like most other Home Assistant users see individual fields broken out in their Swagger.
Iām out of ideas. If you or anyone has successfully pulled RAK7405 values into Home Assistant via TTN I would appreciate any advice.
Cheers
P.S. Thanks for the heads up about almost exposing my API key. I have changed it just in case. Good on you!
Hi,
From the device data in Swagger, data are shown in object. This way may not be suitable for you. I think what you need is to list the data separately. I have modified the script, please clone the newest script from github.
I have successfully updated by payload decoder on the TTN console and now I see individual values in Swagger. Thank you so much, this is excellent customer service.
Unfortunately, I am still having troubles achieving my goal of getting these values into Home Assistant.
Thank you Taylor. Your updated payload decoder will really enhance the Home Assistant integration as Home Assistant likes to define the unit of measurement.
Unfortunately, I still cannot get the values from TTN to integrate into Home Assistant. The TTN values appear in Home Assistant as āentitiesā (so I believe the integration is working) but the values still show as āUnknownā. The log files are clean so I donāt really know where to turn next.
My integration randomly started working (without any specific change by me) and then randomly stopped working. Itās currently not working and I have no idea why
I suspect the RAK decoder code was perfect all along. Sorry for wasting your time.
Reliably integrating RAK Lora and Home Assistant creates unlimited possibilities!
I will keep you posted on my troubleshooting.
I was considering running my own local Chirpstack server but no-one has written a ChirpStack/Home Assistant integration yet and I donāt have the skills to do it myself.
Great news. It appears that TTNās API were having troubles recently, which almost certainly explained many of my initials issues. It has now been online for a few days and RAK Lora data is flowing through to my Home Assistant perfectly.
As an initial experiment, Iām using the RAK 7205 temperature sensor to report outdoor temperature to Home Assistant. I graph the outdoor temperature against temperature in my office (Zigbee sensor) and have an automation that turns on/off our heater (using a wifi smart switch) automatically.
It is wonderful to be able to blend the various different IOT technologies we use across our property.
I am very tempted to build my own Lora server (as our internet bandwidth is very limited) but I donāt think anyone has written a ChirpStack integration for Home Assistant yet. I wish I could write one for everyone but sadly I do not have the skills
Good job! You are the first man to to step on the Moon !.Could you please write a document about your creative job with Home Assistant and TTN firstlyļ¼We hope others can use it like you.
And I will study how to use ChirpStack to connect Home Assistant and help you write another document for everyone.
I will document my steps this weekend for everyone.
Now that I have the integration working, Iām looking for a wide range of outdoor sensors (e.g. buttons, water level, soil moisture, open/close).
I would love to make them myself (using the RAK sensor module and independently sourced sensors) but I have no idea where to start as I donāt have any programming skills. Iāve looked around at other vendors but no-one elseās documentation is a beginner-friendly as yours.
Do you have any insights into when your new range of pre-made sensors will be available for testing or purchase?
If you were able to write a simple Chirp Stack integration for Home Assistant, it would be awesome. It could be a great way to raise awareness of the RAK brand and products.
So far, we havenāt provided more sensor demos besides those supported on decoded scripts. In the latest stage, we are improving our module to make it more stable and efficient. This will take two to three months. After that, we will start to provide more sensor demos.
I have installed the Home Assistant and tested it. I found that it can discovery device from mqtt. And Chirpstack can also publish and subscribe mqtt topic. In theory, it works from Chirpstack to Home Assistant. Next, I will find whether it works or not.
You are the second person to suggest MQTT today. I have not worked with MQTT before (Im current using the storage/http API). However, from what I have read/watched today, MQTT itās a very straightforward and robust approach. This is an excellent idea and I am very grateful for the suggestion.
May I ask, how did you point your RAK sensor to your MQTT server?
Did you configure that within your Lora server (TTN? or ChirpStack?) or the Lora Gateway?
If it was the Lora gateway then I might need to upgrade my RAK gateway as the RAK developer documentation appears to suggest that my RAK Gateway does not support MQTT publishing.
Unfortunately, the HA > TTN HTTP integration has been down for most the week. I understand TTN are doing upgrades to their V3 stack but I really want to try MQTT as reliability is key.
Would you be kind enough to describe the steps you took to point TTN MQTTās service to your MQTT broker? Im struggling to figure it out on my own