Closed coalfield closed 4 years ago
Sorry about the delay in getting back to you!
Should just be a case of adding it to the switch statement. Do you know what the device_type
is for plugs? Sockets work the same as switches so shouldn't be any other changes required.
Sorry about the delay in getting back to you!
Should just be a case of adding it to the switch statement. Do you know what the
device_type
is for plugs? Sockets work the same as switches so shouldn't be any other changes required.
I don’t know how to find out but would check if you can point me in the direction of how to 👍
I'll drop the MiHome guys an email. They should be able to provide the enum values.
Hi,
You know what, I completely forgot to reply to you on this one. Please accept my apologies!
The list of values is:
MIHO002 - "legacy" MIHO004 - "monitor" MIHO005 - "control" MIHO006 - "house" MIHO007 - "socket" (as well as all metallic variants) MIHO008 - "light" (as well as all metallic variants) MIHO009 - "double_light" (as well as all metallic variants) MIHO010 - "dimmer" (as well as all metallic variants) MIHO013 - "etrv" MIHO014 - "relay" MIHO015 - "relay" MIHO032 - "motion" MIHO033 - "open" MIHO069 - "thermostat" MIHO089 - "clicker" MIHO109 - "wifiplug" ENER010 - "fourgang"
I've got a bit of work to update for Homebridge v1 so I'll try adding these in at the same time.
Thanks, James
@coalfield I don't actually own one of the sockets - what functionality do they provide? Are they just the same as switches with on/off? If so, it should be trivial to add them in?
Hi,
yeah just on/off function, I can see my sockets and multiplugs in HomeKit but shows as not supported. Would be great to have them functional, thanks for this plugin works really well.
Regards Gary
@coalfield I don't actually own one of the sockets - what functionality do they provide? Are they just the same as switches with on/off? If so, it should be trivial to add them in?
Sorry missed this, yeah they are simply on off. However I believe they do not store the position (on or off), so the app does this) which may make it a little tricker. i.e. you cannot call the current state.
Thanks @Gazza132 & @coalfield. I've added "socket" as a controllable device type in v2.3.0. Can you give it a go and let me know how you get on?
@coalfield The lack of state is a known issue with the API. I've asked Energenie for advice, just waiting on a response from them (discussion here: #9)
On Tue, 26 May 2020 at 13:39, jamesrodda notifications@github.com wrote:
Thanks @Gazza132 https://github.com/Gazza132 & @coalfield https://github.com/coalfield. I've added "socket" as a controllable device type in v2.3.0. Can you give it a go and let me know how you get on?
@coalfield https://github.com/coalfield The lack of state is a known issue with the API. I've asked Energenie for advice, just waiting on a response from them (discussion here: #9 https://github.com/jamesrodda/homebridge-mihomegateway/issues/9)
— You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/jamesrodda/homebridge-mihomegateway/issues/4#issuecomment-633998391, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKEIYVEI3TNFSC7RAEV7E4DRTOZ7DANCNFSM4JFPBJ7A .
Hi Updated plugin and it’s working beautifully, thank you so much for all your efforts. Really pleased to have sockets included.
Regards Gary
Sorry it took so long to reply, but have just uploaded to the latest version (fresh install) and the sockets worked straight away. Fantastic thank you @jamesrodda
Is it possible for this to support plug sockets, or any way to build this in?