Skip to content

Cambridge Audio Azur 351R RS-232 to MQTT using and ESP8266 or ESP32

License

Notifications You must be signed in to change notification settings

IamDan77/CambridgeAudioAzur351R-RS232toMqtt

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cambridge Audio Azur 351R - RS232 to Mqtt

Cambridge Audio Azur 351R RS-232 (serial port) to MQTT using and ESP8266 or ESP32.

Azur 351R Receiver is a classic receiver without any network/smart functionalities. But it does have a serial port (RS-232) which can be used to send commands and receive response. You can find more information about the serial commands at Cambrige Audio Azur 351R support page or directly in the pdf here. In case those pages will not be available in the future, the same file can he found here I wanted to have the receiver integrated with my Home Assistant so I decided to use an ESP8266 and communicate with my Home Assistant using MQTT. I also needed an RS232 converter

Instalation

Clone this repository, rename include/definitions.example.h to include/definitions.h, edit it to your needs and compile and write the project to an ESP8266/ESP32 with PlatformIO (or whatever else suits you).

Commands implemented

  • on/off
  • volume up/down
  • mute/unmute
  • select input source
  • select audio source for input

You can also send raw commands, if you need something else that the ones above

MQTT payload examples

{"status":"on","volume":"up","input":"Aux","source":"Analogue", "rawCommand":"#5,01,"}

{"rawCommand":"#5,01,"}

{"volume":"up"}

{"mute":"on"}

{"status":"off"}

the response is going to look like this: {"status":"on","volume":-56,"isMute":false,"selectedInput":"CD/Video1","sourceType":"Analogue","stats":{"ip":"X.X.X.X","mac":"XX:XX:XX:XX:XX:XX","ssid":"Your_WIFI_SSID","rssi":-76}}

TODO:

  • create HomeAssistant custom component
  • create 3D printed case for the ESP
PS

My C kung fu is not that strong, so please excuse any badly written code. If you think you can improve and want to do so, please open a PR.

About

Cambridge Audio Azur 351R RS-232 to MQTT using and ESP8266 or ESP32

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 78.6%
  • C 21.4%