Bond Hub, Valor Fireplace and Home Assistant

I’ve installed a Bond Hub to control, among other things, a Valor Fireplace. The Bond Hub firmware version is 2.28.0. Using the Bond Hub application I can control on/off and flame up/down functionality. I’ave added the Bond Hub to HA. I see the fireplace and can control on/off functions from HA. Unfortunately I’m not able to control flame up/down. I set up a script to adjust the flame down. When the script is executed, instead of the flame lowering, the fireplace turns off. The script is configured as a Device->Fireplace->Decrease Flame Brightness. Why is the fireplace turning off instead of lowering the flame?

EDIT: A little more information - I’ve just discovered that the Increase Flame Brightness function has no effect. The only functions that are working are on/off.

Does it work in the bond app or just not in Home Assistant?

The Bond app displays four buttons - On, off, Lower Flame, Raise flame. All buttons function correctly on the BOND application. It’s HA’s flame functions that aren’t working correctly.

The HA integration uses the SetFlame api call. It appears that your device only supports IncreaseFlame and DecreaseFlame?

http://docs-local.appbond.com/#section/Features/Flame

It looks like the underlying package supports the two calls already bond-api/action.py at master · prystupa/bond-api · GitHub

It could be added to core/light.py at dev · home-assistant/core · GitHub

If you feel up to doing a PR, this should be a reasonable template:

@bdraco, thanks for highlighting these links. My understanding of program code and API calls is extremely limited. I doubt I’d understand what changes need to be made in order to add the functionality needed. I see you contribute to various HA integrations. Any chance you could add the code necessary to support IncreaseFlame and DecreaseFlame functions? I’d be willing to assist in test.

@rcblackwell Testing instructions:

Requires 2021.12 or later

mkdir /config/custom_components
cd /config/custom_components
git clone https://github.com/bdraco/bond

Restart Home Assistant

Wow, thanks for jumping in to help out!

Running version 2021.12.10. I copied the files as instructed and rebooted HA. I see additional actions listed. I choose “Decrease Fireplace Brightness” but when the script s activated, the fireplace still shuts off. Adding the “Press Fireplace Stop Actions” to the script doesn’t change behavior. I’ve checked the “Toggle Fireplace”, “Turn Fireplace On” and “Turn Fireplace Off”. These actions work as stated.

Am I misunderstanding how the Decrease and Increase functions work or is there something else that I need to do to achieve the desired action?

Following is a screenshot showing what I’m able to select from the actions list.

Regards,
Robert

You should get an Increase Flame and Decrease Flame button in the UI.

Can you take a screenshot of the devices page?

I built it so it didn’t create the buttons if the device had the SetFlame action available since if we can set the flame to a specific level, there is no need to increase/decrease. I’m guessing your device reports that action is available even though it doesn’t work.

I just pushed another change to that repo that will always create it if the action is available regardless of the SetFlame action.

cd /config/custom_components/bond
git pull
git log -1

Restart

The git log -1 command should output something like

commit 1cb38c11c1483ba45ab93b7fdd96299bc90eabd7 (HEAD -> main, origin/main, origin/HEAD)
Author: J. Nick Koston <nick@koston.org>
Date:   Sat Jan 22 13:30:00 2022 -1000

    always create flame entities
1 Like

Seems progress is being made! Using the “Press Fireplace Decrease Flame button” or “Press Fireplace Increase Flame button” actions the following error occurred;

Logger: homeassistant.components.script.ghs_fireplace_flame_down
Source: custom_components/bond/button.py:236
Integration: Script (documentation, issues)
First occurred: 8:54:52 PM (8 occurrences)
Last logged: 8:56:13 PM

GHS - Fireplace Flame Down: Error executing script. Unexpected error for device at pos 1: 400, message=‘Bad Request’, url=URL(‘http://192.168.86.70/v2/devices/5bf5d620/actions/DecreaseFlame’)
GHS - Fireplace Flame Down: Error executing script. Unexpected error for device at pos 1: 400, message=‘Bad Request’, url=URL(‘http://192.168.86.70/v2/devices/5bf5d620/actions/IncreaseFlame’)
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/helpers/script.py”, line 381, in _async_step
await getattr(self, handler)()
File “/usr/src/homeassistant/homeassistant/helpers/script.py”, line 595, in _async_device_step
await platform.async_call_action_from_config(
File “/usr/src/homeassistant/homeassistant/components/button/device_action.py”, line 50, in async_call_action_from_config
await hass.services.async_call(
File “/usr/src/homeassistant/homeassistant/core.py”, line 1495, in async_call
task.result()
File “/usr/src/homeassistant/homeassistant/core.py”, line 1530, in _execute_service
await handler.job.target(service_call)
File “/usr/src/homeassistant/homeassistant/helpers/entity_component.py”, line 209, in handle_service
await self.hass.helpers.service.entity_service_call(
File “/usr/src/homeassistant/homeassistant/helpers/service.py”, line 663, in entity_service_call
future.result() # pop exception if have
File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 896, in async_request_call
await coro
File “/usr/src/homeassistant/homeassistant/helpers/service.py”, line 700, in _handle_entity_call
await result
File “/usr/src/homeassistant/homeassistant/components/button/init.py”, line 114, in _async_press_action
await self.async_press()
File “/config/custom_components/bond/button.py”, line 236, in async_press
await self._hub.bond.action(
File “/usr/local/lib/python3.9/site-packages/bond_api/bond.py”, line 83, in action
await self.__call(put)
File “/usr/local/lib/python3.9/site-packages/bond_api/bond.py”, line 101, in __call
return await handler(self._session)
File “/usr/local/lib/python3.9/site-packages/bond_api/bond.py”, line 81, in put
response.raise_for_status()
File “/usr/local/lib/python3.9/site-packages/aiohttp/client_reqrep.py”, line 1004, in raise_for_status
raise ClientResponseError(
aiohttp.client_exceptions.ClientResponseError: 400, message=‘Bad Request’, url=URL(‘http://192.168.86.70/v2/devices/5bf5d620/actions/DecreaseFlame’)

Prior to the latest update, no errors were noted.

Would it be helpful to have me pull information from the BOND Hub using curl commands? I’m sure I can figure that out if it would be hepful.

1 Like

That would be fantastic as I’m shooting in the dark a bit without actually having one of these fireplaces

Here are the commands and signals that were found for the Fireplace on the Bond Hub;

robert@Ubuntu-VM:~$ curl -iH "bond-Token: XXXXXXXXXXXXXXXX" http://192.168.86.70/v2/devices
HTTP/1.1 200 OK
Content-Length: 74
Content-Type: application/json; charset=utf-8

{"_":"1d913f0a","14c81447":{"_":"82c8e2a6"},"5bf5d620":{"_":"91a7afd4"}}
robert@Ubuntu-VM:~$ curl -iH "bond-Token: XXXXXXXXXXXXXXXX" http://192.168.86.70/v2/devices/5bf5d620
HTTP/1.1 200 OK
Content-Length: 277
Content-Type: application/json; charset=utf-8

{"name":"Fireplace","type":"FP","location":"Living Room","actions":["IncreaseFlame","TurnOff","TurnOn","DecreaseFlame","Stop","TogglePower","SetFlame"],"_":"91a7afd4","commands":{"_":"3f8b0b53"},"state":{"_":"aaf71676"},"properties":{"_":"460a89e3"},"skeds":{"_":"a22dcb44"}}
robert@Ubuntu-VM:~$ curl -iH "bond-Token: XXXXXXXXXXXXXXXX" http://192.168.86.70/v2/devices/5bf5d620/commands
HTTP/1.1 200 OK
Content-Length: 130
Content-Type: application/json; charset=utf-8

{"_":"3f8b0b53","09844ad9":{"_":"fc16ea79"},"55f52680":{"_":"f0c6effa"},"3b303218":{"_":"e71d6b5e"},"50dd0d26":{"_":"28f41874"}}
robert@Ubuntu-VM:~$ curl -iH "bond-Token: XXXXXXXXXXXXXXXX" http://192.168.86.70/v2/devices/5bf5d620/commands/09844ad9
HTTP/1.1 200 OK
Content-Length: 207
Content-Type: application/json; charset=utf-8

{"name":"Up","action":"IncreaseFlame","argument":1,"button_type":"tap","category_name":"Flame","feedback":"","icon":"flame_up","hidden":false,"_":"fc16ea79","signal":{"_":"c534c6ce"},"tx":{"_":"aa2296ee"}}
robert@Ubuntu-VM:~$ curl -iH "bond-Token: XXXXXXXXXXXXXXXX" http://192.168.86.70/v2/devices/5bf5d620/commands/09844ad9/signal
HTTP/1.1 200 OK
Content-Length: 6257
Content-Type: application/json; charset=utf-8

{"freq":315000,"bps":40000,"deviation":0,"reps":1,"modulation":"OOK","encoding":"hex","data":"FFE000000FFFFFF000FFFFFF0003FFFFF0007FFFFF8003FFFFF8003FFFFF8003FFFFF8003FFFFF8003FF8000003FFFFFC003FFFFFC001FFC000000FFE000000FFE000000FFFFFE000FFE000000FFFFFF000FFFFFF0007FFFFF8003FF8000003FFFFFC003FFFFFC0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000FFE000000FFFFFE000FFFFFE000FFFFFF000FFFFFF0003FFFFF8003FFFFF8003FFFFF8003FFFFFC003FFC000000FFFFFE000FFFFFE000FFE000000FFF000000FFF0000007FFFFF8003FF8000003FFFFFC003FFFFFC000FFFFFC000FFC000000FFFFFE000FFFFFE00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000FFC000000FFFFFE000FFFFFE000FFFFFE000FFFFFF000FFFFFF0007FFFFF0003FFFFF0003FFFFF0003FF0000003FFFFF8003FFFFF8003FF8000003FFC000003FFC000001FFFFFE000FFE000000FFFFFE000FFFFFE000FFFFFF000FFF0000003FFFFF8003FFFFF800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000FFE000000FFFFFF000FFFFFF0003FFFFF8003FFFFF8003FFFFF8003FFFFFC003FFFFFC000FFFFFC000FFC000000FFFFFE000FFFFFE000FFE000000FFF000000FFF0000007FFFFF8003FF8000003FFFFFC003FFFFFC000FFFFFE000FFE000000FFFFFF000FFFFFF000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003FF0000003FFFFF0003FFFFF0003FFFFF0003FFFFF8003FFFFF8003FFFFFC003FFFFFC000FFFFFC000FFC000000FFFFFE000FFFFFE000FFE000000FFF000000FFF0000003FFFFF8003FF8000003FFFFFC003FFFFFC000FFFFFE000FFE000000FFFFFF000FFFFFF000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003FF8000003FFFFFC003FFFFFC000FFFFFC000FFFFFE000FFFFFE000FFFFFE000FFFFFF000FFFFFF0003FF0000003FFFFF8003FFFFF8003FF8000003FFC000003FFC000000FFFFFE000FFE000000FFFFFF000FFFFFF0003FFFFF0003FF0000003FFFFF8003FFFFF800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003FFC000000FFFFFE000FFFFFE000FFFFFE000FFFFFF000FFFFFF0003FFFFF0003FFFFF8003FFFFF8003FF8000003FFFFFC003FFFFFC000FFC000000FFE000000FFE000000FFFFFF000FFF0000003FFFFF8003FFFFF8003FFFFF8003FF8000003FFFFFC003FFFFFC00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000FFE000000FFFFFF0007FFFFF0003FFFFF8003FFFFF8003FFFFFC003FFFFFC000FFFFFC000FFFFFE000FFE000000FFFFFF0007FFFFF0003FF0000003FF8000003FF8000003FFFFFC003FFC000000FFFFFE000FFFFFE000FFFFFF000FFF0000003FFFFF8003FFFFF80000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000FFF0000003FFFFF8003FFFFF8003FFFFFC003FFFFFC000FFFFFE000FFFFFE000FFFFFF000FFFFFF0003FF0000003FFFFF8003FFFFF8003FF8000003FFC000003FFC000000FFFFFE000FFE000000FFFFFF000FFFFFF0003FFFFF0003FF0000003FFFFF8003FFFFF80000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","_":"c534c6ce"}
robert@Ubuntu-VM:~$ curl -iH "bond-Token: XXXXXXXXXXXXXXXX" http://192.168.86.70/v2/devices/5bf5d620/commands/55f52680
HTTP/1.1 200 OK
Content-Length: 220
Content-Type: application/json; charset=utf-8

{"name":"Off","action":"TurnOff","argument":null,"button_type":"tap","category_name":"Flame","feedback":"state.power==0","icon":"power_off","hidden":false,"_":"f0c6effa","signal":{"_":"9b5cfc8c"},"tx":{"_":"12d40b98"}}
robert@Ubuntu-VM:~$ curl -iH "bond-Token: XXXXXXXXXXXXXXXX" http://192.168.86.70/v2/devices/5bf5d620/commands/55f52680/signal
HTTP/1.1 200 OK
Content-Length: 6257
Content-Type: application/json; charset=utf-8

{"freq":315000,"bps":40000,"deviation":0,"reps":1,"modulation":"OOK","encoding":"hex","data":"FFF000000FFFFFF000FFFFFF0003FFFFF0003FFFFF8003FFFFF8003FFFFFC003FFFFFC000FFFFFC000FFE000000FFFFFE000FFFFFE000FFE000000FFF000000FFF0000003FFFFF8003FF8000003FFFFF8003FFFFF8003FF8000003FFFFFC003FFFFFC000FFFFFC0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000FFE000000FFFFFF000FFFFFF0003FFFFF0003FFFFF0003FFFFF0003FFFFF8003FFFFF8003FFFFF8003FF8000003FFFFFC003FFFFFC000FFC000000FFE000000FFE000000FFFFFE000FFE000000FFFFFF000FFFFFF0003FF0000003FFFFF8003FFFFF8003FFFFFC0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000FFE000000FFFFFF000FFFFFF0003FFFFF0003FFFFF8003FFFFF8003FFFFF8003FFFFFC003FFFFFC000FFC000000FFFFFE000FFFFFE000FFE000000FFF000000FFF0000007FFFFF0007FF0000003FFFFF8003FFFFF8003FF8000003FFFFFC003FFFFFC000FFFFFE000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003FF8000003FFFFF8003FFFFF8003FFFFFC003FFFFFC001FFFFFC000FFFFFE000FFFFFE000FFFFFF000FFF0000003FFFFF8003FFFFF8003FF8000003FFC000003FFC000000FFFFFE000FFE000000FFFFFF000FFFFFF0003FF0000003FFFFF8003FFFFF8003FFFFFC00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000FFE000000FFFFFF000FFFFFF0003FFFFF0003FFFFF8003FFFFF8003FFFFFC003FFFFFC000FFFFFC000FFC000000FFFFFE000FFFFFE000FFE000000FFF000000FFF0000007FFFFF8003FF8000003FFFFFC003FFFFFC000FFC000000FFFFFE000FFFFFE000FFFFFF0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000FFE000000FFFFFF000FFFFFF0003FFFFF0003FFFFF8003FFFFF8003FFFFF8003FFFFFC003FFFFFC000FFC000000FFFFFE000FFFFFE000FFE000000FFF000000FFF0000003FFFFF8003FF8000003FFFFFC003FFFFFC001FFC000000FFFFFE000FFFFFE000FFFFFE00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003FFC000003FFFFFC003FFFFFC000FFFFFC000FFFFFC000FFFFFC000FFFFFE000FFFFFE000FFFFFE000FFE000000FFFFFF000FFFFFF0003FF0000003FF8000003FF8000003FFFFF8003FF8000003FFFFFC003FFFFFC000FFC000000FFFFFE000FFFFFE000FFFFFE00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003FFC000000FFFFFE000FFFFFE000FFFFFE000FFFFFF000FFFFFF0007FFFFF0003FFFFF8003FFFFF8003FF8000003FFFFFC003FFFFFC000FFC000000FFE000000FFE000000FFFFFE000FFE000000FFFFFF000FFFFFF0003FF0000003FFFFF8003FFFFF8003FFFFF800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003FF8000003FFFFF8003FFFFF8003FFFFFC003FFFFFC000FFFFFC000FFFFFE000FFFFFE000FFFFFF000FFF0000003FFFFF8003FFFFF8003FF8000003FFC000003FFC000001FFFFFE000FFE000000FFFFFF000FFFFFF0003FF0000003FFFFF8003FFFFF8003FFFFF800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","_":"9b5cfc8c"}
HTTP/1.1 200 OK
Content-Length: 217
Content-Type: application/json; charset=utf-8

{"name":"On","action":"TurnOn","argument":null,"button_type":"tap","category_name":"Flame","feedback":"state.power==1","icon":"power_on","hidden":false,"_":"e71d6b5e","signal":{"_":"d0afbd9f"},"tx":{"_":"0bb481a4"}}
robert@Ubuntu-VM:~$ curl -iH "bond-Token: XXXXXXXXXXXXXXXX" http://192.168.86.70/v2/devices/5bf5d620/commands/3b303218/signal
HTTP/1.1 200 OK
Content-Length: 6257
Content-Type: application/json; charset=utf-8

{"freq":315000,"bps":40000,"deviation":0,"reps":1,"modulation":"OOK","encoding":"hex","data":"FFE000FFE000000FFFFFF000FFFFFF0007FFFFF8003FFFFF8003FFFFF8003FFFFFC003FFFFFC001FFFFFE000FFE000000FFFFFF000FFFFFF0007FF0000007FF8000003FF8000003FFFFFC003FFC000001FFFFFE000FFFFFE000FFE000000FFF000000FFFFFF0007FFFFF00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003FFC000003FFFFFE000FFFFFE000FFFFFE000FFFFFF000FFFFFF0007FFFFF0007FFFFF8003FFFFF8003FF8000003FFFFFC003FFFFFC001FFC000000FFE000000FFE000000FFFFFF000FFF0000007FFFFF8003FFFFF8003FF8000003FFC000003FFFFFC001FFFFFC000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000FFF0000007FFFFF8003FFFFF8003FFFFF8003FFFFFC003FFFFFC001FFFFFE000FFFFFE000FFFFFF000FFF0000007FFFFF8003FFFFFC003FFC000003FFC000001FFC000001FFFFFE000FFE000000FFFFFF000FFFFFF0007FF0000003FF8000003FFFFF8003FFFFF80000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003FFC000001FFFFFE000FFFFFE000FFFFFE000FFFFFF000FFFFFF0007FFFFF8003FFFFF8003FFFFFC003FFC000001FFFFFE000FFFFFE000FFE000000FFF000000FFF0000007FFFFF8003FF8000003FFFFF8003FFFFFC003FFC000001FFE000000FFFFFE000FFFFFE000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003FF8000003FFFFF8003FFFFFC003FFFFFC003FFFFFC001FFFFFE000FFFFFE000FFFFFE000FFFFFF000FFF0000007FFFFF8003FFFFF8003FF8000003FFC000003FFC000001FFFFFE000FFE000000FFFFFF000FFFFFF0007FF0000007FF8000003FFFFF8003FFFFF800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000FFE000000FFFFFE000FFFFFE000FFFFFF000FFFFFF0007FFFFF8003FFFFF8003FFFFFC003FFFFFC001FFC000000FFFFFE000FFFFFE000FFE000000FFF000000FFF0000007FFFFF0007FF0000007FFFFF8003FFFFF8003FF8000003FFC000003FFFFFC001FFFFFC00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000FFE000000FFFFFE000FFFFFE000FFFFFF000FFFFFF0007FFFFF8003FFFFF8003FFFFF8003FFFFFC003FFC000001FFFFFE000FFFFFE000FFE000000FFF000000FFF0000007FFFFF8003FF8000003FFFFFC003FFFFFC001FFC000001FFE000000FFFFFE000FFFFFE000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000FFF0000007FFFFF8003FFFFF8003FFFFF8003FFFFFC003FFFFFC001FFFFFE000FFFFFE000FFFFFE000FFE000000FFFFFF000FFFFFF0007FF0000007FF8000003FF8000003FFFFFC003FFC000001FFFFFE000FFFFFE000FFE000000FFF000000FFFFFF0007FFFFF000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007FF0000007FFFFF8003FFFFF8003FFFFFC003FFFFFC001FFFFFE000FFFFFE000FFFFFF000FFFFFF0007FF0000007FFFFF8003FFFFF8003FF8000003FFC000003FFC000001FFFFFE000FFE000000FFFFFF000FFFFFF0007FF0000007FF8000003FFFFF8003FFFFF80000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","_":"d0afbd9f"}
robert@Ubuntu-VM:~$ curl -iH "bond-Token: XXXXXXXXXXXXXXXX" http://192.168.86.70/v2/devices/5bf5d620/commands/50dd0d26
HTTP/1.1 200 OK
Content-Length: 211
Content-Type: application/json; charset=utf-8

{"name":"Down","action":"DecreaseFlame","argument":1,"button_type":"tap","category_name":"Flame","feedback":"","icon":"flame_down","hidden":false,"_":"28f41874","signal":{"_":"ec7d2da8"},"tx":{"_":"5a2bb133"}}
robert@Ubuntu-VM:~$ curl -iH "bond-Token: XXXXXXXXXXXXXXXX" http://192.168.86.70/v2/devices/5bf5d620/commands/50dd0d26/signal
HTTP/1.1 200 OK
Content-Length: 6257
Content-Type: application/json; charset=utf-8

{"freq":315000,"bps":40000,"deviation":0,"reps":1,"modulation":"OOK","encoding":"hex","data":"FFF0007FF0000007FFFFF8007FFFFF8007FFFFF8003FFFFFC001FFFFFC001FFFFFC001FFFFFE001FFFFFE001FFE000000FFFFFF0007FFFFF0007FF0000007FF8000007FF8000003FFFFFC001FFC000001FFE000001FFE000000FFE000000FFF0000007FF0000007FF00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000FFE000000FFFFFF0007FFFFF0007FFFFF0007FFFFF8007FFFFF8003FFFFF8003FFFFFC001FFFFFC001FFC000001FFFFFE001FFFFFE000FFE000000FFF0000007FF0000007FFFFF8007FF8000003FFC000001FFC000001FFC000001FFE000001FFE000000FFE00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000FFF0000007FFFFF0007FFFFF0007FFFFF0007FFFFF8007FFFFF8003FFFFFC001FFFFFC001FFFFFC001FFC000001FFFFFE001FFFFFE000FFF0000007FF0000007FF8000007FFFFF8003FF8000003FFC000001FFC000001FFC000001FFE000001FFE000000FFE00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007FF0000007FFFFF8007FFFFF8007FFFFF8003FFFFFC001FFFFFC001FFFFFC001FFFFFE001FFFFFE001FFE000000FFFFFF0007FFFFF0007FF0000007FF8000007FF8000003FFFFFC001FFC000001FFE000001FFE000000FFE000000FFF0000007FF0000007FF00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007FF0000007FFFFF8007FFFFF8003FFFFFC001FFFFFC001FFFFFE001FFFFFE000FFFFFF0007FFFFF0007FF0000007FFFFF8007FFFFF8003FF8000003FFC000001FFC000001FFFFFE001FFE000000FFF0000007FF0000007FF0000007FF8000007FF8000003FF8000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001FFE000000FFFFFF0007FFFFF0007FFFFF0007FFFFF0007FFFFF8007FFFFF8007FFFFFC001FFFFFC001FFC000001FFFFFE001FFFFFE001FFE000000FFF0000007FF0000007FFFFF8007FF8000007FF8000003FFC000001FFC000001FFC000001FFE000001FFE000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003FF8000003FFFFFC001FFFFFC001FFFFFE001FFFFFE000FFFFFF0007FFFFF0007FFFFF0007FFFFF0007FF0000007FFFFF8007FFFFF8003FF8000003FFC000001FFC000001FFFFFE001FFE000000FFF0000007FF0000007FF0000007FF8000007FF8000003FF800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007FF8000003FFFFFC001FFFFFC001FFFFFC001FFFFFE001FFFFFE001FFFFFE000FFFFFF0007FFFFF0007FF0000007FFFFF8007FFFFF8003FFC000001FFC000001FFC000001FFFFFE001FFE000000FFF0000007FF0000007FF0000007FF8000007FF8000003FF800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007FF8000003FFFFFC001FFFFFC001FFFFFE001FFFFFE000FFFFFE000FFFFFF0007FFFFF0007FFFFF8007FF8000003FFFFFC001FFFFFC001FFC000001FFE000001FFE000000FFFFFF0007FF0000007FF8000007FF8000003FF8000003FFC000001FFC000001FFC0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","_":"ec7d2da8"}

Please let me know if you need any other detail.

Thank you

Does the curl -iH "bond-Token: XXXXXXXXXXXXXXXX" -X PUT -d '{"argument": 50}' http://192.168.86.70/v2/devices/5bf5d620/actions/SetFlame api work as expected when you call it via curl?

Unfortunately not. The action doesn’t change anything. Here’s the console output;

curl -iH "bond-Token: XXXXXXXXXXXXXXXX" -X PUT -d '{"argument": 50}' http://192.168.86.70/v2/devices/5bf5d620/actions/SetFlame
HTTP/1.1 200 OK
Content-Length: 32
Content-Type: application/json; charset=utf-8

{"argument":50,"_":"95a27dd4"}

In case it matters, there are two buttons on the remote that control flame height. Pressing the Up button causes the flame to increase in height. Each press increases the flame by a preset amount. The other button, Down, causes the flame to decrease in height. Also by a preset amount. Continuing to press the flame Down button will, when it reaches it’s lowest setting, turn the fireplace off.

Following the example provided, I tried a few other commands. The following works to lower the flame one step at a time. The command acts the same why the remote does. Issue once, the flame lowers one step.

robert@Ubuntu-VM:~$ curl -H "bond-Token: XXXXXXXXXXXXXXXX" -i http://192.168.86.70/v2/devices/5bf5d620/actions/DecreaseFlame -X PUT -d '{"argument": 10}'
HTTP/1.1 200 OK
Content-Length: 32
Content-Type: application/json; charset=utf-8

{"argument":10,"_":"d72385f7"}

The following works to raise the flame one step at a time. The command acts the same why the remote does. Issue once, the flame raises one step.

robert@Ubuntu-VM:~$ curl -H "bond-Token: 800f5eb03c232eaf" -i http://192.168.86.70/v2/devices/5bf5d620/actions/DecreaseFlame -X PUT -d '{"argument": 10}'
HTTP/1.1 200 OK
Content-Length: 32
Content-Type: application/json; charset=utf-8

{"argument":10,"_":"d72385f7"}

Okay great, I had assumed it was just a signal to increase or decrease, and no value was required. I’ll do another turn and upload when I get home from breakfast.

I’ve tinkered a little more with values and found that it doesn’t seem to make a difference. I tried 1, 9 and 10. Each transmission resulted in the same degree of operation at the fireplace valve.

Appreciate your assistance - I’m heading out for the afternoon. Dinner with friends an hour west of us. I won’t be able to test any changes until tomorrow, at the earliest. Enjoy your breakfast.

1 Like

Changes pushed

cd /config/custom_components/bond
git pull
git log -1

Restart

The git log -1 command should output something like

commit b4ebfa6eeecafe532e2c9f42a4018da6c2106358 (HEAD -> main, origin/main, origin/HEAD)
Author: J. Nick Koston <nick@koston.org>
Date:   Sun Jan 23 09:29:38 2022 -1000

    Pass a step size for flame
1 Like