Comments (2)
As you pointed out there is no direct way of watching for change events with the current implementation, but maybe the polling setup we have is enough?
{
"gpio": {
"enabled": true,
"only_send_updates": true,
"ports": [
{
"port": 7,
"interval": 1000,
"channel": "motion_sensor"
}
],
"qos": 1,
"retain": true
}
}
This config checks the GPIO port in the configured interval and then sends an MQTT message if the state changed.
If this doesn't fit your use case could you help me understand why?
from room-assistant.
This is supported in the GPIO component of release 1.0.0, it now listens for changes by default instead of polling.
from room-assistant.
Related Issues (20)
- Home/Room Assistant cannot find my Samsung S20+ device HOT 2
- Track room-assistant companion app via ESPHome HOT 3
- iOS Room Assistant App is not keeping the BLE alive for detection HOT 36
- Bluetooth stops working on multiple pi's after some time, reset fails HOT 15
- BLE input via MQTT integration
- room-assistant stopped working on Home Assistant HOT 9
- Pi Zero W service restarting constantly HOT 7
- Is room-assistant no longer maintained? HOT 8
- BLE ID changes with every restart - identification via peripheral designation possible?
- rpi4 with bullseye doesn't get mdns to work with room-assistant HOT 3
- Compatibility with other HomeAutomation Systems HOT 1
- Room Assistant wont start HOT 1
- - error - HomeAssistantService: connect ECONNREFUSED HOT 1
- Stuck on installing on raspzero HOT 2
- Please make it possible (and clearly document) to reduce loglevel from INFO to WARNING.
- Room Assistant hanging HOT 6
- Home assistant complaints about MQTT entity names HOT 27
- Missing devices (working in HomeAssistant iBeacon integration) HOT 3
- TP-Link Bluetooth adapter doesn't properly work on RPi 4 on HAOS HOT 1
- MQQT is connected but shows now devices HOT 1
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 room-assistant.