zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Siren outdoor SMaBiT (Bitron Video) AV2010/29A

Open samuprofe opened this issue 5 years ago • 17 comments

Siren outdoor SMaBiT (Bitron Video) AV2010/29A https://manuals.smabit.eu/av2010_29a.html

Interesting device since there are few (or no) outdoor sirens that support ziggbee. Following the steps of https://www.zigbee2mqtt.io/how_tos/how_to_support_new_devices.html and doing multiple tests I have managed to connect to zigbee2mqtt by adding the following to devices.js (in home assistant):

      {   
		zigbeeModel: ['AV2010/29A'], 
		model: 'AV2010/29A', 
		vendor: 'SMaBiT', 
		description: 'SMaBiT Zigbee Outdoor Siren', 
		supports: 'warning',
        fromZigbee: [fz.battery, fz.ias_contact_alarm_1, ],
        toZigbee: [tz.warning],
        meta: {disableDefaultResponse: true, configureKey: 1},
        configure: async (device, coordinatorEndpoint, logger) => {
            const endpoint = device.getEndpoint(1);
            await reporting.bind(endpoint, coordinatorEndpoint, ['genPowerCfg']);
            await reporting.batteryPercentageRemaining(endpoint);
			await reporting.batteryVoltage(endpoint);
        },
        exposes: [e.warning(), e.battery(), e.contact(), e.battery_low(), e.tamper()],
	
	},

I have also discovered the following:

topic: 'zigbee2mqtt /friendly name/ set'

//Turn on the siren and lights, duration can be indicated in seconds. The strobe parameter must always be false for the siren to turn on:
payload: '{"warning": {"duration": 3, "strobe": false}}'

//5 short beeps. If the alarm is on, it stops:
payload: '{"warning": {"duration": 0}}'
payload: '{"warning": {"level": "medium"}}'

//5 long beeps. If the alarm is on, it stops:
payload: '{"warning": {"level": "low"}}'
payload: '{"warning": {"level": "high"}}'

//1 short beeps. If the alarm is on, it stops:
payload: '{"warning": {"level": "very_high"}}'

I have not got:

  • Deactivate tamper contact (to change the battery for example)
  • Get the battery % (I do not know if it is possible, at the moment it says that the battery is 0% and that battery_low is false with new batteries) Any clues how to try to do it?

I don't know if what I put in the configure section is correct (I have copied it from other devices) in case someone can review it before adding it to the documentation.

Thanks.

