Skip to content
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

Configuring of Osram Smart+ Motion is failing #3416

Closed
Kosta-Github opened this issue Apr 23, 2020 · 7 comments
Closed

Configuring of Osram Smart+ Motion is failing #3416

Kosta-Github opened this issue Apr 23, 2020 · 7 comments

Comments

@Kosta-Github
Copy link
Contributor

Bug Report

Trying to pair and configure an Osram Smart+ Motion sensor ()

What happened

In the logs I can see this error:

Successfully interviewed '0x000d6f000f77e5ed', device has successfully been paired
zigbee2mqtt    | 2020-04-23T19:46:23.327811354Z zigbee2mqtt:info  2020-04-23 21:46:23: Device '0x000d6f000f77e5ed' is supported, identified as: OSRAM SMART+ Motion Sensor (AC01353010G)
zigbee2mqtt    | 2020-04-23T19:46:23.331025044Z zigbee2mqtt:info  2020-04-23 21:46:23: Configuring '0x000d6f000f77e5ed'
zigbee2mqtt    | 2020-04-23T19:46:23.339906219Z zigbee2mqtt:info  2020-04-23 21:46:23: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"pairing","message":"interview_successful","meta":{"friendly_name":"0x000d6f000f77e5ed","model":"AC01353010G","vendor":"OSRAM","description":"SMART+ Motion Sensor","supported":true}}'
zigbee2mqtt    | 2020-04-23T19:46:33.381895961Z zigbee2mqtt:error 2020-04-23 21:46:33: Failed to configure '0x000d6f000f77e5ed', attempt 1 (Error: ConfigureReporting 0x000d6f000f77e5ed/1 genPowerCfg([{"attribute":"batteryPercentageRemaining","minimumReportInterval":3600,"maximumReportInterval":62000,"reportableChange":0}], {"timeout":6000,"manufacturerCode":null,"disableDefaultResponse":true}) failed (Error: Status 'UNSUPPORTED_ATTRIBUTE')
zigbee2mqtt    | 2020-04-23T19:46:33.382123773Z     at Endpoint.<anonymous> (/app/node_modules/zigbee-herdsman/dist/controller/model/endpoint.js:326:23)
zigbee2mqtt    | 2020-04-23T19:46:33.382186117Z     at Generator.next (<anonymous>)
zigbee2mqtt    | 2020-04-23T19:46:33.382221534Z     at fulfilled (/app/node_modules/zigbee-herdsman/dist/controller/model/endpoint.js:5:58))
zigbee2mqtt    | 2020-04-23T19:46:44.653493286Z zigbee2mqtt:info  2020-04-23 21:46:44: MQTT publish: topic 'zigbee2mqtt/0x000d6f000f77e5ed', payload '{"occupancy":false,"tamper":true,"battery_low":false,"linkquality":52}'
zigbee2mqtt    | 2020-04-23T19:46:44.662617274Z zigbee2mqtt:info  2020-04-23 21:46:44: Configuring '0x000d6f000f77e5ed'
zigbee2mqtt    | 2020-04-23T19:46:54.742124738Z zigbee2mqtt:error 2020-04-23 21:46:54: Failed to configure '0x000d6f000f77e5ed', attempt 2 (Error: ConfigureReporting 0x000d6f000f77e5ed/1 genPowerCfg([{"attribute":"batteryPercentageRemaining","minimumReportInterval":3600,"maximumReportInterval":62000,"reportableChange":0}], {"timeout":6000,"manufacturerCode":null,"disableDefaultResponse":true}) failed (Error: Status 'UNSUPPORTED_ATTRIBUTE')
zigbee2mqtt    | 2020-04-23T19:46:54.742503227Z     at Endpoint.<anonymous> (/app/node_modules/zigbee-herdsman/dist/controller/model/endpoint.js:326:23)
zigbee2mqtt    | 2020-04-23T19:46:54.742691820Z     at Generator.next (<anonymous>)
zigbee2mqtt    | 2020-04-23T19:46:54.742765570Z     at fulfilled (/app/node_modules/zigbee-herdsman/dist/controller/model/endpoint.js:5:58))

What did you expect to happen

No errors :-)

How to reproduce it (minimal and precise)

Started pairing with that device.

In order to actually being able to start pairing I had to switch to channel: 25 in the config; all other channels were not working at all. No attempt to pair appeared in the logs. Is this expected?

Debug Info

Zigbee2mqtt version: 1.22.2
Adapter hardware: CC2531
Adapter firmware version: zStack12, 20190608

Coordinator firmware version: '{"type":"zStack12","meta":{"transportrev":2,"product":0,"majorrel":2,"minorrel":6,"maintrel":3,"revision":20190608}}'
@Koenkk
Copy link
Owner

Koenkk commented Apr 24, 2020

Try holding the device close to the coordinator, trigger a configure through https://www.zigbee2mqtt.io/information/mqtt_topics_and_message_structure.html#zigbee2mqttbridgeconfigure and right before doing that wake up by clicking a button on it.

@Kosta-Github
Copy link
Contributor Author

I paired successfully with 5 of these motion detectors, but all of them are showing the same errors.

I assume, that either the batteryPercentageRemaining property is not supported by them, or that this property might need to be spelled (a bit) differently for them?

@Koenkk
Copy link
Owner

Koenkk commented Apr 28, 2020

Can you try changing it to:

{
    zigbeeModel: ['Motion Sensor-A'],
    model: 'AC01353010G',
    vendor: 'OSRAM',
    description: 'SMART+ Motion Sensor',
    supports: 'occupancy, tamper and temperature',
    fromZigbee: [
        fz.temperature,
        fz.ias_occupancy_alarm_2,
    ],
    toZigbee: [],
    meta: {configureKey: 1},
    configure: async (device, coordinatorEndpoint) => {
        const endpoint = device.getEndpoint(1);
        await bind(endpoint, coordinatorEndpoint, ['msTemperatureMeasurement', 'genPowerCfg']);
        await configureReporting.temperature(endpoint);
        await configureReporting.batteryVoltage(endpoint);
    },
},

@Schmidda83
Copy link

Schmidda83 commented Apr 29, 2020

Hi Koenkk,

first thanks for peace of Software, great work.
I'm totally new and I'm currently following a bunch of turtorials for my Smart Home.

I'm facing the same issue as Kosta above.

You're saying that I shall change something, but my question is

Which file or configuration needs to be edited?

For this doesn't look like the configration.yaml, it is more an *.js file or am I wrong?

@Koenkk
Copy link
Owner

Koenkk commented Apr 29, 2020

In devices.js, see https://www.zigbee2mqtt.io/how_tos/how_to_support_new_devices.html how to get to that file.

@Schmidda83
Copy link

zigbee2mqtt:info 2020-04-29 21:13:56: Successfully configured 'Motion_Sensor_Eingang_1'

thx Koenkk

Kosta-Github added a commit to Kosta-Github/zigbee-herdsman-converters that referenced this issue May 1, 2020
switch from `batteryPercentageRemaining` to `batteryVoltage`
see: Koenkk/zigbee2mqtt#3416
Koenkk pushed a commit to Koenkk/zigbee-herdsman-converters that referenced this issue May 2, 2020
switch from `batteryPercentageRemaining` to `batteryVoltage`
see: Koenkk/zigbee2mqtt#3416
@Koenkk
Copy link
Owner

Koenkk commented May 2, 2020

Merged, assuming this can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants