superhouse / basicotarelay Goto Github PK
View Code? Open in Web Editor NEWControl a Sonoff / Slampher using MQTT with OTA support
Control a Sonoff / Slampher using MQTT with OTA support
Thanks for your Blogs.
Just getting started with Sonoff hacks and have gotten this far.
It looks like the #include <PubSubClient.h> can not be found while compiling in IDE.
What do I need to load?
hi there,
Thank you for your videos on youtube and making this code available.
My issue is:
I’ve setup a homekit fan accessory using a raspberry pi, HAP-NodeJS, MQTT and a sonoff.
It works fine but the one problem i’ve got with it is the status on the home app not showing correctly. When I turn the fan accessory ON the status in the home app my iOS device is correct and shows it’s ON.
BUT if I leave it on for a while then go back into the home app is shows it’s OFF even though the accessory is still ON???
I switch it ON then OFF again and it turns OFF.
I used your code for the sonoff but also used this code (https://github.com/jat80/ESP8266/blob/master/Home%20Automation/Part%208/relayLight_accessory.js) but modified a few lines to make it look like a fan accessory.
I don’t really have any experience with javascript (or coding in general for that matter) so don’t know if there is something else in the code that could be the problem with the status not showing correctly.
Any help would be appreciated.
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.