I have recently added the temperature from an unsupported device (broadlink RM2 pro if anyone is interested) via the command line.
I can get hass to see the values form the call, the only issue is that I need to set the units to “°C”
I am assuming that my command line sensor temp and the other temperatures (form Australian BoM plugin) will plot on the same history graph if I have the same units (°C).
unfortunately I don’t know what symbol in the yaml file to use to get the “°” character
does anybody know how to do this I tried ° C but it spat out an error?
Could you elaborate on how you managed this. I have the Broadlink working with the RM bridge controlling some switches with Alexa. Many thanks if you can help.
I haven’t used the RM bridge app - I have been using the Tasker app compatible:
it is paid but the Dev has been working on it lately and will be adding more support for other Broadlink products (I have an S1 I am keen to get incorporated). Definitely worth the price of the app if you ask me.
Here is my current setup:
Reading Temperature form my RMPro:
I have a script returning the temperature and a command line sensor to bring the temperature back into HASS. (I should probably change this to a scrape sensor as it would make things tidier as I will not need the script)
where you replace the following:
BridgeIP is the ip of the android device with the app installed (with the bridge running on port 9876)
RM_Mac is the Mac address of the RM device
Add this to the config
# RM temperature
- platform: command_line
command: <PATH_TO_SCRIPT>
name: RM Pro Temp
unit_of_measurement: "°C"
There is a helpful API that is set up on the bridge android device at http://BridgeIP:9876/
also note that it also outputs the temperature in F if that is what you prefer in your part of the planet. you will just need to grep the last value from the output.
If have the android app installed and are running the server then you can put the script anywhere on the machine you have running HA. I have it in:
/home/pi/rmtasker/rmtemp.sh
(note that this is what you need to put in the config file as the <PATH_TO_SCRIPT> assuming that is where you have saved it. )
Don’t forget to change the <RM_Mac> and in the script to what it is on your network.
also for the location of the script you can use the same location that I have used if you like - alternatively you can use a different one if you prefer.
can you see the RM Plugin API Server page if you go to http://192.168.1.50:7474/ in your browser?
If you can visit the page then the problem is most likely with the script - if you cant see the page then you haven’t set up the server properly on your android device.
With the server running properly about half way down the API page is the URL you can call to get the temperature form the RM. It should look like this:
I am not sure what you mean by that. But I think the answer is yes, since everything is working, I use HA front end, Alexa, and is all launching commands correctly to the Broadlink