Code Monkey home page Code Monkey logo

kmansonoff's People

Contributors

kmanoz avatar mjoshd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

kmansonoff's Issues

Sonoff S20 - doesnt work at all

Hi,

I flashed this to my Sonoff S20 and it doesnt do anything, no lights, no attempt to connect to network mqtt - I even erased the flash and tried it multiple different ways??

have you tested this on an S20?

Thanks

Sonoff Pow Support

Could the support for Sonoff Pow be added?
It’s just like the Sonoff Basic, with an additional read-only topic that reports the wattage.

Inching/Self-Lock Mode

sorry it isn't an issue, but rather a question.

Does this one work with Sonoff Wifi Relay 5V?
Tasmota does, but at startup it turns on and off quickly and that would be enough to open the door unintentionally, for example...

Thank you!

Unable to get Si7021 temperature/humidity sensor to work in HA

I have a series of TH10 sensors and the switch works beautifully in Home Assistant. I also purchased the Si7021 temperature and humidity sensors. However, I am unable to get them to work. I have tried a variety of options in the configuration file (e.g. TEMP/WS, DHT11/DHT22) but can't seem to get it to work. Can you provide any assistance on this particular sensor?

?POW

Love the new firmware. works flawlessly without crashing which has always been a problem for my sonoffs.

Is there any work in the pipeline for the Sonoff POW?

Thanks,

Sam

4CH Pro is not supported.

4CH Pro uses stm32 to control the relay instead of using esp8285/esp8266, you can check the circuit board.
4CH is fine.

Operation when network not found

Can I ask what happens when the wifi network is not found, potentially if it is down for some reason.
Depending on what type of device the relay is connected to then it would be preferable to put the relay into a known state in this situation. i.e. default to either on or off as defined by the user when flashing the device if no network discovered?

Deactivate LEDs

Reopen the issue here, since the old repo is deprecated

Hi,

the firmware works really well. However, I wonder if it is possible to deactivate the blue and green LEDs when Sonoff is switched on. I don't want to have them on while the plug is turned on.

Can this be achieved with playing with:
digitalWrite(LED, HIGH);?

Expected behaviour when wifi lost?

when/if my wireless access point is restarted, the sonoff 4chr2's i use stop operating via mqtt. the blue status light remains lit, but i cant control the units except via the hard switches. also if i do use the hard switches, it doesn't send via mqtt.
resetting the units solves the problem. is this expected behaviour? is their any configuration of this behavior available?
I'm aware i could possibly set up a watchdog automation in hass, but I wondered if the feature already exists, or i'm using the code incorrectly.

use as a receiver?

I already have a Broadlink RM Pro that I can use to transmit, but I also have an sonoff RF bridge that im wondering if I can flash so I can use it as a receiver for Home Assistant. This way I can still use my RF remotes to interface with my devices, but then HA will still be able to keep track of their state. Thoughts?

using lmroy version...

