-
Notifications
You must be signed in to change notification settings - Fork 413
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
Possibility of Request for Orion Grid Connect Outdoor Siren? #198
Comments
It may be possible, but I will need more information about the device. Best is to send the local dps mapping which is output to the Home Assistant log as a warning message when you try to add it, and information from iot.tuya.com developer portal about the device attributes, specifically the info under Cloud / API_ Explorer / Device Control / the last "Get Device Specification Attribute" listed. Also, while you are in there, the product_id which you can get from General Devices Management / Get Device Information - but a lot of the information under there is private (local key, device id, owner id, latitude, longitude) so don't post it all. |
See below for the information: Get Device Information
Device Specification Attribute
Log Information
|
Hi, that is not the correct Device Specificaton Atrribute, you need to use the last one listed under "Device Control", as that is the only function in the entire API that lists the dp_id field needed for local protocol use. |
Apologies, here is the correct one
|
It looks like HomeAssistant has support for a siren platform, which supports setting volume, tone and duration. So I guess that is where the limitation of the official cloud-based tuya integration support is coming from. I don't currently have siren support, but it looks quite simple to add. As this integration supports multiple entities per device, adding the alarm state to this will be a matter of adding a select entity (also sensors for the battery, charge state and tamper alarm - or is the tamper alarm another setting in the Tuya app?) |
Actually it looks like the alarm state could be emulated as tones. Maybe that would be better as it keeps everything in the standard alarm entity, so might work better in the UI. |
I think keeping it all together in the alarm entity would work better in the UI. As for the tamper alarm, that is simply a state in the app that is either true or false based on whether someone has opened the cover on the siren |
Siren supports volume, duration and tone, turn on and turn off (not implemented, as initial device does not appear to support direct control). It doesn't contain any standard attributes, however where available we return the standard values as extra attributes so they can be read as well as set via the turn_on service. - Support Orion Grid Connect outdoor siren using it, along with a battery sensor and charge and tamper binary sensors. Issue #198
This was released in the latest version. But I am not sure if I understood the way this device works correctly, so please feed back on how it is working compared to the Tuya app. |
My guess is, to turn on, tone should be set to one of these - sound (for sound only), light (For light only) or sound+light (for both sound and light) to turn off, tone should be set to normal |
You should be able to test that, as the tone is exposed in the siren entity. Unless there is a specific siren card, you may need to call a service from the developer console to test. |
My interpretation of the available controls when writing the config was that the siren could only be triggered by a hardware input, which is supposed to connect to the alarm controller, and the settings available via the network were just for configuration. But if the Tuya app is able to trigger the siren then there must be some way, and the presence of "normal" in the tone settings did raise some questions in my mind. |
The selling point of this siren is that it can be triggered using an event from another Tuya device.. like a door contact sensor or camera. So it allows to trigger remotely from the app. |
So to test, you should be able to go into Developer Tools, on the Services tab, and run the siren.turn_on service with a tone argument ("sound", "light" or "sound+light"). If that works, to turn it off, you may need to run the turn_on service again with a tone argument of "normal" rather than using the turn_off service. |
Brilliant! It works!! I was trying to trigger from services before but without specifying the tone! with tone, it works perfectly to trigger and disable. :) |
In response to this report, I now know how to make this siren work, so in the next release, "normal" will disappear from the available tones list, and be replaced with a working turn_off. turn_on without a tone argument and the toggle service will select sound by default. |
- Use the tone attribute as the primary on/off for the siren, as that is the way it appears to work. - Add support for a `default` value to be marked in a mapping. Use this when siren.turn_on is called with no tone value and the siren is not already on. - Treat "off" tone specially, use it to turn_off instead of handling in turn_on - map "normal" to "off" in the Orion siren config, mark sound+light as default. Issue #198
The siren should now fully function in 0.19.0, including the turn_off and toggle service calls, and turn_on with or without arguments.. |
Note that 0.19.0 and 0.19.1 had some issues that might make it difficult to judge whether this is working correctly. And I found a further problem after 0.19.2 which probably stops the turn_off command from functioning, so if you want to check it, please use the main development branch (can be installed from HACS by selecting "Redownload" from the tuya-local details page, main should be at the bottom of the list of versions available - it will nag you to upgrade after that, but you can ignore it until a later version than 0.19.2 is available). |
I'm wondering if it is possible to get support for the Orion grid connect outdoor siren, specifically ability to change the alarm_state. If you connect this device through the official tuya integration you only get ability to change volume and alarm time. Adding through this integration gives a device not supported message.
Happy to provide any information / details as required
The text was updated successfully, but these errors were encountered: