Giter Site home page Giter Site logo

Comments (10)

jamesrodda avatar jamesrodda commented on July 18, 2024 1

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

from homebridge-mihomegateway.

Gazza132 avatar Gazza132 commented on July 18, 2024 1

from homebridge-mihomegateway.

coalfield avatar coalfield commented on July 18, 2024 1

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

from homebridge-mihomegateway.

jamesrodda avatar jamesrodda commented on July 18, 2024

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.

from homebridge-mihomegateway.

coalfield avatar coalfield commented on July 18, 2024

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 πŸ‘

from homebridge-mihomegateway.

jamesrodda avatar jamesrodda commented on July 18, 2024

I'll drop the MiHome guys an email. They should be able to provide the enum values.

from homebridge-mihomegateway.

jamesrodda avatar jamesrodda commented on July 18, 2024

@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?

from homebridge-mihomegateway.

Gazza132 avatar Gazza132 commented on July 18, 2024

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

from homebridge-mihomegateway.

coalfield avatar coalfield commented on July 18, 2024

@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.

from homebridge-mihomegateway.

jamesrodda avatar jamesrodda commented on July 18, 2024

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)

from homebridge-mihomegateway.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.