eschava / broadlink-mqtt

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

Help !! Trying to use this script in Home Assistant #33

Closed emmc closed 6 years ago

emmc commented 6 years ago

How can i record a command with a mqtt topic "broadlink/office/light1/" and payload on or off. When i do this it does't work.

it works only with the topic "broadlink/office/light1/" without the payload.

I want to integrate with the home assistant and i need the payload_on: "ON" and payload_off: "OFF"

sorry my english!!!

great job

eschava commented 6 years ago

Sorry, but currently script understands only record/reply/auto payloads I'm thinking about a new feature that will allow replaying commands using any payload.

E.g. to replay command from file "office/light1/on" you can send payload "on" to the "broadlink/office/light1" topic. But to record this command you still need to send payload "record" to the "broadlink/office/light/on" topic

Will it work?

eschava commented 6 years ago

Done