『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 3080|回复: 0

[流程系列] Node-Red中http请求怎么用

[复制链接]

19

主题

197

帖子

775

积分

高级会员

Rank: 4

积分
775
金钱
578
HASS币
0
发表于 2019-10-14 17:09:04 | 显示全部楼层 |阅读模式
有没有HTTP请求方面的例子,  最近网上发现可以用http请求的方式控制CONTROL4里的设备的插件
试了一下的确可以, 但是不会用NODE-RED

  • Get the current level of dimmer light: http://CONTROLLER_IP:9000/?command=get&proxyID=25&variableID=1001
Result: {"1001":"75"} which means the dimmer light with proxyID 25 is currently at 75%

  • Update the current level of dimmer light: http://CONTROLLER_IP:9000/?command=set&proxyID=25&variableID=1001&newValue=100
Result: {"success":"true"}

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-5-15 02:20 , Processed in 0.082787 second(s), 22 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表