[Framework] Homie for ESP8266

arduino
mqtt
esp8266
Tags: #<Tag:0x00007f1e5f476a10> #<Tag:0x00007f1e5f476790> #<Tag:0x00007f1e5f4763a8>
(Marvin Roger) #190

@Snowboarder this is fixed in the v1.5.0. The Arduino for ESP8266 v2.2.0 revealed an issue with how I handled the JSON configuration, that did not appeared on the v2.1.0. :slight_smile:

0 Likes

(Marcel) #191

All oke now with the new version

Thanks a lot :slight_smile:

0 Likes

(Ben Jones) #192

For anyone using Homie, @jpmens and I have been working on an OTA server (written in python) which might be useful for managing firmware and scheduling updates.

3 Likes

(JP Mens) #193

Give it a day or so to settle down … Lots of work in progress :laughing:

1 Like

(Marvin Roger) #194

@ben_jones12 @jpmens this is awesome! Thanks for contributing to the Homie ecosystem, I appreciate!

Feel free to open a PR on the homie-esp8266 repo, if you want to add your project to the docs, in the OTA section. :slight_smile:

0 Likes

(cmd.services@yahoo.co.uk) #195

Hi thanks for update. Configureation now seems to work OK , but device dosnt seem to connect to wifi, its probley me here is the serial debug
riggering HOMIE_NORMAL_MODE event…
** Booting into normal mode **
{} Stored configuration:
• Hardware device ID: fca59de0
• Device ID: esp001
• Boot mode: normal
• Name: ESP
• Wi-Fi
â—¦ SSID: ChaosNet
â—¦ Password not shown
• MQTT
â—¦ Host: 192.168.0.22
â—¦ Port: 1883
â—¦ Base topic: devices/
â—¦ Auth? no
â—¦ SSL? no
• OTA
â—¦ Enabled? no
↕ Attempting to connect to Wi-Fi…
↕ Attempting to connect to Wi-Fi…
↕ Attempting to connect to Wi-Fi…
↕ Attempting to connect to Wi-Fi…
anything obvious in my settings? i thought i may of typed password wrong, but went through config again with same result
Thanks Chris

0 Likes

(Tommy Sharp) #196

@marvinroger
Hey Marvin, can you give a dummies guide explanation to how the Homie devices knows to boot up in configuration mode?

I’m fining that with my Wemos D1 mini it appears random… If I just plug/unplug the power a few times it boots up properly and connects to the wifi using the saved settings, but then all of a sudden if I plug it in again then it boots into config mode and seems to have lost it’s settings?

0 Likes

(Ben Jones) #197

Known problem with the Wemos(https://github.com/marvinroger/homie-esp8266/issues/5). Seems to be related to the Windows driver.

That is why the OTA updates are so useful - no need to plug into PC so no chance of resetting!

0 Likes

(Marvin Roger) #198

@Chaos can you take a look at https://github.com/marvinroger/homie-esp8266/issues/75? Is it the same issue?

@TommySharp when the device finds a valid configuration file on the filesystem, it boots into normal mode, otherwise it boots into config mode. As @ben_jones12 said, there is a problem with Wemos devices that seems to corrupt the filesystem.

0 Likes

(Christian Schmid) #199

Hey Ben, thank you for your small lightweight server. I installed it yesterday on my pi for testing. The last message in the log file is:
* 2016-04-24 23:47:56,340 DEBUG Attempting connection to MQTT broker at localhost:1883…
homie-ota.log (END)*
Shouldn’t be there a positive feedback when the OTA-Server is well connected?

Greetings from Hamburg
Christan

0 Likes

(Christian Schmid) #200

Ahhhh … :wink:

I forgotten a slash in the ini at “ota-endpoint”. Now a home device was found.

Ahoi Christian

1 Like

(Ben Jones) #201

FYI - https://github.com/jpmens/homie-ota is ready for prime time now. Supports firmware management including uploading and OTA scheduling. See the repo README for more details.

1 Like

(cmd.services@yahoo.co.uk) #202

Hi i have upgraded to homie 1.5.0 on a wemos D1 instead of ESP-12 DEV Kit and now it configures OK, many thanks for sorting this out. i am not quite sure the format to send to it.Using MQTT tester (i will progress to openHab later) i subscribe to: devices/test/light/on/set and publish “on” looking at serial debug i get:
Calling global input handler…
Calling node input handler…
Calling property input handler…
No handlers handled the following packet:
• Node ID: light
• Property: on
• Value: on
What topic should i subscribe to to recieve and what should i publish to to switch the led on off in the LightOnOff example ?
thanks Chris

0 Likes

(Marvin Roger) #203

@Chaos send true or false instead of on as a value. Of course, you can change this to whatever you want in the sketch.

0 Likes

(cmd.services@yahoo.co.uk) #204

thank you

0 Likes

(JP Mens) #205

@marvinroger just a small note to a) thank you for Homie, and b) show you that we’re really liking it! :smile:

2 Likes

(Marvin Roger) #206

@jpmens you guys rock! Great to see the project is used in real home automation systems. :smiley:
By the way, do you see any stability improvements with the 2.2.0 release of the Arduino for ESP8266?

0 Likes

(JP Mens) #207

I certainly think so: I’ve seen an uptime of > 7 days which I don’t think we got anywhere close to before that.

0 Likes

(Ben Jones) #208

I have yet to see a crash/restart of any sort - aside from OTA updates. Great work @marvinroger!

0 Likes

(Marvin Roger) #209

Awesome :slight_smile:
There is still an issue with the new mDNS discovery feature, but I will attempt to fix it soon.

0 Likes