evil0ne Posted November 20, 2020 Share Posted November 20, 2020 I just got a new fireplace that connects via WiFi and has an app and is supposed to be able to be controlled via Alexa but also has local HTTP access. I did a little homework via the console and found the following example outputs when turning the fireplace on/off, the heater on/off, turning the accent lighting on/off and selecting a different LED "theme." To keep the request simple, how would I be able to just send the fireplace on/off command? Down the line it might be nice to be able to play with the other settings but right now just being able to turn it on and off based on some condition would be great. Thanks for the point in the right direction! Fireplace On/Off [Log] SEND 192.168.1.142: {"voice":"Fire_ON/OFF"} (halo.v24.js, line 194) [Log] Server 192.168.1.142: – "{\"voice\":\"Fire_ON/OFF\",\"firstLoad\":0,\"fahrenheit\":\"1\",\"temperature\":\"77\",\"templevel\":77,\"heap\":\"25064\",\"pinout3\":0,\"pinout1\":1,\"pinout2\":0,\"…" (192.168.1.142, line 66) "{\"voice\":\"Fire_ON/OFF\",\"firstLoad\":0,\"fahrenheit\":\"1\",\"temperature\":\"77\",\"templevel\":77,\"heap\":\"25064\",\"pinout3\":0,\"pinout1\":1,\"pinout2\":0,\"Fire\":1,\"Heater\":0,\"effect\":\"Embers\",\"time\":\"10:56:10\",\"weekday\":\"Fri\",\"alarmtemperature\":1,\"rgb0\":1,\"colorRGB0\":\"ff7A00\",\"speedRGB0\":\"200\",\"brightnessRGB0\":255,\"modeRGB0\":50,\"rgb1\":1,\"colorRGB1\":\"ff5000\",\"speedRGB1\":\"200\",\"brightnessRGB1\":255,\"modeRGB1\":48,\"dbm\":-44}" Heater On/Off [Log] SEND 192.168.1.142: {"voice":"Heater_ON_/_OFF"} (halo.v24.js, line 194) [Log] Server 192.168.1.142: (192.168.1.142, line 66) "{\"voice\":\"Heater_ON_/_OFF\",\"firstLoad\":0,\"fahrenheit\":\"1\",\"temperature\":\"77\",\"templevel\":77,\"heap\":\"25064\",\"pinout3\":0,\"pinout1\":1,\"pinout2\":0,\"Fire\":1,\"Heater\":1,\"effect\":\"Embers\",\"time\":\"10:56:12\",\"weekday\":\"Fri\",\"alarmtemperature\":1,\"rgb0\":1,\"colorRGB0\":\"ff7A00\",\"speedRGB0\":\"200\",\"brightnessRGB0\":255,\"modeRGB0\":50,\"rgb1\":1,\"colorRGB1\":\"ff5000\",\"speedRGB1\":\"200\",\"brightnessRGB1\":255,\"modeRGB1\":48,\"dbm\":-44}" Accent lighting On/Off Toggle SEND : {"voice":"Light_box"} (halo.v24.js, line 194) Server: (options.htm, line 132) "{\"voice\":\"Light_box\",\"firstLoad\":0,\"fahrenheit\":\"1\",\"temperature\":\"77\",\"templevel\":77,\"heap\":\"25064\",\"pinout3\":1,\"pinout1\":1,\"pinout2\":0,\"Fire\":1,\"Heater\":0,\"effect\":\"Breathe\",\"time\":\"10:47:42\",\"weekday\":\"Fri\",\"alarmtemperature\":1,\"rgb0\":1,\"colorRGB0\":\"ff7800\",\"speedRGB0\":\"180\",\"brightnessRGB0\":255,\"modeRGB0\":45,\"rgb1\":1,\"colorRGB1\":\"ff5000\",\"speedRGB1\":\"200\",\"brightnessRGB1\":255,\"modeRGB1\":48,\"dbm\":-44}" Change LED "scene" SEND : {"voice":"Embers"} (halo.v24.js, line 194) Server: (options.htm, line 132) "{\"voice\":\"Embers\",\"firstLoad\":0,\"fahrenheit\":\"1\",\"temperature\":\"77\",\"templevel\":77,\"heap\":\"25064\",\"pinout3\":1,\"pinout1\":1,\"pinout2\":0,\"Fire\":1,\"Heater\":0,\"effect\":\"Embers\",\"time\":\"10:50:55\",\"weekday\":\"Fri\",\"alarmtemperature\":1,\"rgb0\":1,\"colorRGB0\":\"ff7A00\",\"speedRGB0\":\"200\",\"brightnessRGB0\":255,\"modeRGB0\":50,\"rgb1\":1,\"colorRGB1\":\"ff5000\",\"speedRGB1\":\"200\",\"brightnessRGB1\":255,\"modeRGB1\":48,\"dbm\":-43}" Quote Link to comment Share on other sites More sharing options...
zaphod Posted November 20, 2020 Share Posted November 20, 2020 It isn't 100% clear but it looks like those may be HTTP POST commands that send data to the fireplace. You might want to play around with something like Postman and see if you can control the fireplace via such HTTP commands with Postman. If that is the case then you could use the Chowmain Generic IP driver to send these commands to the fireplace. Quote Link to comment Share on other sites More sharing options...
evil0ne Posted November 30, 2020 Author Share Posted November 30, 2020 I did some more digging and it communicates via WebSockets. I did a wireshark on the communication between my laptop and the fireplace's webpage and it seems to be very simple commands. That said, would the Chowmain Generic IP driver be able to accomplish the task of sending the on/off commands? wnpublic 1 Quote Link to comment Share on other sites More sharing options...
msgreenf Posted November 30, 2020 Share Posted November 30, 2020 Most likely, yes Quote Link to comment Share on other sites More sharing options...
alanchow Posted December 9, 2020 Share Posted December 9, 2020 No our generic tcp driver does not support web sockets msgreenf 1 Quote Link to comment Share on other sites More sharing options...
zaphod Posted January 3, 2021 Share Posted January 3, 2021 One of the things that really bug me these days. Why can't every smart device just use a REST API? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.