jimmyH / BeSIM-GUI

GUI for BeSIM which allows you to control BeSMART thermostat from your own server
GNU General Public License v3.0
0 stars 0 forks source link

ha-besmart #1

Open 111lisu opened 11 months ago

111lisu commented 11 months ago

I ran besim-gui on port 81 but there is no temperature change and on/off, sorry for asking if you have thought about modifying the code https://github.com/muchasuerte/ha-besmart

2023/12/07 21:44:57 [notice] 1#1: start worker processes
2023/12/07 21:44:57 [notice] 1#1: start worker process 28
192.168.193.162 - - [07/Dec/2023:21:45:10 +0000] "GET / HTTP/1.1" 200 1287 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36" "-"
192.168.193.162 - - [07/Dec/2023:21:45:10 +0000] "GET /runtime.7b63b9fd40098a2e8207.js HTTP/1.1" 200 1485 "http://192.168.182.72:81/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36" "-"
192.168.193.162 - - [07/Dec/2023:21:45:10 +0000] "GET /polyfills.8417a73e359081891848.js HTTP/1.1" 200 33646 "http://192.168.182.72:81/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36" "-"
192.168.193.162 - - [07/Dec/2023:21:45:10 +0000] "GET /styles.564857ad10f8fa615af9.css HTTP/1.1" 200 156695 "http://192.168.182.72:81/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36" "-"
192.168.193.162 - - [07/Dec/2023:21:45:10 +0000] "GET /main.25aff9738cc890c90cda.js HTTP/1.1" 200 1064485 "http://192.168.182.72:81/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36" "-"
192.168.193.162 - - [07/Dec/2023:21:45:10 +0000] "GET /favicon.ico HTTP/1.1" 200 948 "http://192.168.182.72:81/devices" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36" "-"
192.168.193.162 - - [07/Dec/2023:21:47:49 +0000] "GET /devices HTTP/1.1" 200 1287 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0" "-"
192.168.193.162 - - [07/Dec/2023:21:47:49 +0000] "GET /runtime.7b63b9fd40098a2e8207.js HTTP/1.1" 200 1485 "http://192.168.182.72:81/devices" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0" "-"
192.168.193.162 - - [07/Dec/2023:21:47:49 +0000] "GET /styles.564857ad10f8fa615af9.css HTTP/1.1" 200 156695 "http://192.168.182.72:81/devices" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0" "-"
192.168.193.162 - - [07/Dec/2023:21:47:49 +0000] "GET /polyfills.8417a73e359081891848.js HTTP/1.1" 200 33646 "http://192.168.182.72:81/devices" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0" "-"
192.168.193.162 - - [07/Dec/2023:21:47:50 +0000] "GET /main.25aff9738cc890c90cda.js HTTP/1.1" 200 1064485 "http://192.168.182.72:81/devices" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0" "-"
192.168.193.162 - - [07/Dec/2023:21:47:50 +0000] "GET /favicon.ico HTTP/1.1" 200 948 "http://192.168.182.72:81/devices" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0" "-"
jimmyH commented 11 months ago

You should see something like the following when using the GUI:

BeSim_GUI

I did think about adding HA support, but found the add-on support in HA really non-intuitive (probably my fault!).

111lisu commented 11 months ago

Wow, I'm impressed. I didn't click on rooms yesterday. I saw only the numbers and wondered what GUI it was?

Zrzut ekranu z 2023-12-08 22-49-06

It took a lot of work to learn all the communication. The driver will still work for my friend. I'm just wondering how to integrate it with other thermostats and switches in ESPHome / Home Assistant.

PC_K88_03

jimmyH commented 11 months ago

I did a quick hack of the existing HA BeSmart integration - https://github.com/jimmyH/ha-besim

It should mostly work as a direct replacement for the existing integration, just need a couple of small configuration changes.

111lisu commented 11 months ago

It works great, but you're fast

[image: Zrzut ekranu z 2023-12-10 15-37-33.png]

Mariusz

sob., 9 gru 2023 o 23:09 jimmyH @.***> napisał(a):

I did a quick hack of the existing HA BeSmart integration - https://github.com/jimmyH/ha-besim

It should mostly work as a direct replacement for the existing integration, just need a couple of small configuration changes.

— Reply to this email directly, view it on GitHub https://github.com/jimmyH/BeSIM-GUI/issues/1#issuecomment-1848732425, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIA4XTNA3AYTTPKWDAZ3EULYITOSBAVCNFSM6AAAAABALX6SGSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBYG4ZTENBSGU . You are receiving this because you authored the thread.Message ID: @.***>

-- Pozdrawiam Mariusz

111lisu commented 11 months ago

https://github.com/jimmyH/ha-besim - It works great, but you're fast

Zrzut ekranu z 2023-12-10 15-37-33

111lisu commented 11 months ago

Is there any chance of some refresh? The temperature is 19.8 all the time

jimmyH commented 11 months ago

It should be updating/refreshing ...

If you enable logging in configuration.yaml you should see the values it is currently reading from besim. Check the lastseen value is increasing (can use the date command to convert it, eg: date -d @1702130786). lastseen value is the last time the server got an update from the thermostat.

v0.1 would only fetch new data every 2 minutes. v0.2 fetches it every 30seconds.