absolutely not needed, never indicated that in post linked above
it has to be put in a bridge.conf file that youâll save in /share/mosquitto folder in HA If itâs properly done, when you restart the mqtt addon youâll see in logs that it connects the bridge ! something similar to that:
[10:56:31] INFO: Starting mosquitto MQTT broker...
1684400191: Loading config file /share/mosquitto/bridge.conf
1684400191: Warning: Bridge dragino-ttn-bridge using insecure mode.
1684400191: Warning: Bridge boutons-inputs using insecure mode.
1684400191: Warning: Bridge tracker-tbeam-ttn-bridge using insecure mode.
1684400191: Warning: Bridge trackit-ttn-bridge using insecure mode.
2023-05-18 10:56:31: Warning: Mosquitto should not be run as root/administrator.
[10:56:32] INFO: Successfully send discovery information to Home Assistant.
[10:56:32] INFO: Successfully send service information to the Supervisor.
in terms of the file location that im going to add - i can find 2 share directories. one is /share and is currently empty, and the other share directory is - usr/share/
do I put the /mosquitto/bridge.conf file in the first directory that is currently empty?
[06:44:02] INFO: Starting mosquitto MQTT broker...
1684493042: Loading config file /share/mosquitto/bridge.conf
1684493042: Warning: Bridge hampttnlora using insecure mode.
2023-05-19 06:44:02: Warning: Mosquitto should not be run as root/administrator.
[06:44:03] INFO: Successfully send discovery information to Home Assistant.
[06:44:03] INFO: Successfully send service information to the Supervisor.
now the question is - where should the ttn data be visible? in the ttn integration or in the mqtt integration? I was thinking in the mqtt integration - and just log into the local mqtt broadcast - as I thought this would be bridged to show everything? unless im mis understanding.
Itâll show up through the mqtt broker (forget the TTN integration and best to disable it
I strongly suggest to use an app such as MQTT Snooper on your phone (Android only here sorry) and you connect it at TTN with same credentials you used for the bridge and itâll allow you to âseeâ messages sent by TTN and know how to decode it
You then use JSON logic to extract data you want ! Here are some few examples for a button, a VOC sensor and get battery level of sensor
Have you done the configuration of the sensor ? as you should be able also to setup it to use different names for different sensors which makes it easier to extract data ! What sensor are you using ?
Hi there, looks like an awesome add-on, thank you!
Can sometime tell me if this would work for an on-premise version of Things Stack Community version? It appears the add-on needs the Storage Integration component which isnât available in the community version. I tried to re-compose my environment but throws an error:
user@stack:~/the-things-stack$ sudo docker-compose run --rm stack storage-db init
Creating the-things-stack_stack_run ⌠done
The storage integration is not available in the open-source version of The Things Stack.
For more information, see Storage Integration | The Things Stack for LoRaWAN
error:cmd/ttn-lw-stack/commands:storage_integration_not_available (Storage Integration not available)
I guess the only alternative is through MQTT bridge or perhaps Node-Red to pull/push data?
Nope itâs not done for on-premise version and I would strongly suggest in all matters to interface it using MQTT and not integration as integration is not really great and works not really great too ! MQTT is a little more work but so much more reliable
For me, MQTT was very easy. I installed the MQTT client (not broker). I connected it to host eu1.cloud.thethings.network port 1883, with username and api-key.
Then in my configuration.yaml I defined the mqtt sensors like this:
Logger: homeassistant.helpers.entity
Source: helpers/entity.py:702
First occurred: 08:13:58 (15 occurrences)
Last logged: 08:48:58
Entity sensor.xxx_yyyyyy_bat_mv (<class 'custom_components.thethingsnetwork.TTN_client.TtnDataSensor'>) is using self.async_update_ha_state(), without enabling force_update. Instead it should use self.async_write_ha_state(), please create a bug report at https://github.com/angelnu/home_assistant_thethingsnetwork/issues
Jep, I will take a look and see if it is an easy change. The integration is working for me so, combined with little time, does not motivate me to spend time on it. So fixing warnings or doing the polishing to replace the non working old integration in HA is low in the prio list as contributing to HA might likely require some code refactoring.
But when people raised PRs I tried to reply/merge quickly. Perhaps I should try to get it into HACS firstâŚ
Iâm a newbee in HA and Iâm stuck here
I followed the instructions of @angelnu and installed HACS and there in Integrations âThe Things Network (new version)â
Then I tried to configure
â Settings->Devices&services->TheThingsNetwork->CONFIGURE->devices
and I get the message âNo devices available to configureâ
in TTN the Storage Integration is enabled (only the slider changed) and the uplink payload formatter is set to CayenneLPP
Iâm trying to get data from a TTN-Node and see in the console the data