Comments (2)
@kylerw the retain
flag works great for a HA only restart but if you want to get your states back on a mqtt server restart you should consider using the persistence
flag.
The following is info for mosquitto as that is what I use for my mqtt brokers:
Commands for Setting Up Retained Directory With Proper Permissions
mkdir /mqtt/data/retained/
chown mosquitto:mosquitto /mqtt/data/retained/
Then add the following to your mosquitto.conf
file:
persistence true
persistence_location /mqtt/data/retained/
autosave_interval 10
autosave_on_changes true
You can read more about autosave_interval
and autosave_on_changes
at https://mosquitto.org/man/mosquitto-conf-5.html
Maybe another thing that @stjohnjohnson could add to the readme. I also had another suggestion on the mqtt bridging setup that I posted over at https://community.home-assistant.io/t/howto-using-owntracks-with-auth-and-the-mqtt-bridge-for-smartthings/3126/14?u=strangedesign13
from smartthings-mqtt-bridge.
I'm all for the periodic pushing. You can also turn on the retain
flag in MQTT so that it always keeps the last value.
I'll take a look at the PR, sorry for the delay.
from smartthings-mqtt-bridge.
Related Issues (20)
- New Smartthings restful API HOT 5
- Device Network ID collision with another DTH HOT 5
- Socket error on client <unknown>, disconnecting
- Continued support HOT 1
- trying to get this running as a service in windows 10 powershell HOT 1
- Unsure where to add IP / port / MAC to the IDE settings? HOT 2
- Set process.title HOT 1
- SmartApp triggers ok, but bridge.deviceNotification(json) not triggered HOT 1
- Issue during Docker installation with "-v /opt/mqtt-bridge:/config" HOT 1
- Questions... questions... and more questions HOT 1
- Release of new Bridge based on smartthings-mqtt-bridge HOT 5
- MQTT on different port HOT 4
- Python HOT 3
- Docker Exits when starting HOT 1
- the bridge works but nothing on HA HOT 1
- Cant uninstall anything .. HOT 3
- config.yml file does not exist
- New Smartthings app/platform HOT 8
- Config.yml help HOT 1
- No HUB, but using ST cloud
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from smartthings-mqtt-bridge.