anotherjulien / OWNd

OpenWebNet daemon
GNU Lesser General Public License v3.0
30 stars 11 forks source link

Add support for WHO=7 messages #1

Closed ste94pz closed 3 years ago

ste94pz commented 3 years ago

WHO_7.pdf

Hi, could you add the support for sending messages to the multimedia system (WHO=7)? I need to send the message to enable the camera of the entryphone (*7*0*WHERE##). Thank you! :)

anotherjulien commented 3 years ago

Do you need to use this with the Home Assistant integration? If so, your best bet short term will be to use the 'send_message' service to send any arbitrary message.

ste94pz commented 3 years ago

Do you need to use this with the Home Assistant integration?

If so, your best bet short term will be to use the 'send_message' service to send any arbitrary message.

Yes, I tried but it doesn't send it. It gives me this error if I try to send *7*0*4000##

image image

anotherjulien commented 3 years ago

Ah yes, I see. Let me work on that, I'll let you know when I've made progress!

anotherjulien commented 3 years ago

Provisions have been added for most if not all command messages, even those not yet with built-in helpers. This is available in OWNd 0.7.22, the requirement is present in the latest MyHome integration master but can also be added manually in manifest.json.

ste94pz commented 3 years ago

Hi, sorry to bother you, but it still doesn't work, I get the same error. I think that the problem is the message beeing marked as an OWNEvent, instead you added the who=7 definitions in the OWNCommand class.

anotherjulien commented 3 years ago

The problem is that for status, command and event are exactly the same, so I cannot differentiate between them. However, it makes no sense (I think...) to send event from Home Assistant, so I fixed this problem in the integration's newly published master, by parsing the input as a command directly, rather than a generic message.