-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proposal: Control Teufel WAMP Settings through hassfeld #4
Comments
Hi there, In general I am open for it. Although I think to remember that the settings of your example can be also be set through the already implemented API. Did you happen to have checked for this possibility yet? I am currently quite busy, hence also my late reply. |
Oh, I haven‘t checked for this possibility. How can I check for that? Can you point me towards a way to do that? |
Hi again, So, I walked over the DLNA interfacesand I think what had in mind was <action>
<name>SetDeviceSetting</name>
<argumentList>
<argument>
<name>InstanceID</name>
<direction>in</direction>
<relatedStateVariable>A_ARG_TYPE_InstanceID</relatedStateVariable>
</argument>
<argument>
<name>Name</name>
<direction>in</direction>
<relatedStateVariable>A_ARG_TYPE_SettingName</relatedStateVariable>
</argument>
<argument>
<name>Value</name>
<direction>in</direction>
<relatedStateVariable>A_ARG_TYPE_SettingValue</relatedStateVariable>
</argument>
</argumentList>
</action> Provided by the rendering control service of a speaker: <service>
<serviceType>urn:schemas-upnp-org:service:RenderingControl:1</serviceType>
<serviceId>urn:upnp-org:serviceId:RenderingControl</serviceId>
<SCPDURL>/rendercontrol.xml</SCPDURL>
<controlURL>/RenderingControl/ctrl</controlURL>
<eventSubURL>/RenderingControl/evt</eventSubURL>
</service> However, after tracing the web service used by the mobile app I noticed it is downloading the framework Until we get proven wrong that there is a way to reuse the existing DLNA resp. webservice interfaces, I think your proposal could be a nice improvement to If you're still interested I'd propose to separate the wamp related code in a dedicated |
Yeah, I have done some research in the meantime and also saw that I'll wait for their answer before I continue with the implementation of the WAMP-based client. If it turns out that we cannot use UPNP, I'll give it a try. |
By the way, here's what I see when I subscribe to changes on my Teufel host:
It says that the
I get this:
I tried |
I'd like to propose extending the library so that settings can be changed and subscribed to through
hassfeld
. The Teufel main host exposes a WAMP interface (based on WebSocket) on port 55555, where settings can be changed and subscribed to, even if the setting is changed externally (e.g., from the infrared remote or from the app).I think it would be nice to then expose a service in the Home Assistant integration where settings can be changed, e.g., in order to change the audio input for a specific scene.
I've written a Proof of Concept Script for Managing Teufel Settings through WAMP. It uses the
autobahn
Python library andasyncio
. Here's an example output:I can help with the implementation, but if you agree @B5r1oJ0A9G, I'd like to coordinate the changes with you.
The text was updated successfully, but these errors were encountered: