Smart plug - Access control mode

Hello,

While reconfiguring a block for the smart plug, I just noticed there was « Access control mode ».
After some tests, I realize that it’s the child lock.

Questions :

  • It seems to be LOCK or UNLOCK, so why 3 positions ?
  • Isn’t the point of this kind of widget (segmented button) to display icons to switch between them ?

Because here, it’s not clear at all.

Hi @Hizo and thanks for your message!

Indeed that’s not clear at all.

It rather looks like the « power_outage_memory », right?

I’ll try to investigate — actually ideally I would need the « expose » of this device; I don’t know if there’s a way to retrieve it one way or another (maybe via MQTT explorer)?

Otherwise you need to go to the z2m interface, operate the « power outage memory » from there, and observe whether this indicator changes (or not) on the Gladys dashboard. In my opinion it’s this feature too because it offers 3 states rather than 2 like the « child lock »

By default :
image

Then :
image

1 Like

Ok thanks @Hizo! Is this something you really need in Gladys then? :slight_smile:

I’ll try to take a look, can you create a GitHub issue so I don’t forget?

Not really necessary at the moment, but it’s always handy :slight_smile:

1 Like

Thanks for the GitHub issue @Hizo! I’ll try to take a look, but I can’t guarantee anything in the short term. I’m not the developer of the Zigbee2mqtt integration, and it might be easy or it could be a big project.

If it’s a big project, I’d probably prioritize other more requested developments :slight_smile:

Hi @Hizo,

I should be able to do it. If I have the time I’ll look into it over the weekend or in the coming week.

I tested replacing the button.

However, I’m wondering whether I should leave the name Mode de contrôle d'accès or rename it to Sécurité enfant ?
L’expose c’est child_lock
![image|180x34](upload://5LtC1fCnOoiCNSUcmT

Child safety is good.

Personally, I’m not a fan of child safety. Because it doesn’t necessarily concern children ^^
I’d rather have used Security or Lock

For now I had only translated the presentation Child lock

1 Like

It’s true that it’s not just about children, but at least it’s fairly clear…

Child safety very good :+1:

2 Likes

So we agree then that I can delete the device Mode de contrôle d'accès? Because I don’t see the usefulness of this three-state button without any information about the actions.
image

I think so!

Yes, it is not suitable.

@Hizo,

Here is a Docker image if you want to try
willde71/gladys-test:zigbee2mqtt-childlock

@pierre-gilles,
Here is the PR

Thanks! I’m waiting for feedback from a real tester and then it’s fine with me!

1 Like

For my part I tested it in real conditions, but if someone else could do it as well that would be good