Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Low/High flame for Fireplace #117

Open
kavakia opened this issue Nov 10, 2020 · 15 comments
Open

Low/High flame for Fireplace #117

kavakia opened this issue Nov 10, 2020 · 15 comments

Comments

@kavakia
Copy link

kavakia commented Nov 10, 2020

Hi,

Any plans on adding this in the future? Seems like bond captures the functionality and I can higher/lower the flame from the bond hub app. Would be nice to see it on homekit as well

11/8/2020, 7:04:38 PM [Bond] Configuring Accessory: Living Room Fireplace
11/8/2020, 7:04:38 PM [Bond] [Fireplace] actions: TurnOn,TurnOff,IncreaseFlame,DecreaseFlame,Stop,TogglePower,SetFlame

Not that familiar with homebridge or coding.

Thanks

@aarons22
Copy link
Owner

Hi @kavakia - Are you thinking this would operate similar to a lightbulb where flame can be controlled with lightbulb brightness? There isn't a Fireplace type in Homekit, so it would likely appear as a dimmable light.

@kavakia
Copy link
Author

kavakia commented Dec 15, 2020 via email

@aarons22
Copy link
Owner

The best I could do here is what the Bond hub app does, which would be to expose two buttons: one for increase flame, one for decrease. Unless Bond starts tracking the state of the flame, I wouldn't be able to expose it as a brightness slider since I will never actually know what the current flame "value" is.

These two buttons would just be switches in HomeKit, since that's the only way to expose these things. I'm already doing something similar for light increase/decrease brightness when state isn't available.

@IMNotMax
Copy link

IMNotMax commented Mar 4, 2021

Hi there. First of all, great job ! I bought a bond hub as soon I discovered your homebridge plugin ! (you should ask for rewards ;) ).
I have a fireplace (Jötul) and the on/off works great.
the bond app and my alexa can control the flame, like a dimmer light (but I would prefer the fan speed method 1-2-3).
If this could help, I copy below the payload of the fireplace.

Fell free to ask if you want (beta)testers :)

`curl -H "BOND-Token: xxxxxxxxxxxxxxxx" -i http://yyyy.yyy.yyyy.yyyy/v2/devices/17edbe8e
HTTP/1.1 200 OK
Content-Length: 350
Content-Type: application/json; charset=utf-8

{"name":"Foyer","type":"FP","location":"Salon","actions":["SetFlame","SetFpFan","TurnOn","TurnLightOff","IncreaseFlame","TurnFpFanOff","TurnOff","TurnFpFanOn","TurnLightOn","DecreaseFlame","Stop","TogglePower","ToggleLight"],"":"086e50a1","commands":{"":"8907c896"},"state":{"":"df0e05e1"},"properties":{"":"80f0c5b3"},"skeds":{"_":"b02acedd"}}`

The bond app (looks like the API does not expose Low-Medium-High flame...)
image

And the Alexa App (in french.. sorry)
image

@aarons22
Copy link
Owner

aarons22 commented Mar 5, 2021

hi @IMNotMax - what would be helpful is if you could enable debug mode and look through the logs for a message starting with "UDP Message received from" after adjusting the flame level in the bond app. That will help me understand how the state of the fireplace changes!

@aarons22
Copy link
Owner

aarons22 commented Mar 5, 2021

You can also do a CURL request to get the state directly after changing it: http://yyyy.yyy.yyyy.yyyy/v2/devices/17edbe8e/state

@IMNotMax
Copy link

Sorry for the delay... didn't see the notification.

Here the curl result before, during and after playing with the up and down button on the bond app

The "flame" value changes (50 was just the ON button)
I noticed the bond bridge does not send every flame step to the fireplace.

pi@RaspDev:~ $ curl -H "BOND-Token: xxxxxxxxxxxxxxxx" -i http://yyy.yyy.yyy.yyy/v2/devices/17edbe8e/
HTTP/1.1 200 OK
Content-Length: 350
Content-Type: application/json; charset=utf-8

