Control of Siren Entity #25721
Replies: 1 comment 1 reply
-
Yes this is an architectural limitation of HA. The climate HVAC action selector is shown because all climate entities share the same hvac actions, so the dropdown list can be defined without knowing anything about the entity. A service call which has different possible values per entity cannot show them in a dropdown, because at the time the service schema is defined, the possibilities are not known. Similarly you will see There are ways this could be fixed... but it's kind of complex and not something that has been approved yet in discussions. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This probably applies to most Siren devices, but the device I have is a Neo_Coolcam_Siren under HACS integration using Tuya_local.
I can control the siren via a service action request.
However, the tone to be used must be entered manually, so unless you know exactly the tone title, it will not work.
Is there a way the a pull-down menu can be made visible to select from the available list?
Also, if a tone is set as default: true, I would have thought that the service action would also select that too, obviously not.
Any thoughts?
This is a totally different product, but shows that a pull-down menu is actually possible.
Also according HA, a siren tone entity should be controlled by either the key or the value, currently only the string seems to only work, not the integer.

I have raised an issue with the Tuya_local owner and his response was the following;
**This is a general HA issue. The integration has no influence over the UI for services. Since there is an available_tones method in the siren API, I would expect the HA UI to use it, but it must be missing for the service call case.
The default tone is only used if you call siren.turn_on with no arguments, and the siren does not have a "switch" dp, so the only way of turning it on is to select a tone. Neo coolcam siren does have a separate "switch" dp, so I expect it should be able to use that to play the currently selected tone without changing anything.**
Do you agree that this is a HA issue, or is it an integration issue?
Appreciate some guidance here.
Beta Was this translation helpful? Give feedback.
All reactions