Code: Select all
Compilation error: 'GarageDoor' does not name a type
Code: Select all
Compilation error: 'GarageDoor' does not name a type
Code: Select all
static Device garageSensor1("Garage Door 1", ESP_RMAKER_DEVICE_GARAGE_DOOR);
Param garagePosition("Garage Position", ESP_RMAKER_PARAM_GARAGE_POSITION, value(0), PROP_FLAG_READ | PROP_FLAG_WRITE);
Param garageLock("Garage Lock", ESP_RMAKER_PARAM_GARAGE_LOCK, value(0), PROP_FLAG_READ | PROP_FLAG_WRITE);
Code: Select all
int state = digitalRead(hallSensor1);
garageSensor1.updateAndReportParam("Garage Lock", state);
If you are seeing it in the Google Home app, then you should be able to open/close it through the Google voice assistant. You can try saying "Okay google, open/close my garage door".JustinWilker wrote: ↑Tue Jan 03, 2023 7:02 amI have it set up now that the Google Home app is recognizing it as a garage door, however, I can't seem to get it to update.
Code: Select all
static Device garageSensor1("Garage Door 1", ESP_RMAKER_DEVICE_GARAGE_DOOR); Param garagePosition("Garage Position", ESP_RMAKER_PARAM_GARAGE_POSITION, value(0), PROP_FLAG_READ | PROP_FLAG_WRITE); Param garageLock("Garage Lock", ESP_RMAKER_PARAM_GARAGE_LOCK, value(0), PROP_FLAG_READ | PROP_FLAG_WRITE);
Updates just fine in RainMaker app, just not with Google.Code: Select all
int state = digitalRead(hallSensor1); garageSensor1.updateAndReportParam("Garage Lock", state);
Code: Select all
Param garage_position(GARAGE_POSITION_PARAM_NAME, ESP_RMAKER_PARAM_GARAGE_POSITION, value(start_state), PROP_FLAG_READ | PROP_FLAG_WRITE);
garage_position.addUIType(ESP_RMAKER_UI_SLIDER);
garage_position.addBounds(value(0), value(100), value(1));
my_door.addParam(garage_position);
my_door.assignPrimaryParam((param_handle_t *)garage_position.getParamHandle());
Users browsing this forum: No registered users and 53 guests