Flame Command Valules

@jacob @merck in the app you define flame high as high/medium/low but in the API the SetFlame command takes 0-100. What values translate to high/medium/low?

Low/Med/High = SetFlame(1/50/100).

By the way, you can see this when reading the commands that the app saves. Example here from one of my units:

           "commands": {
                "48d774e4": {
                    "_": "6fa353fa",
                    "icon": "power_off",
                    "name": "Off",
                    "action": "TurnOff",
                    "hidden": false,
                    "signal": {
                        "_": "378f123a"
                    },
                    "argument": null,
                    "feedback": "state.power==0",
                    "button_type": "tap",
                    "category_name": "Flame"
                },
                "6f3f8708": {
                    "_": "b744c3d3",
                    "icon": "flame_low",
                    "name": "Low Flame",
                    "action": "SetFlame",
                    "hidden": false,
                    "signal": {
                        "_": "2c5ff5f7"
                    },
                    "argument": 1,
                    "feedback": "state.power==1 and state.flame==1",
                    "button_type": "tap",
                    "category_name": "Flame"
                },
                "3e7ee73c": {
                    "_": "489d3b7c",
                    "icon": "flame_high",
                    "name": "High Flame",
                    "action": "SetFlame",
                    "hidden": false,
                    "signal": {
                        "_": "dd7fb1d2"
                    },
                    "argument": 100,
                    "feedback": "state.power==1 and state.flame==100",
                    "button_type": "tap",
                    "category_name": "Flame"
                },
                "1d521a8b": {
                    "_": "39e74c71",
                    "icon": "flame_med",
                    "name": "Med Flame",
                    "action": "SetFlame",
                    "hidden": false,
                    "signal": {
                        "_": "62752287"
                    },
                    "argument": 50,
                    "feedback": "state.power==1 and state.flame==50",
                    "button_type": "tap",
                    "category_name": "Flame"
                },
                "_": "84847c19"
            },

As for the exact ranges of n for which SetFlame(n) gives Low/Med/High, for now you are only guaranteed that SetFlame(1/50/100) gives Low/Med/High and that there is some interpolation between.

Does that help @dman2306?

1 Like

Perfect! I didn’t know about that feedback property, that’s useful.

1 Like