Esp-homekit-devices: Set initial state to on

Created on 18 Aug 2018  路  13Comments  路  Source: RavenSystem/esp-homekit-devices

Hello there. Firstly I have to say thank you very much for your work. The Homekit and Eve integration is a great idea and the flashing went flawlessly.

I just have one question. How do I set it up so the initial state of the Sonoff basic is on. For example, if I have a Sonoff between a wall light switch and a LED light, when I turn on the switch I want the LED to turn on right away. Sorry for the stupid question. I'm very new to programing. Thanks

enhancement

All 13 comments

A custom option will let you to setup initial state:

  1. Off (default)
  2. On
  3. Last state
  4. Oposite to last state

Thank for the Reply. Do I have to do this in the main.c file? I'm very new to all this. Thanks

You must modify main.c, and custom_characteristics.h to declare new HomeKit UUIDs to customize initial states.

I don鈥檛 really understand. I think I have a lot to learn before I get to do it. Anyway, thank you very much.

@RavenSystem Hi Jose, if you could implement such an enhancement it would be extremely useful. This function could have many use cases especially in areas where electricity has temporary disruptions, etc. Having the option to set the output to last state would overcome such issues and automations would not be disrupted

@peros550 This will be available asap. I need enough free time for coding. ;)

There is a little bug with GPIO14 and Basic Switch. Initial state must be OFF, but depending of position of wall-mount switch connected to GPIO14, some time initial state is ON.

This bug must be fixed before implementing saved states.

The bug with GPIO14 initial state for Device Type 1 has been fixed in v0.2.6, released just now.

Next step will be implementation of "Setup initial state".

is there any news? I'm really looking foward to this.

I am really looking forward hearing the new about the initial setting too. Some light switchs should be set to be initially on, as we can control the light status with the wall switch and with homekit at the same time. Thank you very much for your hard work as always.

is it possible to put this function into setup menu then we can configure it according to the usage?

Custom initial state has been added to version 0.5.0.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

arturodiazad1 picture arturodiazad1  路  3Comments

Codi878 picture Codi878  路  3Comments

freddair picture freddair  路  3Comments

xrust83 picture xrust83  路  3Comments

richardlimaa picture richardlimaa  路  4Comments