galagaking / espaxa Goto Github PK
View Code? Open in Web Editor NEWESP Module for controlling AXA Remote2.0
License: Creative Commons Zero v1.0 Universal
ESP Module for controlling AXA Remote2.0
License: Creative Commons Zero v1.0 Universal
Hi,
Hope you can help with this one. Just updated to esphome 2021.10.0 and started the update for the devices.
The ones including espaxa.h will not compile. The first error given is:
In file included from src/main.cpp:43:0:
src/espaxa.h: In member function 'virtual void CustomAXA2RemoteUART::loop()':
src/espaxa.h:36:32: error: call of overloaded 'millis()' is ambiguous
unsigned long now = millis();
^
Some more errors are generated and ends with a 'FAILED'
Hope you can solve this and if I can be of any help (sorry not a programmer) please let me know.
Maybe related to : https://github.com/esphome/esphome/pull/2575
Regards,
Wouter
Hi,
Great solution and based on this I made two modules which are working nicely, thank you!
One thing I noticed is that the state changes even when the window is not opened or closed.
I think it is because only the closed state is set when it is returned from the Axa and all other states are supposed to be open.
When the state is used as a trigger this will result in a unwanted trigger.
I do not know whether the changes I made are the correct ones but they seem to work.
I added:
`#define AXA_OPEN 210 // 210 Unlocked`
and:
`if (axa_status==AXA_OPEN)
{
axa_window->publish_state(COVER_OPEN); // Only 210 will return OPEN
}`
What I see now is that the state only changes when the window is really closed or opened.
Great project!
But ... could you please check what components (resistors/capacitors) I need for this great piece of hardware? There could be a difference between photo's and your scheme?
I'm not that experienced, but nice soldering could be a nice try :)
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.