eschava / broadlink-mqtt

MQTT client to control BroadLink devices
MIT License
224 stars 61 forks source link

British General Smart Plug-through socket adaptor 240V #51

Closed bachoo786 closed 4 years ago

bachoo786 commented 4 years ago

Hi there

I have used your software to get the state of my British General Smart Plug-through socket adaptor 240V (here is the link https://www.diy.com/departments/british-general-smart-plug-through-socket-adaptor-240v/5050765176590_BQ.prd).

However, I am not able to find the command topic as such and cannot turn the socket on or off. Here are my logs:

[2019-12-28 23:56:44,753] DEBUG Connected to 'BG1' Broadlink device at '192.168.0.32' (MAC fd:29:96:42:f7:c8) and started listening for commands at MQTT topic having prefix 'broadlink/'
[2019-12-28 23:56:44,755] DEBUG Connected to MQTT broker, subscribing to topic broadlink/#
[2019-12-28 23:56:45,764] DEBUG Sending BG1 pwr '1' to topic 'broadlink/state/pwr'
[2019-12-28 23:56:45,765] DEBUG Sending BG1 maxworktime '0' to topic 'broadlink/state/maxworktime'
[2019-12-28 23:56:46,764] DEBUG Sending BG1 pwr '1' to topic 'broadlink/state/pwr'
[2019-12-28 23:56:46,765] DEBUG Sending BG1 maxworktime '0' to topic 'broadlink/state/maxworktime'
[2019-12-28 23:56:47,766] DEBUG Sending BG1 pwr '1' to topic 'broadlink/state/pwr'
[2019-12-28 23:56:47,767] DEBUG Sending BG1 maxworktime '0' to topic 'broadlink/state/maxworktime'
[2019-12-28 23:56:48,765] DEBUG Sending BG1 pwr '1' to topic 'broadlink/state/pwr'
[2019-12-28 23:56:48,765] DEBUG Sending BG1 maxworktime '0' to topic 'broadlink/state/maxworktime'
[2019-12-28 23:56:49,768] DEBUG Sending BG1 pwr '1' to topic 'broadlink/state/pwr'
[2019-12-28 23:56:49,770] DEBUG Sending BG1 maxworktime '0' to topic 'broadlink/state/maxworktime'
......
.........
............

Is this smart plug made by BG compatible with your software? If not can it be made compatible please?

Many thanks.

eschava commented 4 years ago

Have you checked this part of documentation https://github.com/eschava/broadlink-mqtt#bg1 ?

bachoo786 commented 4 years ago

Sorry? What part?

eschava commented 4 years ago

To change brightness of LED need to send value in percents to broadlink/brightness topic To switch power on (off) on all (or single only) outlets need to send command on (off) to broadlink/power topic. To switch power on (off) on outlet number N need to send command on (off) to broadlink/power/N topic. Example: switch on 2-nd outlet: on -> broadlink/power/2

bachoo786 commented 4 years ago

I did send the command or payload "on" on this topic "broadlink/power" but nothing happens.

bachoo786 commented 4 years ago

Maybe the smart plug is not supported?

bachoo786 commented 4 years ago

Can anyone please help?

eschava commented 4 years ago

The support for this device is kind of experimental You can check other issues for it at the https://github.com/eschava/broadlink-mqtt/issues/47 And also ask @barnybug (author of the BG1 module for python-broadlink library)

bachoo786 commented 4 years ago

Any further help would be very much appreciated

cgorms commented 4 years ago

Hi what are you wanting to achieve? What are you running to control the BG1... Hoobs or HomeKit?