logo elektroda
logo elektroda
X
logo elektroda

OpenBeken: Displaying Devices as Lights in Home Assistant - Similar to Tasmota's SetOption30

jbrande 1059 7
ADVERTISEMENT
  • #1 20443563
    jbrande
    Level 3  
    Is there any way to show devices as lights in Home Assistant? Similar to SetOption30 in Tasmota?
  • ADVERTISEMENT
  • #2 20444548
    p.kaczmarek2
    Moderator Smart Home
    Hello, it is not possible yet, but it seems simple. So you basically want the HA discovery to put all relays under "light:" section as well, instead of "switch:" section?
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #3 20447064
    jbrande
    Level 3  
    Yes please, it is a small thing but if not you have to import it and then change it to a light and it creates a link between the switch and the light.
    Right now I'm importing it manually as mqtt in the yaml, but I prefer to show them as devices with all the links between light and switches.
    Also if you can choose by channel it would be nice, like if you have a light and a fan to choose one as light and one as switch on each channel
  • #4 20447147
    p.kaczmarek2
    Moderator Smart Home
    Ah okay, here it is:
    https://github.com/openshwprojects/OpenBK7231...mmit/f346c6169e3d0756a230d8315f5bb1c83742c2cb
    Enable this flag:
    OpenBeken: Displaying Devices as Lights in Home Assistant - Similar to Tasmota's SetOption30
    Remove entity from HA.
    Redo HA discovery.
    It should appear as light:
    OpenBeken: Displaying Devices as Lights in Home Assistant - Similar to Tasmota's SetOption30
    Can you check if it works for you? I only tested it on Windows OBK simulator:
    OpenBeken: Displaying Devices as Lights in Home Assistant - Similar to Tasmota's SetOption30
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #5 20448043
    jbrande
    Level 3  
    Wow that was fast thanks
  • #6 20448058
    p.kaczmarek2
    Moderator Smart Home
    So, is it working? Just tell me if you need anything else to be added
    Helpful post? Buy me a coffee.
  • #7 20448063
    jbrande
    Level 3  
    Yes it's working perfectly can you add an option to choose by channel? Like channel 1 is a light and channel 2 is a switch?
  • ADVERTISEMENT
  • #8 20448158
    p.kaczmarek2
    Moderator Smart Home
    How would you like to do the choice?

    I think we have already a built-in mechanism for that, but that would require a command line.

    We have channel types - so you can do smth like "setChannelType 1 Toggle", etc etc, it's mostly for TuyaMCU and scripting, hmm...

    Maybe I could add a "setChannelType 1 Relay" and "setChannelType 2 Light", that kind of thing.

    How comfortable are you with using commands?

    Maybe I can try adding a GUI for that on the Web App.
    Helpful post? Buy me a coffee.

Topic summary

The discussion revolves around integrating OpenBeken devices into Home Assistant (HA) as lights, similar to Tasmota's SetOption30 feature. Users express a desire for HA discovery to categorize relays under the "light:" section instead of "switch:". A solution is proposed involving a specific commit from the OpenBK7231T_App repository, which allows users to enable a flag and redo HA discovery to display devices as lights. Additionally, there is a request for functionality to select channel types, enabling users to designate specific channels as lights or switches. Suggestions for command-line options and potential GUI enhancements for easier channel type selection are also discussed.
Summary generated by the language model.
ADVERTISEMENT