-
Notifications
You must be signed in to change notification settings - Fork 277
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
Cant add Milight devices on WEBUI #1025
Comments
Here a piece of the live debug log in Home Assistant. In this part i have pressed the Add light Button. 024-07-09 23:17:32,826 - werkzeug - INFO - 192.168.1.166 - - [09/Jul/2024 23:17:32] "GET /lights HTTP/1.1" 200 - |
Hi, on my setup i can add lights via the webui, including milight(i dont have them) and i get a added notification.
Can you change other things on the webui? like search for updates(pres the bell on the top right and then on no update) or change the sw version? |
Yes i can change everything and see the status message. It finds the WLED lights automatically. Only manual adding lights not. I have tried with other Webbrowsers and incognito mode. |
that is strange. |
This is the log for the webui. |
Remove `e` from Add Light button. Issue with adding lights diyhue/diyHue#1025
I think i found the issue, please update en let me know if it works now. |
So you still have the same error in the console of the browser? Can you click on the |
`import { useState } from "react"; import axios from "axios"; import GenericButton from "../GenericButton/GenericButton"; const AddLight = ({ HOST_IP, API_KEY }) => { const handleChange = (key, value) => { const handleForm = (evt) => { }; const protocols = [ const milightGroups = [ const milightModes = [ const lightModelIds = [ return (<> <GenericText label="Light IP Address" type="text" placeholder="192.168.x.x" value={lightData.ip} // On regular HTML input components use e.taget.value onChange={(e) => handleChange("ip", e)} /> {lightData.protocol !== "auto" && ( <> <GenericText label="Name" type="text" placeholder="Name used on diyhue" value={lightData.lightName} onChange={(e) => handleChange("lightName", e)} /> <SelectMenu label="Emulated light type:" options={lightModelIds} placeholder={lightData.lightModelID} onChange={(e) => handleChange("lightModelID", e)} /> </> )} {(lightData.protocol === "milight" || lightData.protocol === "mibox") && ( <> <GenericText label="Device ID" type="text" placeholder="0x1234" value={lightData.miID} onChange={(e) => handleChange("miID", e)} /> <SelectMenu label="Choose light mode:" options={milightModes} placeholder={lightData.miModes} onChange={(e) => handleChange("miModes", e)} /> <SelectMenu label="Choose light group:" options={milightGroups} placeholder={lightData.miGroups} onChange={(e) => handleChange("miGroups", e)} /> </> )} {lightData.protocol === "mibox" && ( <GenericText label="Port" type="number" placeholder="Mi Box port" value={lightData.miBoxPort} onChange={(e) => handleChange("miboxPort", e)} /> )} {lightData.protocol === "domoticz" && ( <GenericText label="Device ID" type="text" placeholder="Device ID" value={lightData.domoticzID} onChange={(e) => handleChange("domoticzID", e)} /> )} {lightData.protocol === "jeedom" && ( <> <GenericText label="Light Api" type="text" placeholder="Light Api" value={lightData.jeedomlightAPI} onChange={(e) => handleChange("jeedomlightAPI", e)} /> <GenericText label="Light ID" type="text" placeholder="Light ID" value={lightData.jeedomlightID} onChange={(e) => handleChange("jeedomlightID", e)} /> </> )} <GenericButton value="Add Light" color="blue" size="" type="submit" onClick={() => handleForm()} /> </>); }; export default AddLight; |
Ok thank you, new release is online, please try again. |
Yes!!! i can add the milight lamps again... Thanks for the quick help. Awesome!! |
Issue does not already exist?
I have searched and found no existing issue
Select Environment
Docker
Home Assistant related?
No
Description
In the WebUI i cant add a device. I want to add two milight lamps. But when i press the "add Light" button noting happens. Also no error or confirmation notice in the upper right corner.
Looks like the button is not mapped?
Errorlog:
Steps to reproduce
Add Milight light and click "add light"
Please enter your operating system details here
OS: Linux
Architecture: aarch64
os_version: '#1 SMP PREEMPT Tue Jun 18 15:11:43 UTC 2024'
os_release: 6.6.31-haos-raspi
Hue-Emulator Version: '2024-07-09 22:15:19.000000000'
WebUI Version: '2024-07-09 22:15:30.000000000'
Upload debug tar
The text was updated successfully, but these errors were encountered: