Comments (2)
Hi, devices are detected as switches because they are switches: I cannot imagine a way to understand automatically they are connected to a door instead of a light.
What you want to achieve can be probably obtained by proper configuration of items in openHAB i.e. obtain a pushbutton behavior. See the openHAB forum and search for threads like this:
https://community.openhab.org/t/push-button-instead-of-switch/30937
Since this does not appear to be an issue related to the binding, I will close this issue after some time.
M
from openhab-addons.
Here's a way to manage this situation:
Step 1:
Create a Push Button:
.sitemap:
Switch item=FF_LivingRoom_Door label="Entry Door" mappings=[ON="Open"] visibility=[FF_LivingRoom_Door_State == OFF]
Switch item=FF_LivingRoom_Door label="Entry Door" mappings=[ON="Close"] visibility=[FF_LivingRoom_Door_State == ON]
.items:
Switch FF_LivingRoom_Door "Entry Door" <frontdoor> (FF_LivingRoom) ["Lighting"] {channel="", autoupdate="false"}
Switch FF_LivingRoom_Door_State "Entry Door" <frontdoor> (FF_LivingRoom) ["Lighting"] {channel=""}
Remember to link both Items to the door in the PaperUI Things section.
Step 2:
Create a rule to close the door after you press the open button (otherwise the door lock will stay open)
import org.openhab.core.library.types.*
import org.openhab.core.persistence.*
import org.openhab.model.script.actions.*
// Global Variables
rule "Chiusura Porta"
when
Item FF_LivingRoom_Door changed
then
if ((FF_LivingRoom_Door.state == ON)) {
sendCommand(FF_LivingRoom_Door, OFF)
}
end
Hope this helps.
from openhab-addons.
Related Issues (20)
- Feature Install Error esh-io-transport-upnp HOT 2
- Randomly disconnection HOT 4
- [Feature] Support predicted blind positions for long press of wall switches and scenario commands
- Update to 2.5 issue HOT 5
- [Feature] Support for Video door entry
- COMMUNICATION_ERROR is the binding expired? HOT 16
- after upgrade to M4 I started to notice connection problems HOT 1
- [Feature] Master clock capability HOT 3
- [Thermo feature]: add support for heating valves HOT 3
- [Zigbee] set thing OFFLINE if it does not respond to command or REFRESH
- Zigbee: Enable device background discovery
- Zigbee: Enable USB gw background discovery
- BUS: Enable device background discovery
- The release 2.5.0 m2 could be expired? HOT 5
- [feature] Support for backup connection - openwebnet binding HOT 4
- Zigbee USB gateway (stick) stops receiving messages HOT 2
- ZigBee USB Gateway serial port configuration via .things file HOT 1
- Read shutter position from OWN status message
- Status after reboot HOT 1
- ZigBee Add serial port reconnection logic 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 openhab-addons.