{"name":"Foyer","type":"FP","location":"Salon","actions":["SetFlame","SetFpFan","TurnOn","TurnLightOff","IncreaseFlame","TurnFpFanOff","TurnOff","TurnFpFanOn","TurnLightOn","DecreaseFlame","Stop","TogglePower","ToggleLight"],"_":"9a76276e","commands":{"_":"50b6e3c1"},"state":{"_":"0479f5a0"},"properties":{"_":"60cb7d05"},"skeds":{"_":"5256d04f"}}
pi@RaspDev:~ $ curl -H "BOND-Token: xxxxxxxxxxxxxxxx" -i http://yyy.yyy.yyy.yyy/v2/devices/17edbe8e/state
HTTP/1.1 200 OK
Content-Length: 81
Content-Type: application/json; charset=utf-8

{"power":1,"light":0,"flame":50,"fpfan_power":0,"fpfan_speed":1,"_":"0479f5a0"}
pi@RaspDev:~ $ curl -H "BOND-Token: xxxxxxxxxxxxxxxx" -i http://yyy.yyy.yyy.yyy/v2/devices/17edbe8e/state
HTTP/1.1 200 OK
Content-Length: 81
Content-Type: application/json; charset=utf-8

{"power":1,"light":0,"flame":49,"fpfan_power":0,"fpfan_speed":1,"_":"f4420f1c"}
pi@RaspDev:~ $ curl -H "BOND-Token: xxxxxxxxxxxxxxxx" -i http://yyy.yyy.yyy.yyy/v2/devices/17edbe8e/state
HTTP/1.1 200 OK
Content-Length: 81
Content-Type: application/json; charset=utf-8

{"power":1,"light":0,"flame":49,"fpfan_power":0,"fpfan_speed":1,"_":"f4420f1c"}
pi@RaspDev:~ $ curl -H "BOND-Token: xxxxxxxxxxxxxxxx" -i http://yyy.yyy.yyy.yyy/v2/devices/17edbe8e/state
HTTP/1.1 200 OK
Content-Length: 80
Content-Type: application/json; charset=utf-8

{"power":1,"light":0,"flame":1,"fpfan_power":0,"fpfan_speed":1,"_":"fed6db22"}
pi@RaspDev:~ $ curl -H "BOND-Token: xxxxxxxxxxxxxxxx" -i http://yyy.yyy.yyy.yyy/v2/devices/17edbe8e/state
HTTP/1.1 200 OK
Content-Length: 80
Content-Type: application/json; charset=utf-8

{"power":1,"light":0,"flame":1,"fpfan_power":0,"fpfan_speed":1,"_":"fed6db22"}
pi@RaspDev:~ $ curl -H "BOND-Token: xxxxxxxxxxxxxxxx" -i http://yyy.yyy.yyy.yyy/v2/devices/17edbe8e/state
HTTP/1.1 200 OK
Content-Length: 80
Content-Type: application/json; charset=utf-8

{"power":1,"light":0,"flame":5,"fpfan_power":0,"fpfan_speed":1,"_":"667a4713"}
pi@RaspDev:~ $ curl -H "BOND-Token: xxxxxxxxxxxxxxxx" -i http://yyy.yyy.yyy.yyy/v2/devices/17edbe8e/state
HTTP/1.1 200 OK
Content-Length: 80
Content-Type: application/json; charset=utf-8

{"power":1,"light":0,"flame":7,"fpfan_power":0,"fpfan_speed":1,"_":"40ca0653"}
pi@RaspDev:~ $ curl -H "BOND-Token: xxxxxxxxxxxxxxxx" -i http://yyy.yyy.yyy.yyy/v2/devices/17edbe8e/state
HTTP/1.1 200 OK
Content-Length: 81
Content-Type: application/json; charset=utf-8

{"power":1,"light":0,"flame":10,"fpfan_power":0,"fpfan_speed":1,"_":"26b9dad4"}
pi@RaspDev:~ $ curl -H "BOND-Token: xxxxxxxxxxxxxxxx" -i http://yyy.yyy.yyy.yyy/v2/devices/17edbe8e/state
HTTP/1.1 200 OK
Content-Length: 81
Content-Type: application/json; charset=utf-8

{"power":1,"light":0,"flame":21,"fpfan_power":0,"fpfan_speed":1,"_":"179b48e6"}

Send the debug log later.

@IMNotMax
Copy link

Homebridge Debug when playing with Bond app buttons :

(this debug follows exactly the CURL above)

UP BUTTON

[3/20/2021, 10:42:41 PM] [Bond] UDP Message received from yyy.yyy.yyy.yyy:30007 - {"B":"ZZDD35986","t":"devices/17edbe8e/state","i":"050000e33a10210a","f":100,"s":200,"m":0,"x":"bond","b":{"power":1,"light":0,"flame":22,"fpfan_power":0,"fpfan_speed":1,"_":"dc659ba5"}}
[3/20/2021, 10:42:41 PM] [Bond] [Foyer] Received new state: {"power":1,"light":0,"flame":22,"fpfan_power":0,"fpfan_speed":1,"_":"dc659ba5"}

HIGH FLAME BUTTON
[3/20/2021, 10:43:20 PM] [Bond] UDP Message received from yyy.yyy.yyy.yyy:30007 - {"B":"ZZDD35986","t":"devices/17edbe8e/state","i":"0500004b2f7773c6","f":100,"s":200,"m":0,"x":"bond","b":{"power":1,"light":0,"flame":100,"fpfan_power":0,"fpfan_speed":1,"_":"962aa516"}}
[3/20/2021, 10:43:20 PM] [Bond] [Foyer] Received new state: {"power":1,"light":0,"flame":100,"fpfan_power":0,"fpfan_speed":1,"_":"962aa516"}

And the last CURL (with flame 100 - higher value)

pi@RaspDev:~ $ curl -H "BOND-Token: xxxxxxxxxxxxxxxx" -i http://yyy.yyy.yyy.yyy/v2/devices/17edbe8e/state
HTTP/1.1 200 OK
Content-Length: 82
Content-Type: application/json; charset=utf-8

{"power":1,"light":0,"flame":100,"fpfan_power":0,"fpfan_speed":1,"_":"962aa516"}

@aarons22
Copy link
Owner

@IMNotMax Thanks for the logs, they were very helpful! I added flame support in 3.2.8. The fireplace is now treated as a light, and the brightness slider should adjust the flame. Please give it a shot and report back with any issues!

@IMNotMax
Copy link

IMNotMax commented Apr 19, 2021

Currently updating the plugin. I'm going to test it (even if the fireplace season is going to end soon ;) )
Thank you for this work !

@IMNotMax
Copy link

Hi @aarons22 ! dimmer looks et works great on my setup !
But the on/off toggle don't toggle anything... I'm talking about the On/Off switch, not the toggle state button.

@aarons22
Copy link
Owner

aarons22 commented May 9, 2021

Hey @IMNotMax - does dimming to 0 turn off the flame? Also, can you provide some debug logs here?

@IMNotMax
Copy link

Yes, it does. THat's the way I began to use it. Nice !

@seanwalter
Copy link

I have a similar issue. I can start/stop the flame by moving the dimmer >0% to start it and then back to 0% to stop it. However, I programmed the Bond to have “flame up” and “flame down” buttons, and these don’t seem to be passed through to HomeKit.

I have tried moving the dimmer partially up/down instead, but no signal is sent on those actions. I would be happy keeping on/off as a dimmer in HomeKit and having switches exposed in HomeKit for flame up and for flame down.

@kavakia
Copy link
Author

kavakia commented Nov 19, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants