aderusha / HASwitchPlate

LCD touchscreen for Home Automation
MIT License
732 stars 128 forks source link

"No matching function for call to HTTPClient::begin(WiFiClient&, String&)" #60

Closed petergreis closed 5 years ago

petergreis commented 5 years ago

Arduino IDE version 1.8.9 on MacOS

Could we get a list of the required libraries (and versions)? I am getting various compiler errors (like the one above), and also a complaint about MDNS.

Second question - can the binary be downloaded to the board directly from the IDE? I don't see a way to do this...

aderusha commented 5 years ago

Good call. I've updated the documentation page to call out specific versions of the board manager and libraries in use. I've just tested this in a clean 1.8.9 using the instructions provided and the project compiles without errors.

The documentation also covers using NodeMCU Flasher for writing the binary directly but that's a Windows-only tool. I don't have a Mac with which to test MacOS binaries but a google search suggests there are several options available. This command line tool from Espressif seems like a good starting point.

petergreis commented 5 years ago

Hi Allen

OK, flashing with esptool.py does the trick. But after updating my WiFi and MQTT settings, the screen simply displays

WiFi Connected: 192.168.1.205 MQTT Connected: 192.168.1.201

How does it move to the next screen? Is there something that I need to do?

Best regards

Peter

From: Allen Derusha notifications@github.com Reply-To: aderusha/HASwitchPlate reply@reply.github.com Date: Monday, 25 March 2019 at 14:22 To: aderusha/HASwitchPlate HASwitchPlate@noreply.github.com Cc: Peter Greis peter.greis@freethinker.com, Author author@noreply.github.com Subject: Re: [aderusha/HASwitchPlate] "No matching function for call to HTTPClient::begin(WiFiClient&, String&)" (#60)

Good call. I've updated the documentation pagehttps://github.com/aderusha/HASwitchPlate/blob/master/Documentation/01_Arduino_Sketch.md#arduino-ide to call out specific versions of the board manager and libraries in use. I've just tested this in a clean 1.8.9 using the instructions provided and the project compiles without errors.

The documentation also covers using NodeMCU Flasher for writing the binary directly but that's a Windows-only tool. I don't have a Mac with which to test MacOS binaries but a google search suggests there are several options available. This command line tool from Espressifhttps://github.com/espressif/esptool seems like a good starting point.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/aderusha/HASwitchPlate/issues/60#issuecomment-476193952, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AEI0pygZuHZhQaiSgv9-Wvvj70U2K9MTks5vaM2cgaJpZM4cGxr7.

aderusha commented 5 years ago

You'll then need to proceed through the rest of the documentation to setup Home Assistant. If you have everything physically hooked up (which is sounds like you do), you can probably jump to step 5 in the documentation.

petergreis commented 5 years ago

But what if I am not using home assistant? I use homebridge and an MQTT Broker, eventually driving everything with Apple Home and Siri.

Best regards

P

On Mar 25, 2019, at 17:13, Allen Derusha notifications@github.com<mailto:notifications@github.com> wrote:

You'll then need to proceed through the rest of the documentation to setup Home Assistant. If you have everything physically hooked up (which is sounds like you do), you can probably jump to step 5 in the documentationhttps://github.com/aderusha/HASwitchPlate/blob/master/Documentation/05_Home_Assistant.md.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/aderusha/HASwitchPlate/issues/60#issuecomment-476268545, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AEI0p53FtXsZqwv95BdsYNKDN9eKQt_yks5vaPWQgaJpZM4cGxr7.

aderusha commented 5 years ago

This project includes pre-canned automations for Home Assistant and OpenHAB. If you aren't going to be using one of those two options, you'll need to build out your own solution for your own environment from scratch. The MQTT namespace is outlined here, but understand this is going to be a substantial undertaking.

petergreis commented 5 years ago

I am ready to do that... was planning on mapping actions through NodeRed. My question is, should it boot fully into the screens with the buttons, or is it waiting to contact a home assistant server?

On Mar 25, 2019, at 19:17, Allen Derusha notifications@github.com<mailto:notifications@github.com> wrote:

This project includes pre-canned automations for Home Assistant and OpenHAB. If you aren't going to be using one of those two options, you'll need to build out your own solution for your own environment from scratch. The MQTT namespace is outlined herehttps://github.com/aderusha/HASwitchPlate/blob/master/Documentation/06_MQTT_Control.md, but understand this is going to be a substantial undertaking.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/aderusha/HASwitchPlate/issues/60#issuecomment-476318925, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AEI0p83GBrtki0Vq6OLW3Cd_FYVpukLKks5vaRLOgaJpZM4cGxr7.

aderusha commented 5 years ago

It's waiting on page 0 to be told what to do. You can tell it to switch pages using the MQTT commands outlined in that document. If you check the Home Assistant forums you'll find some users have been working on this. This user posted his NR flows here.

petergreis commented 5 years ago

Allen

Thank you so much 😊 I now have a 2.4 and 7” version running.

What I did find odd - adding a slider (as p[1]h[0] comes over MQTT as b[2], not h[0]. Is this the expected behavior?

Best regards

Peter

[image1.jpeg]

On Mar 25, 2019, at 19:26, Allen Derusha notifications@github.com<mailto:notifications@github.com> wrote:

It's waiting on page 0 to be told what to do. You can tell it to switch pages using the MQTT commands outlined in that document. If you check the Home Assistant forums you'll find some users have been working on this. This userhttps://community.home-assistant.io/t/ha-switchplate-diy-lcd-touchscreen-wall-switch-replacement/25464/983 posted his NR flows herehttps://hastebin.com/mayuyegufa.json.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/aderusha/HASwitchPlate/issues/60#issuecomment-476322151, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AEI0p1QImHBME-eJSRSzJv6tRhpAJEMNks5vaRTCgaJpZM4cGxr7.

aderusha commented 5 years ago

What I did find odd - adding a slider (as p[1]h[0] comes over MQTT as b[2], not h[0]. Is this the expected behavior?

It is, check out the documentation here for an explanation of what is going on.