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

Bitron AV2010/25 (watt comsumption wrong) #5399

Closed
kevincaradant opened this issue Dec 24, 2020 · 5 comments
Closed

Bitron AV2010/25 (watt comsumption wrong) #5399

kevincaradant opened this issue Dec 24, 2020 · 5 comments
Labels
problem Something isn't working

Comments

@kevincaradant
Copy link

kevincaradant commented Dec 24, 2020

Hi

Please, could you fix the value in "watt" ? Since latest version in dev branch, I have some wrong values. I think you forget a division by 10 :)

image

image

Thank you :)

@kevincaradant kevincaradant added the problem Something isn't working label Dec 24, 2020
@kevincaradant kevincaradant changed the title Bitron AV2010/25 Bitron AV2010/25 (watt comsumption wrong) Dec 24, 2020
Koenkk added a commit to Koenkk/zigbee-herdsman-converters that referenced this issue Dec 24, 2020
@Koenkk
Copy link
Owner

Koenkk commented Dec 24, 2020

Fixed.

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)

@kevincaradant
Copy link
Author

kevincaradant commented Dec 25, 2020

still having the issue ;)

But look the instantaneousDemand value is good but not power just after ;)

image

@Koenkk
Copy link
Owner

Koenkk commented Dec 27, 2020

Can you try experimenting with the divisor and check when you get correct values? To do this update devices.js and edit the divisor value. Currently it's 100, but try with e.g. 1000 and, restart zigbee2mqtt and do a reconfigure via the zigbee2mqtt ui.

{
    zigbeeModel: ['902010/25'],
    model: 'AV2010/25',
    vendor: 'Bitron',
    description: 'Video wireless socket',
    fromZigbee: [fz.on_off, fz.metering],
    toZigbee: [tz.on_off],
    exposes: [e.switch(), e.power()],
    meta: {configureKey: 3},
    configure: async (device, coordinatorEndpoint) => {
        const endpoint = device.getEndpoint(1);
        await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff', 'seMetering']);
        await reporting.instantaneousDemand(endpoint);
        endpoint.saveClusterAttributeKeyValue('seMetering', {divisor: 100, multiplier: 1});
    },
},

See https://www.zigbee2mqtt.io/how_tos/how_to_support_new_devices.html on how to modify devices.js

@kevincaradant
Copy link
Author

kevincaradant commented Dec 27, 2020

I did some tests and I got the real value using divisor at 10000

However, under HA I have a value but honestly I don't know why ... it's not documented and I don't understand what is it 'energy'

image

The power consumption is 'power' but 'energy' should not exist ?

image

image

@Koenkk
Copy link
Owner

Koenkk commented Dec 28, 2020

Energy is the sum of the measured power in kWh, I've fixed the divisor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
problem Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants