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

Auto-discovery of JuiceBoxes On the Network and Additional Sensor Data #108

Open
atc99 opened this issue Oct 19, 2024 · 0 comments
Open

Comments

@atc99
Copy link

atc99 commented Oct 19, 2024

The JB is broadcasting on the UDP network broadcast range on port 55555 and the data it is broadcasting can be customized via the broadcast.data variable. This could be used to discover the JB's on the local network (IP and telnet port are broadcast along with the uuid, mac and wifi signal strength). I'm receiving data about once every 10-60 seconds from each JB on my network. If JPP used the UUID (aka get system.uuid) as the device identifier instead of the JUICEBOX_ID, then this could be automatically discovered at startup (but would a less user-friendly id). Additional fields could be added like adc0, adc9, gpio0 if somebody knows what those fields represent and they are useful for JPP or for relaying any of these overall fields to HASS as additional sensors.

Example packet:

{"mac":"XX:XX:XX:XX:XX:XX", "bssid":"YY:YY:YY:YY:YY:YY", "channel":1,"ip":"192.168.0.50","ssid":"MyWireless","rssi":-54,"remote_terminal_port":2000,"time":1729358822517,"version":"EMWERK-JB201-1.0.46, Gecko_OS-STANDARD-4.2.7-11064, WGM160P","uuid":"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
> get broadcast
get broadcast
broadcast.data: mac,bssid,channel,ip,ssid,rssi,remote_terminal_port,time,version,uuid
broadcast.http.host:
broadcast.interface: default
broadcast.interval: 10
broadcast.udp.ip: 255.255.255.255
broadcast.udp.local_port: 55555
broadcast.udp.remote_port: 55555

The documentation shows these as available variables.

List Item Description
adcX Current value of ADC X
bssid wlan interface -> BSSID of the AP
channel Wi-Fi radio channel
gpioX Current state of GPIO X
ip Current IP address
mac wlan MAC address
rssi wlan interface -> RSSI of the AP
ssid wlan interface -> SSID of the AP
time ZentriOS local time
uuid Hardware ID
version Firmware version
remote_terminal_port inbound network port for the remote terminal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant