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

 找回密码
 立即注册
楼主: lovinggrey

Sonoff POW接入Home Assistant

  [复制链接]

7

主题

235

帖子

1374

积分

金牌会员

Rank: 6Rank: 6

积分
1374
金钱
1129
HASS币
20
发表于 2017-8-18 15:06:21 | 显示全部楼层
谢谢分享
回复

使用道具 举报

8

主题

174

帖子

626

积分

高级会员

Rank: 4

积分
626
金钱
452
HASS币
0

最佳新人

发表于 2017-8-23 11:00:05 | 显示全部楼层
这个设备 能不能接两个物理开关
回复

使用道具 举报

0

主题

21

帖子

159

积分

注册会员

Rank: 2

积分
159
金钱
138
HASS币
0
发表于 2017-8-25 09:46:21 | 显示全部楼层
谢谢,学习了。正在研究中。
回复

使用道具 举报

20

主题

700

帖子

3106

积分

论坛元老

Rank: 8Rank: 8

积分
3106
金钱
2406
HASS币
0
发表于 2017-9-4 18:27:19 | 显示全部楼层


ESPsonoff_POW-v1.01:76: error: no matching function for call to 'PubSubClient:ubSubClient(WiFiClient&, const char [14], int)'

PubSubClient mqttClient(wifiClient, MQTT_SERVER, MQTT_PORT);

                                                           ^

C:\ESPsonoff_POW-v1.01\ESPsonoff_POW-v1.01.ino:76:59: note: candidates are:

In file included from C:\ESPsonoff_POW-v1.01\ESPsonoff_POW-v1.01.ino:35:0:

C:\Users\chinesekongfu\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:117:4: note: PubSubClient:ubSubClient(const char*, uint16_t, std::function<void(char*, unsigned char*, unsigned int)>, Client&, Stream&)

    PubSubClient(const char*, uint16_t, MQTT_CALLBACK_SIGNATURE,Client& client, Stream&);

    ^

C:\Users\chinesekongfu\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:117:4: note:   candidate expects 5 arguments, 3 provided

C:\Users\chinesekongfu\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:116:4: note: PubSubClient:ubSubClient(const char*, uint16_t, std::function<void(char*, unsigned char*, unsigned int)>, Client&)

    PubSubClient(const char*, uint16_t, MQTT_CALLBACK_SIGNATURE,Client& client);

    ^

C:\Users\chinesekongfu\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:116:4: note:   candidate expects 4 arguments, 3 provided

C:\Users\chinesekongfu\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:115:4: note: PubSubClient:ubSubClient(const char*, uint16_t, Client&, Stream&)

    PubSubClient(const char*, uint16_t, Client& client, Stream&);

    ^

C:\Users\chinesekongfu\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:115:4: note:   candidate expects 4 arguments, 3 provided

C:\Users\chinesekongfu\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:114:4: note: PubSubClient:ubSubClient(const char*, uint16_t, Client&)

    PubSubClient(const char*, uint16_t, Client& client);

    ^

C:\Users\chinesekongfu\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:114:4: note:   no known conversion for argument 1 from 'WiFiClient' to 'const char*'

C:\Users\chinesekongfu\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:113:4: note: PubSubClient:ubSubClient(uint8_t*, uint16_t, std::function<void(char*, unsigned char*, unsigned int)>, Client&, Stream&)

    PubSubClient(uint8_t *, uint16_t, MQTT_CALLBACK_SIGNATURE,Client& client, Stream&);

    ^

C:\Users\chinesekongfu\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:113:4: note:   candidate expects 5 arguments, 3 provided

C:\Users\chinesekongfu\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:112:4: note: PubSubClient:ubSubClient(uint8_t*, uint16_t, std::function<void(char*, unsigned char*, unsigned int)>, Client&)

    PubSubClient(uint8_t *, uint16_t, MQTT_CALLBACK_SIGNATURE,Client& client);

    ^

C:\Users\chinesekongfu\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:112:4: note:   candidate expects 4 arguments, 3 provided

C:\Users\chinesekongfu\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:111:4: note: PubSubClient:ubSubClient(uint8_t*, uint16_t, Client&, Stream&)

    PubSubClient(uint8_t *, uint16_t, Client& client, Stream&);

    ^

C:\Users\chinesekongfu\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:111:4: note:   candidate expects 4 arguments, 3 provided

C:\Users\chinesekongfu\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:110:4: note: PubSubClient:ubSubClient(uint8_t*, uint16_t, Client&)

    PubSubClient(uint8_t *, uint16_t, Client& client);

    ^

C:\Users\chinesekongfu\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:110:4: note:   no known conversion for argument 1 from 'WiFiClient' to 'uint8_t* {aka unsigned char*}'

C:\Users\chinesekongfu\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:109:4: note: PubSubClient:ubSubClient(IPAddress, uint16_t, std::function<void(char*, unsigned char*, unsigned int)>, Client&, Stream&)

    PubSubClient(IPAddress, uint16_t, MQTT_CALLBACK_SIGNATURE,Client& client, Stream&);

    ^

C:\Users\chinesekongfu\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:109:4: note:   candidate expects 5 arguments, 3 provided

C:\Users\chinesekongfu\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:108:4: note: PubSubClient::PubSubClient(IPAddress, uint16_t, std::function<void(char*, unsigned char*, unsigned int)>, Client&)

    PubSubClient(IPAddress, uint16_t, MQTT_CALLBACK_SIGNATURE,Client& client);

    ^

C:\Users\chinesekongfu\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:108:4: note:   candidate expects 4 arguments, 3 provided

C:\Users\chinesekongfu\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:107:4: note: PubSubClient::PubSubClient(IPAddress, uint16_t, Client&, Stream&)

    PubSubClient(IPAddress, uint16_t, Client& client, Stream&);

    ^

C:\Users\chinesekongfu\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:107:4: note:   candidate expects 4 arguments, 3 provided

C:\Users\chinesekongfu\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:106:4: note: PubSubClient::PubSubClient(IPAddress, uint16_t, Client&)

    PubSubClient(IPAddress, uint16_t, Client& client);

    ^

C:\Users\chinesekongfu\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:106:4: note:   no known conversion for argument 1 from 'WiFiClient' to 'IPAddress'

C:\Users\chinesekongfu\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:105:4: note: PubSubClient::PubSubClient(Client&)

    PubSubClient(Client& client);

    ^

C:\Users\chinesekongfu\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:105:4: note:   candidate expects 1 argument, 3 provided

C:\Users\chinesekongfu\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:104:4: note: PubSubClient::PubSubClient()

    PubSubClient();

    ^

C:\Users\chinesekongfu\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:104:4: note:   candidate expects 0 arguments, 3 provided

C:\Users\chinesekongfu\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:84:7: note: PubSubClient::PubSubClient(const PubSubClient&)

class PubSubClient {

       ^

C:\Users\chinesekongfu\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:84:7: note:   candidate expects 1 argument, 3 provided

C:\Users\chinesekongfu\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:84:7: note: PubSubClient::PubSubClient(PubSubClient&&)

C:\Users\chinesekongfu\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:84:7: note:   candidate expects 1 argument, 3 provided

ESPsonoff_POW-v1.01:80: error: 'MQTT' does not name a type

void callback(const MQTT::Publish& pub) {

                     ^

ESPsonoff_POW-v1.01:80: error: expected unqualified-id before '&' token

void callback(const MQTT::Publish& pub) {

                                  ^

ESPsonoff_POW-v1.01:80: error: expected ')' before '&' token

ESPsonoff_POW-v1.01:80: error: expected initializer before 'pub'

void callback(const MQTT::Publish& pub) {

                                    ^

ESPsonoff_POW-v1.01:80: error: 'MQTT' does not name a type

void callback(const MQTT::Publish& pub) {

                     ^

ESPsonoff_POW-v1.01:80: error: expected unqualified-id before '&' token

void callback(const MQTT::Publish& pub) {

                                  ^

ESPsonoff_POW-v1.01:80: error: expected ')' before '&' token

ESPsonoff_POW-v1.01:80: error: expected initializer before 'pub'

void callback(const MQTT::Publish& pub) {

                                    ^

exit status 1
no matching function for call to 'PubSubClient::PubSubClient(WiFiClient&, const char [14], int)'
回复

使用道具 举报

6

主题

168

帖子

605

积分

高级会员

Rank: 4

积分
605
金钱
437
HASS币
0
发表于 2017-9-26 17:03:40 | 显示全部楼层
楼主怎么连接无线的?我买的是dual版的,能成功刷机,就是连不上WiFi
回复

使用道具 举报

11

主题

359

帖子

2478

积分

金牌会员

Rank: 6Rank: 6

积分
2478
金钱
2119
HASS币
0
发表于 2017-10-30 21:05:03 | 显示全部楼层
太感谢了,还有请问怎么让他显示到homekit里
回复

使用道具 举报

0

主题

29

帖子

99

积分

注册会员

Rank: 2

积分
99
金钱
70
HASS币
0
发表于 2017-12-1 00:49:45 来自手机 | 显示全部楼层
感謝分享
回复

使用道具 举报

40

主题

393

帖子

1764

积分

金牌会员

Rank: 6Rank: 6

积分
1764
金钱
1366
HASS币
0
发表于 2017-12-8 21:57:09 | 显示全部楼层
编译出错是什么原因
回复

使用道具 举报

16

主题

281

帖子

1515

积分

版主

Rank: 7Rank: 7Rank: 7

积分
1515
金钱
1224
HASS币
0

教程狂人卓越贡献

 楼主| 发表于 2017-12-28 01:22:06 | 显示全部楼层
pcping 发表于 2017-12-8 21:57
编译出错是什么原因

检查库文件..我已经换成Tasmota了.虽然启动慢点,但是能显示的数据更多.
回复

使用道具 举报

0

主题

122

帖子

481

积分

中级会员

Rank: 3Rank: 3

积分
481
金钱
359
HASS币
0
发表于 2019-6-10 16:46:13 | 显示全部楼层
Sonoff POW,感觉这个接入后,可以接在射频控制的电器的插座上,根据功率大小判断设备的状态。
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-23 14:54 , Processed in 0.059789 second(s), 31 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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