A couple of questions / comments if I may:

  1. your step 2. Clone the LMROY version of the mqtt library refers to LMROY but the github is imroy (starting with an i) Threw me off a bit :) You may want to update your README.md
  2. if one must use imroy's files, why do you #include <PubSubClient.h> instead of #include "PubSubClient.h"? The latter would look for a local copy (in the sketch folder) first then the libraries. This would mean one is not forced to use imroy's library for all arduino projects. Or am I missing something? (I'm still a bit of a n00b with arduino).

Thanks

RF support?

Hello,
It is not an issue, just wondering if the firmware was supporting RF. If yes, how do I use it (i have a broadlink to send/capture packets)

Alex

S20 simply for temperature/humidity monitoring?

Think these would be useful for simply reporting temperature/humidity levels in different rooms in a house to Home Assistant? Thinking of buying one to test and then buying a few more if it works out. Not sure how good their sensor work. Side benefit would be that I get an extra smart plug out of it as well.

Sonoff TH16

Hi

Is your code compatible with Sonoff TH16? I have uploaded the correct code of yours but I am not registering any temperature and humidity. I have also installed DHT.h library to no joy.

Is there something I need to enable? am I missing anything?

Thanks.

Cannot get TH10 to work after flash

I have a TH10 that I am trying to reprogram with your code following the README. The TH10 seems to be functioning prior to starting the process (lights blinking, etc). I have modified the config_sc.h script to include my WiFi and MQTT information. I then use the Arduino IDE (v1.8.5) to compile and upload the firmware. I have tried a variety of settings for the board, and they seem to work. If I use verbose upload logging I see the flash happening. The final log is for "closing bootloader" and I see "flush complete".

The issue is after that I try to boot up the switch again (either using power from the USB or separately from mains) and nothing seems to happen. No lights blinking. I don't see the switch connected to my WiFi network. I can put the TH10 back into flash mode and re-flash, so it's not like the device is totally bricked or something. It just doesn't seem to be taking the new firmware.

Can you provide any additional guidance? I would happily provide log file output, but I'm not sure how to get anything from the switch itself.

Does not work on S20 V1.3?

I just installed on my Sonoff S20 socket, the PCB is labelled "S20_EU_V1.3 2017-2-16". It seems to have flashed ok from the Arduino IDE, but when I plug it in nothing happens. The LED does not light up at all, the button does nothing, and it does not connect to Wifi. I filled all the info int the h file correctly.

Assign Station name

Is it possible to integrate a variable we can change to have a user fixed Station name as opposed to the auto assigned one?

I have 10 ESP's currently running on my network, stuff gets confusing.

Second Light

I'm sure this is an idiot question, but...

How can I add a second light?

I suppose I need to change the MQTT_TOPIC in config.h, ok. But, Do I also need to add a new switch with its new name in configuration.yaml? I tried to do this even though a second device does not appear in the file homebridge/config.json.

Regards!

Problems to connect Home assistant 0.56.2

Problems here to connect 0.56.2 (last, i think) version of Home Assistant. Last version of repository manOz/KmanSonoff and the last version of the Mqtt library Imroy/pubsubclient

Mi broker config

mqtt:
port: 1883
client_id: home-assistant
username: homeassistant
password: welcome
keepalive: 60
protocol: 3.1.1

Sonnof config:

#define MQTT_SERVER “192.168.0.3” // Your mqtt server ip address
#define MQTT_PORT 1883 // Your mqtt port
#define MQTT_TOPIC “home/sonoff/caldera/1” // Base mqtt topic
#define MQTT_USER “homeassistant” // mqtt username
#define MQTT_PASS “welcome”

Sonoff log:

-------------------- KmanSonoff_Basic_v2.00 ------------------

UID: Sonoff_F9A22E
Connecting to lowi3B00 Wifi . . . . . . DONE
IP Address is: 192.168.0.160
Connecting to 192.168.0.3 Broker . . . .

Never goes further and after 5 minutes or so

Connecting to 192.168.0.3 Broker . . . . . . FAILED!

mqtt broker connection . . . . . . . . . . LOST

ets Jan 8 2013,rst cause:1, boot mode:(3,6)

load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v3de0c112
~ld

Home Assistant log:

2017-11-02 11:57:19 INFO (MainThread) [hbmqtt.broker] Connection from 192.168.0.160:1070 on listener ‘default’
2017-11-02 12:25:43 DEBUG (MainThread) [hbmqtt.broker] deleting session Session(clientId=Sonoff_F9A22E, state=new) subscriptions
2017-11-02 12:25:43 DEBUG (MainThread) [hbmqtt.broker] deleting existing session (Session(clientId=Sonoff_F9A22E, state=new), <hbmqtt.mqtt.protocol.broker_handler.BrokerProtocolHandler object at 0x6613f530>)
2017-11-02 12:25:43 DEBUG (MainThread) [hbmqtt.broker] Keep-alive timeout=92
2017-11-02 12:25:43 DEBUG (MainThread) [hbmqtt.broker.plugins.packet_logger_plugin] <-in-- ConnectPacket(ts=2017-11-02 12:25:43.776754, fixed=MQTTFixedHeader(length=49, flags=0x0), variable=ConnectVariableHeader(proto_name=MQTT, proto_level=4, flags=0xc2, keepalive=90), payload=ConnectVariableHeader(client_id=Sonoff_F9A22E, will_topic=None, will_message=None, username=homeassistant, password=welcome))
2017-11-02 12:25:43 DEBUG (MainThread) [hbmqtt.broker.plugins.auth_file] No hash found for user 'homeassistant'
2017-11-02 12:25:43 DEBUG (MainThread) [hbmqtt.broker.plugins.auth_anonymous] Authentication success: config allows anonymous
2017-11-02 12:25:43 DEBUG (MainThread) [hbmqtt.broker] 'packet_logger_plugin' plugin result: None
2017-11-02 12:25:43 DEBUG (MainThread) [hbmqtt.broker] 'auth_anonymous' plugin result: True
2017-11-02 12:25:43 DEBUG (MainThread) [hbmqtt.broker] Authentication failed due to 'auth_file' plugin result: False
2017-11-02 12:25:43 DEBUG (MainThread) [hbmqtt.broker] 'broker_sys' plugin result: None

OTA Security

It struck me that currently when the OTA mode is enabled then from a security perspective anyone on the network could reflash one of the devices. A nice addition would be a password that is required in order to enable the OTA process to occur.

Project still alive

Hi,

I wonder if this project is still alive? The firmware works reliably, but there a still a lot of unanswered issues here. Can you give us an update on this?

compiling error

Hi,

I can't upload to sonoff device. here are the error message from the arduino ide

In file included from /Users//Downloads/KmanSonoff-master/arduino/KmanSonoff_v1.00sc/KmanSonoff_v1.00sc.ino:1:0: /Users/user/Documents/Arduino/libraries/pubsubclient-master/src/PubSubClient_JSON.h:25:38: error: expected class-name before '{' token class ConnectJSON : public Connect { ^ /Users/user/Documents/Arduino/libraries/pubsubclient-master/src/PubSubClient_JSON.h:29:5: error: 'Connect' does not name a type Connect& set_will(String willTopic, ArduinoJson::Internals::JsonPrintable<J>& willMessage, uint8_t willQos, bool willRetain) { ^ In file included from /Users/user/Downloads/KmanSonoff-master/arduino/KmanSonoff_v1.00sc/KmanSonoff_v1.00sc.ino:1:0: /Users/user/Documents/Arduino/libraries/pubsubclient-master/src/PubSubClient_JSON.h:47:38: error: expected class-name before '{' token class PublishJSON : public Publish { ^ /Users/user/Documents/Arduino/libraries/pubsubclient-master/src/PubSubClient_JSON.h: In constructor 'MQTT::PublishJSON::PublishJSON(String, ArduinoJson::Internals::JsonPrintable<TImpl>&)': /Users/user/Documents/Arduino/libraries/pubsubclient-master/src/PubSubClient_JSON.h:56:7: error: class 'MQTT::PublishJSON' does not have any field named 'Publish' Publish(topic, nullptr, object.measureLength() + 1) ^ /Users/user/Documents/Arduino/libraries/pubsubclient-master/src/PubSubClient_JSON.h:58:7: error: '_payload' was not declared in this scope _payload = new uint8_t[_payload_len]; ^ /Users/user/Documents/Arduino/libraries/pubsubclient-master/src/PubSubClient_JSON.h:58:30: error: '_payload_len' was not declared in this scope _payload = new uint8_t[_payload_len]; ^ Bibliothek pubsubclient-master in Version 1.99.1 im Ordner: /Users/user/Documents/Arduino/libraries/pubsubclient-master wird verwendet Bibliothek ArduinoJson in Version 5.11.2 im Ordner: /Users/user/Documents/Arduino/libraries/ArduinoJson wird verwendet Bibliothek EEPROM in Version 1.0 im Ordner: /Users/user/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/libraries/EEPROM wird verwendet Bibliothek ESP8266WiFi in Version 1.0 im Ordner: /Users/user/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/libraries/ESP8266WiFi wird verwendet Bibliothek ESP8266mDNS im Ordner: /Users/user/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/libraries/ESP8266mDNS (legacy) wird verwendet Bibliothek ArduinoOTA in Version 1.0 im Ordner: /Users/user/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/libraries/ArduinoOTA wird verwendet Bibliothek Ticker in Version 1.0 im Ordner: /Users/user/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/libraries/Ticker wird verwendet exit status 1 Fehler beim Kompilieren für das Board Generic ESP8266 Module.

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.