Coder Social home page Coder Social logo

merlokk / smarthome Goto Github PK

View Code? Open in Web Editor NEW
54.0 14.0 32.0 22.4 MB

esp8266 IoT to mqtt bridge. Eastron SDM220, SDM230, SDM630 modbus; AZ7798; SenseAir s8; BME280; HDC1080; Plantower PMS5003, PMS7003, PMSA003

C++ 93.75% C 5.29% Batchfile 0.96%
esp8266 mqtt sdm630 sdm230 sdm220 esp14 bme280 hdc1080 pms5003 pms7003

smarthome's Introduction

Projects for smart home. ESP8266 + NanoPi NEO Air

Build Status

ESP8266AZ7788

Connect Datalogger AZ-7788 to MQTT

ESP8266EASTRON

Connect Eastron energy meters (SDM220, SDM230, SDM630) to MQTT

wiki

release in the box: release

ESP8266DISABLECPU

How do disable CPU and put it into deep sleep mode. It needs for debug ESP-14

ESP14MES

connect temperature/humidity/light/pressure to MQTT.

ESP-14

HDC1080 - temp + humidity, BMP280 - pressure + temp, BH1750FVI - light, ESP-14 - cpu (ESP8266 + STM8003)

board https://www.aliexpress.com/item/3-5V-Multi-HDC1080-Temperature-Humidity-Sensor-BMP280-Pressure-Control-Sensor-ESP8266-WIFI-BH1750FVI-Module/32742652977.html

ESP-14 info https://esp8266.ru/forum/threads/esp-14-chto-ehto.531/

STM8 sensor reading part https://bitbucket.org/hrandib/esp-stm8-sensors

ESP8266CO2PM25

Air quality monitor. Code here

It measures parameters:

  • Humidity
  • Temperature
  • Pressure
  • CO2
  • PM1.0/PM2.5/PM10 dust
  • Light: Visible / UV / UV index

smarthome's People

Contributors

merlokk 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

Watchers

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

smarthome's Issues

big file bug

add code to xParam to prevent big file creating

Cant recieve anything

Hi Merlokk,

ived compiled the ESP8266EASTRON.ino and connectet as followed.
on D5 and D6 an LED
on D3 an switch

I used an RS485 Module with DE / RE Pin
"A" from Modul to "A" from SDM630
"B" from Modul to "B" from SDM630
"DI" from Modul to "TX" of ESP8266
"RO" from Modul to "RX" of ESP8266
"DE/RE" to 3.3V as Enable

When i Start the ESP866 both LED´s are on
Connected to WLAN and MQTT via IObroker

on IO Broker there is an MQTT Folder 6974CA
In That folders there some Entrys

Connected | 6974CA/Energiemeter/Connected | state | variable | OFF
and so on
The Last boot date, last seem date and connected entry is refreshing every second.

Do u know what i have to do, that my SDM630 talks to the ESP8266 ?
Do i have to modify some files ?

Thank you for your support and sry for my bad english

add NTP date

  1. last push to MQTT
  2. last connect to EASTRON dev

Installation / Compile Doku

Hi,

could you add any info to the wiki how to compile this software.
I am able to compile things with platformio / arduino sdk .
But any hint howto setup, upload and configure works whould be nice.

regards M.

compile error

Hello,

i got errors in arduino ide 1.8.9, ESP8266EASTRON

error:

exit status 1
'generalSetup' was not declared in this scope.
what do i do wrong?
please help

ESP14MES Info?

Hi, do you have any information on the ESP14MES module? It looks like you are making use of it here and it would be cool to know a little more about how it works and its features. Thank you.

error compiling

Hi,
got this error on compiling:

Arduino: 1.8.13 (Mac OS X), Placa:"WeMos D1 R1, 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), 4MB (FS:2MB OTA:~1019KB), v2 Lower Memory, Disabled, None, Only Sketch, 921600"