database.db entry of the device {"id":29,"type":"EndDevice","ieeeAddr":"0x00124b00207f60d6","nwkAddr":16557,"manufId":0,"manufName":"SMaBiT","powerSource":"Battery","modelId":"AV2010/29A","epList":[1,4],"endpoints":{"1":{"profId":260,"epId":1,"devId":1027,"inClusterList":[0,3,1280,1282],"outClusterList":[0],"clusters":{"genBasic":{"attributes":{"modelId":"AV2010/29A","manufacturerName":"SMaBiT","powerSource":3,"zclVersion":1,"appVersion":11,"hwVersion":0,"dateCode":"20170421 "}},"ssIasZone":{"attributes":{"iasCieAddr":"0x00124b001949c1df","zoneState":1}}},"binds":[{"cluster":1,"type":"endpoint","deviceIeeeAddress":"0x00124b001949c1df","endpointID":1}],"configuredReportings":[],"meta":{}},"4":{"profId":260,"epId":4,"devId":1026,"inClusterList":[],"outClusterList":[25],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":11,"hwVersion":0,"dateCode":"20170421 ","zclVersion":1,"interviewCompleted":true,"meta":{"configured":1},"lastSeen":1613384672295}

what I get from the device: ac_status: false battery_low: false contact: true enrolled: false linkquality: 49 restore_reports: false smoke: false supervision_reports: true tamper: false trouble: false

samuprofe avatar Feb 15 '21 11:02 samuprofe

Deactivate tamper contact (to change the battery for example)

Do you know if this is possible via the original gateway? I've never seen it before for a Zigbee device

Get the battery % (I do not know if it is possible, at the moment it says that the battery is 0% and that battery_low is false with new batteries)

I don't think it's possible for this the device should have genPowerCfg (number 1) in the inClusterList but it's not. I think it only support battery_low.

Question: why did you use ias_contact_alarm_1 ? This device doesn't provide contact (like a window/door sensor)?

Koenkk avatar Feb 15 '21 17:02 Koenkk

Deactivate tamper contact (to change the battery for example)

Do you know if this is possible via the original gateway? I've never seen it before for a Zigbee device

I think so from what it says in the manual: "Sabotage alert: Opening the siren connected to the smart home system triggers a sabotage alarm. To prevent the alarm from triggering, whether on installation, make sure the tamper contact (4) plug is not connected to the main board, or remove the siren from the configuration of your Smart Home system before opening it."

Get the battery % (I do not know if it is possible, at the moment it says that the battery is 0% and that battery_low is false with new batteries)

I don't think it's possible for this the device should have genPowerCfg (number 1) in the inClusterList but it's not. I think it only support battery_low.

ok, thank you

Question: why did you use ias_contact_alarm_1 ? This device doesn't provide contact (like a window/door sensor)?

I don't really know, I must have copied it from some other siren or device. I understand that I have to delete it.

So, the devices.js should look like this?

      {   
	zigbeeModel: ['AV2010/29A'], 
	model: 'AV2010/29A', 
	vendor: 'SMaBiT', 
	description: 'SMaBiT Zigbee Outdoor Siren', 
	supports: 'warning',
        fromZigbee: [fz.battery, ],
        toZigbee: [tz.warning],
        meta: {disableDefaultResponse: true, configureKey: 1},
        configure: async (device, coordinatorEndpoint, logger) => {
            const endpoint = device.getEndpoint(1);
            await reporting.bind(endpoint, coordinatorEndpoint, ['genPowerCfg']);
            await reporting.batteryPercentageRemaining(endpoint);
	    await reporting.batteryVoltage(endpoint);
        },
        exposes: [e.warning(), e.battery_low(), e.tamper()],
	
	},

samuprofe avatar Feb 15 '21 17:02 samuprofe

I think so from what it says in the manual: "Sabotage alert: Opening the siren connected to the smart home system triggers a sabotage alarm. To prevent the alarm from triggering, whether on installation, make sure the tamper contact (4) plug is not connected to the main board, or remove the siren from the configuration of your Smart Home system before opening it."

You will have to sniff traffic with the original gateway to support this (https://www.zigbee2mqtt.io/how_tos/how_to_sniff_zigbee_traffic.html)

I've added the config. Can you check if it works correctly?

Changes will be available in the latest dev branch in a few hours (https://www.zigbee2mqtt.io/how_tos/how-to-switch-to-dev-branch.html)

Koenkk avatar Feb 15 '21 18:02 Koenkk

It works with dev version. Thank you.

I don't have the original gateway, sorry.

I'll add the information on the documentation.

Regards and thanks again.

samuprofe avatar Feb 16 '21 08:02 samuprofe

Ehi! thanks for integrating this! I've received it today and it works as described in @samuprofe messages. Are there any updates on how to use it at full extent (tone level, tone type for example)?

mgabetta avatar Jul 06 '21 13:07 mgabetta

Ehi! thanks for integrating this! I've received it today and it works as described in @samuprofe messages. Are there any updates on how to use it at full extent (tone level, tone type for example)?

I'm glad it works. I only found out what I have already commented and put in the documentation. But if you discover something please comment here.

Greetings.

samuprofe avatar Jul 09 '21 09:07 samuprofe

Hello, thanks for your work, I've received mine last week and it works well to alert. But the attributes tamper and battery_low are always N/A. Is it the same for you ?

image

Rockman18 avatar Jul 15 '21 15:07 Rockman18

image yes, unfortunatelly!

mgabetta avatar Jul 15 '21 15:07 mgabetta

Do you think that trying to reach out the manufacturer to have some detail on how the siren is supposed to be used by BRIDGE/Gateway could be useful?

mgabetta avatar Jul 16 '21 07:07 mgabetta

We can have a try, it could consider some benefit to be on open source platforms to sell more devices, as it is the only zigbee siren on the market as far as I know.

Rockman18 avatar Jul 20 '21 08:07 Rockman18

@Koenkk : In the logs for this device we can sometime find : No converter available for 'AV2010/29A' with cluster 'ssIasZone' and type 'commandStatusChangeNotification' and data '{"extendedstatus":0,"zonestatus":20}'

Any idea what it could be ?

Edit : zonestatus could be 16 or 20

Edit 2 : Other recurrent error MAC transaction expired error 2021-07-22 23:37:56: Publish 'set' 'warning' to 'Sirène extérieure' failed: 'Error: Command 0x00124b00232efe96/1 ssIasWd.startWarning({"startwarninginfo":49,"warningduration":180}, {"sendWhenActive":false,"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (Data request failed with error: 'MAC transaction expired' (240))' debug 2021-07-22 23:37:56: Error: Command 0x00124b00232efe96/1 ssIasWd.startWarning({"startwarninginfo":49,"warningduration":180}, {"sendWhenActive":false,"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (Data request failed with error: 'MAC transaction expired' (240)) at ZStackAdapter.<anonymous> (/app/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js:353:27) at Generator.next (<anonymous>) at fulfilled (/app/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js:24:58) info 2021-07-22 23:37:56: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"Publish 'set' 'warning' to 'Sirène extérieure' failed: 'Error: Command 0x00124b00232efe96/1 ssIasWd.startWarning({\"startwarninginfo\":49,\"warningduration\":180}, {\"sendWhenActive\":false,\"timeout\":10000,\"disableResponse\":false,\"disableRecovery\":false,\"disableDefaultResponse\":false,\"direction\":0,\"srcEndpoint\":null,\"reservedBits\":0,\"manufacturerCode\":null,\"transactionSequenceNumber\":null,\"writeUndiv\":false}) failed (Data request failed with error: 'MAC transaction expired' (240))'","meta":{"friendly_name":"Sirène extérieure"},"type":"zigbee_publish_error"}' error 2021-07-22 23:38:39: Publish 'set' 'warning' to 'Sirène extérieure' failed: 'Error: Command 0x00124b00232efe96/1 ssIasWd.startWarning({"startwarninginfo":55,"warningduration":10}, {"sendWhenActive":false,"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (Data request failed with error: 'MAC transaction expired' (240))' debug 2021-07-22 23:38:39: Error: Command 0x00124b00232efe96/1 ssIasWd.startWarning({"startwarninginfo":55,"warningduration":10}, {"sendWhenActive":false,"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (Data request failed with error: 'MAC transaction expired' (240)) at ZStackAdapter.<anonymous> (/app/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js:353:27) at Generator.next (<anonymous>) at fulfilled (/app/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js:24:58) info 2021-07-22 23:38:39: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"Publish 'set' 'warning' to 'Sirène extérieure' failed: 'Error: Command 0x00124b00232efe96/1 ssIasWd.startWarning({\"startwarninginfo\":55,\"warningduration\":10}, {\"sendWhenActive\":false,\"timeout\":10000,\"disableResponse\":false,\"disableRecovery\":false,\"disableDefaultResponse\":false,\"direction\":0,\"srcEndpoint\":null,\"reservedBits\":0,\"manufacturerCode\":null,\"transactionSequenceNumber\":null,\"writeUndiv\":false}) failed (Data request failed with error: 'MAC transaction expired' (240))'","meta":{"friendly_name":"Sirène extérieure"},"type":"zigbee_publish_error"}'

Rockman18 avatar Jul 22 '21 16:07 Rockman18

We can have a try, it could consider some benefit to be on open source platforms to sell more devices, as it is the only zigbee siren on the market as far as I know.

I have received an answer from SMaBiT Customer Service

What I wrote was:

The support is only partial because it is possible to operate only a limited number of actions, as described in the "Controlling" section here https://www.zigbee2mqtt.io/devices/AV2010_29A.html#controlling

I just received an answer, unfortunately I'm not enough skilled in Z2M to understand if it is useful... Here's what SMaBiT Customer Service replied:

When looking at the Controlling section, the description is actually quite confusing. The siren - just as also the smoke detector 24A which can be used as a indoor siren - uses the WD cluster (warning device) which allows you to control all the functions of the siren as explained in the "exposed" section. In case your request is still of interest, could you please - considering what I have written about the WD cluster - describe more in detail what you need and I will pass this on to development? Can anybody help?

mgabetta avatar Sep 01 '21 07:09 mgabetta

@mgabetta : Before your message i've commited a new converter for AV2010/29A on the dev branch. I think battery and tamper will work. If you are on the dev branch, try to pair your device again. If not, this should be released at the start of september and deployed really soon after.

Edit : The release has been done. Just update !

Rockman18 avatar Sep 01 '21 15:09 Rockman18

Great! I will try it ASAP. Regarding "Warning", is there any update? I'm referring to the possibility of tuning "mode", "level", "strobe_level" etc. as they are meant to be controlled and not as reported in https://www.zigbee2mqtt.io/devices/AV2010_29A.html#controlling (which seems as a workaround)

mgabetta avatar Sep 02 '21 07:09 mgabetta

I think i understand why our device is strange : https://github.com/Koenkk/zigbee2mqtt/issues/8310

Rockman18 avatar Sep 02 '21 22:09 Rockman18

@Rockman18 any updates on this? especially related to issue #8310

mgabetta avatar Oct 01 '21 14:10 mgabetta

A fix was published at the beginning of September and for home assistant the release occurs once a month so it will be released during the next days.

Rockman18 avatar Oct 01 '21 16:10 Rockman18