What version of home assistant is supported? I just changed to the lastest 64 bit version of hassos.
When I try and upload to an esp8266 get the following errors.
INFO [esphomeyaml.config] Reading configuration…
INFO [esphomeyaml.main] Generating C++ source…
INFO [esphomeyaml.main] Compiling app…
INFO [esphomeyaml.main] Running: platformio run -d /config/esphomeyaml/saltwater
Processing saltwater (platform: espressif8266; board: d1_mini; framework: arduino)
Warning! Library {'requirements': None, 'name': 'ArduinoOTA'} has not been found in PlatformIO Registry.
You can ignore this message, if {'requirements': None, 'name': 'ArduinoOTA'} is a built-in library (included in framework, SDK). E.g., SPI, Wire, etc.
Warning! Library {'requirements': None, 'name': 'ESP8266WiFi'} has not been found in PlatformIO Registry.
You can ignore this message, if {'requirements': None, 'name': 'ESP8266WiFi'} is a built-in library (included in framework, SDK). E.g., SPI, Wire, etc.
Warning! Library {'requirements': None, 'name': 'ESP8266mDNS'} has not been found in PlatformIO Registry.
You can ignore this message, if {'requirements': None, 'name': 'ESP8266mDNS'} is a built-in library (included in framework, SDK). E.g., SPI, Wire, etc.
Warning! Library {'requirements': None, 'name': 'Hash'} has not been found in PlatformIO Registry.
You can ignore this message, if {'requirements': None, 'name': 'Hash'} is a built-in library (included in framework, SDK). E.g., SPI, Wire, etc.
PackageManager: Installing toolchain-xtensa @ ~1.40802.0
Error: Could not find a version that satisfies the requirement ‘~1.40802.0’ for your system ‘linux_aarch64’
I thought Id give this esphomeyaml project a go, Im always interested in writing less code when the usecase isnt complex. I followed the instructions and flashed the firmware to both a ESP8266-7 and a nodeMCU v2 and with both i included the option to listen to a GPIO Pin (GPIO16). Alas for both devices I do not see a MQTT event being generated when I raise gpio16 to High, or Low. At first I thought it was my wiring so then I wrote a native arduno example and this works fine…
interestingly the easyhomeyaml firmware gets to this line and then ends… nothing else…
Huge thanks to you for this Otto - wonderful work. Just started replacing my home-brew esp code with this as it is so much easier to manage.
One thing that got in my way and might stump others that I couldn’t see in previous comments: my user account wasn’t added to the dialout group (running on Ubuntu 16.04 just for setup purposes) and so had to do ‘sudo usermod -a -G dialout $USER’ before I could do the initial upload. Thought I’d post in case anyone else had same issue.
Have hit a problem with OTA. Using NodeMCUs with ESP 12E (or N, which I think is really an E). Can upload via USB fine and can see from log that device connects to wifi and MQTT and starts posting data (from a DHT22).
But when I try to update via OTA I get the message “ERROR [esphomeyaml.espota] No response from the ESP”.
Have tried adding static IP and same response. Doesn’t seem to be a network issue though: .local domains are mapping fine to addresses.
I am just having my first contact with Esphomelib and it seems that it may be the solution for what I want to do. But I have some questions though.
I want to do a smart light RGBWW (with white warm and white cool), with fading on and fading off, with transitions too. A gpio for controlling LED power supply would be also nice. It seems that color temperature is something that you are working on, as it is explained in FAQ.
Can you please give some more detail if Esphomelib would be a good solution for what I want to accomplish?
Thanks.
Hi, thanks for the tip. In fact I already have one H801 which I flashed quite some sime ago using this instructions. It works, but no fading on, off, and no transitions.
I have never used Espurna (flashed Tasmota to some Sonoffs and NodeMCU though, but never to H801), So I believe, based in what you are saying that Espurna can handle fading On/Off and color temperature (channels balance between W1 and W2 of H801).
Probably I should try Espurna with H801, since the way I flashed it was not the best and it is now outdated.
Some reasons led me to think about using a ESP32 for this porpose:
ESP8266 use software PWM which may cause flickering.
Possibility to use a GPIO to turn On/Off a power supply for the leds, so wasting less energy when light is not in use.
Possibillity to include hardware controls as Switches and rotary encoders for local lights control.
Possibility to change fading speed using input_number (I don`t know if it would be possible with Espurna)
So, I would like to know more what I can do with H801 using Espurna, but I am still wanting to know how far I can go if using Esphomelib.
It may be some lack of knowledge, but as far as I know, device firmware has a role in doing fading and brightness and specially transitions. My H801 doesn’t fade and I don’t believe it is just a matter of HA configuration.
On the other hand it would be also nice to have something that fully works even if HA is down.
I changed it as you described, now it just comes back with “nan” on GUI and it logger
"[18:43:53][W][sensor.max6675:088]: Got invalid value from MAX6675Sensor (0xFFFF)
"
I have verified the sensor is working on an arduino and it gives correct temps. With the original .cpp I was getting temps of 2000-3000 degrees.
It’s working for me. But le me post how this function looks like:
void MAX6675Sensor::read_data_() {
this->cs_->digital_write(false);
delay(1);
uint16_t val = this->read_spi_();
val <<=8;
val |= uint16_t(this->read_spi_());
this->cs_->digital_write(true);
This is already fixed in the upcoming release (1.8).
Is there a way to update the .cpp file or is it it a simple copy/paste from the updated .cpp? I tried that and got an error, something about _spi.something directory not found.