In file included from /Users/jruibarroso/Library/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/tools/sdk/libc/xtensa-lx106-elf/include/sys/stdio.h:6:0,
from /Users/jruibarroso/Library/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/tools/sdk/libc/xtensa-lx106-elf/include/stdio.h:63,
from /Users/jruibarroso/Library/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/cores/esp8266/Arduino.h:32,
from /Users/jruibarroso/Documents/Arduino/libraries/autotimezone/autotimezone.h:12,
from /Users/jruibarroso/Documents/Arduino/SmartHome-master/ESP8266EASTRON/ESP8266EASTRON.ino:1:
/Users/jruibarroso/Library/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/tools/sdk/libc/xtensa-lx106-elf/include/sys/pgmspace.h:25:130: error: 'const char HTTP_HEAD []' redeclared as different kind of symbol
#define PROGMEM attribute((section( "".irom.text." FILE "." __STRINGIZE(LINE) "." __STRINGIZE(COUNTER) """)))
^
/Users/jruibarroso/Documents/Arduino/libraries/WiFiManager/WiFiManager.h:35:24: note: in expansion of macro 'PROGMEM'
const char HTTP_HEAD[] PROGMEM = "<html lang="en"><meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"/><title>{v}</title>";
^
In file included from /Users/jruibarroso/Documents/Arduino/libraries/WiFiManager/WiFiManager.h:17:0,
from sketch/general.h:3,
from /Users/jruibarroso/Documents/Arduino/SmartHome-master/ESP8266EASTRON/ESP8266EASTRON.ino:27:
/Users/jruibarroso/Library/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/libraries/ESP8266WebServer/src/ESP8266WebServer.h:34:39: error: previous declaration of 'HTTPMethod HTTP_HEAD'
enum HTTPMethod { HTTP_ANY, HTTP_GET, HTTP_HEAD, HTTP_POST, HTTP_PUT, HTTP_PATCH, HTTP_DELETE, HTTP_OPTIONS };
^
/Users/jruibarroso/Documents/Arduino/SmartHome-master/ESP8266EASTRON/general.ino: In function 'void wifiSetup(bool)':
general:102:15: error: no matching function for call to 'WiFiManager::WiFiManager()'
WiFiManager wifiManager;
^
/Users/jruibarroso/Documents/Arduino/SmartHome-master/ESP8266EASTRON/general.ino:102:15: note: candidates are:
In file included from sketch/general.h:3:0,
from /Users/jruibarroso/Documents/Arduino/SmartHome-master/ESP8266EASTRON/ESP8266EASTRON.ino:27:
/Users/jruibarroso/Documents/Arduino/libraries/WiFiManager/WiFiManager.h:77:5: note: WiFiManager::WiFiManager(TPrint&)
WiFiManager(TPrint &prn);
^
/Users/jruibarroso/Documents/Arduino/libraries/WiFiManager/WiFiManager.h:77:5: note: candidate expects 1 argument, 0 provided
/Users/jruibarroso/Documents/Arduino/libraries/WiFiManager/WiFiManager.h:74:7: note: WiFiManager::WiFiManager(WiFiManager&&)
class WiFiManager
^
/Users/jruibarroso/Documents/Arduino/libraries/WiFiManager/WiFiManager.h:74:7: note: candidate expects 1 argument, 0 provided

exit status 1
no matching function for call to 'WiFiManager::WiFiManager()'

Can you help me please ?

add MQTT control channel

add chanell "control" to control device.

  1. reboot function
  2. config device type
  3. start config portal function

Arduino compile error

Hello Merlokk,
please forgive my bad english and my little knowledge of software.
I have a pair of sdm220 and some ESP8266 I wold love to use you software that seem very professional.
I downloaded all files and try to compile with arduino IDE but I receive this message ( see below), and I don't know what to to.
Thank you in advance.
Alessandro

C:\Users\p\Desktop\Domotica\SDM\ESP8266EASTRON\general.ino: In function 'void wifiSetup(bool)':

general:102: error: no matching function for call to 'WiFiManager::WiFiManager(xLogger&)'

WiFiManager wifiManager(DEBUG_SERIAL);

                                   ^

C:\Users\p\Desktop\Domotica\SDM\ESP8266EASTRON\general.ino:102:39: note: candidates are:

In file included from sketch\general.h:3:0,

             from C:\Users\p\Desktop\Domotica\SDM\ESP8266EASTRON\ESP8266EASTRON.ino:17

cant verify sketch in arduino

Hello,

i got different errors in arduino ide 1.8.9
i have install the necesary libary's but get the following error's

Arduino: 1.8.9 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Disabled, All SSL ciphers (most compatible), 4M (no SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 115200"

Build options changed, rebuilding all
In file included from C:\Users\henk\Documents\Arduino\libraries\lib/xmqtt.h:8:0,

             from C:\Users\henk\Documents\Arduino\libraries\lib\bme280.h:17,

             from C:\Users\henk\Documents\Arduino\libraries\lib\BME280.cpp:1:

C:\Users\henk\Documents\Arduino\libraries\lib/xparam.h:66:11: error: StaticJsonBuffer is a class from ArduinoJson 5. Please see arduinojson.org/upgrade to learn how to upgrade your program to ArduinoJson version 6

StaticJsonBuffer<JSON_OBJ_BUFFER_LEN> jsonBuffer;

       ^

In file included from C:\Users\henk\Documents\Arduino\libraries\lib/xmqtt.h:8:0,

             from C:\Users\henk\Documents\Arduino\libraries\lib\bme280.h:17,

             from C:\Users\henk\Documents\Arduino\libraries\lib\BME280.cpp:1:

C:\Users\henk\Documents\Arduino\libraries\lib/xparam.h:91:11: error: StaticJsonBuffer is a class from ArduinoJson 5. Please see arduinojson.org/upgrade to learn how to upgrade your program to ArduinoJson version 6

StaticJsonBuffer<JSON_OBJ_BUFFER_LEN> jsonBuffer;

       ^

C:\Users\henk\Documents\Arduino\libraries\lib/xparam.h:123:11: error: StaticJsonBuffer is a class from ArduinoJson 5. Please see arduinojson.org/upgrade to learn how to upgrade your program to ArduinoJson version 6

StaticJsonBuffer<JSON_OBJ_BUFFER_LEN> jsonBuffer;

       ^

In file included from C:\Users\henk\Documents\Arduino\libraries\lib\bme280.h:20:0,

             from C:\Users\henk\Documents\Arduino\libraries\lib\BME280.cpp:1:

C:\Users\henk\Documents\Arduino\libraries\Adafruit_BME280_Library/Adafruit_BME280.h:29:29: fatal error: Adafruit_Sensor.h: No such file or directory

#include <Adafruit_Sensor.h>

                         ^

compilation terminated.

exit status 1
Error compiling for board NodeMCU 1.0 (ESP-12E Module).

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

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.