tobof / openhab-addons

The next-generation open Home Automation Bus (openHAB)
Eclipse Public License 2.0
39 stars 30 forks source link

armed-channel should be a switch item? #52

Closed tofverstedt closed 7 years ago

tofverstedt commented 7 years ago

I believe that the armed type for example motion sensors is a command sent from the controller to the sensor.

Suggestion: Change armed-channel to a switch item so it is possible to send armed commands to sensors.

andreacioni commented 7 years ago

Hi @tofverstedt

I've never used armed-channel. However, could your question be related to an open issue: #24? We are discussing it right now 😉

tofverstedt commented 7 years ago

@andreaceoni I have sen that issue but i believe it is two different questions.

24 is related to how an incoming command is handled in openhab.

My issue, which in my opinion is a bug, is related to how an outgoing command can be enabled. The armed message type is sent from the controller to the sensor. It is not possible to sendCommand to a contact item in openhab.

tobof commented 7 years ago

I agree with @tofverstedt and will fix it!