kate-hall/alexa-icomfort

Program Friendly names

stevesreed opened this issue · 1 comments

Is there a way to extract the actual name of the program for Alexa when querying the temperature?

It seem to be hard coded to "summer program", "winter Program", etc. Since we have multiple zones, we use different programs for each zone, instead of the usual summer/winter settings.

I wish I understood Java script so I could help out, but it's quite unfamiliar to me.

I can see the enum is in the code (main javascript) here. I don't know what happens if you change it but it might work.

var alexaTargetRangeInfo = function(currentTemp, heatTo, coolTo, program, timeStamp, confirmation) {
    var programToTempMode = {
        0: {tempMode: "CUSTOM", friendlyName: "Summer Program"},
        1: {tempMode: "CUSTOM", friendlyName: "Winter Program"},
        2: {tempMode: "CUSTOM", friendlyName: "Spring Fall Program"},
        3: {tempMode: "ECO", friendlyName: "Save Energy Program"},
        4: {tempMode: "CUSTOM", friendlyName: "Custom Program"}
    };