繁体   English   中英

Google 智能家居 - TemperatureSetting 温度范围不起作用

[英]Google Smart Home - TemperatureSetting Temperature Range not working

我制作了一个谷歌智能家居,能够通过谷歌智能家居触摸控制来控制热水器泵。 它需要控制的是所需的温度和模式(开关)。

我无法使用“加热器”设备完成这项工作,因此我使用了“恒温器”设备。

一切正常,除了一件事:温度范围。

在我的 onSync 请求中,我输入了 60F° 和 104F° 之间的范围,但它在设备上不起作用。

我的最小值是 50F°我的最大值是 90F°

这是我的 onSync 请求。

function onSync(firebaseRef) { return async (body, headers) => {

    return {
        requestId: body.requestId,
        payload: {
            agentUserId: uId,
            devices: [{
                id: pId,
                type: 'action.devices.types.THERMOSTAT',
                traits: [
                    'action.devices.traits.TemperatureSetting',
                ],
                name: {
                    defaultNames: ['My Heat Pump'],
                    name: 'Heat Pump',
                    nicknames: ['Pump'],
                },
                deviceInfo: {
                    manufacturer: 'test',
                    model: '1',
                    hwVersion: '1.0',
                    swVersion: '1.0.1',
                },
                willReportState: true,
                attributes: {

                    // TemperatureSetting
                    availableThermostatModes: 'off,heat',
                    thermostatTemperatureRange: {
                        minThresholdCelsius: 15.555,
                        maxThresholdCelsius: 40.0
                    },
                    thermostatTemperatureUnit: 'F'

                },
            }],
        },
    };
}
}

你知道如何获得良好的温度范围吗?

奖励:温度触摸控制可以与加热器等其他东西一起使用吗?

我从 Reddit 上的 u/devunwired 那里得到了这个答案:

在我的 onSync 请求中,我输入了 60F° 和 104F° 之间的范围,但它在设备上不起作用。

这是一个已知问题,即 Google Home 应用程序当前不呈现提供的温度范围(在语音查询中尊重该值)。 您可以在此处关注(并开始)功能请求: b/154169625

永久链接: https://www.reddit.com/r/GoogleAssistantDev/comments/guoyih/temperaturesetting_temperature_range/fskfx4f/

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM