Flic Home

    Community

    • Login
    • Search
    • Popular
    • Users
    1. Home
    2. johan.nanzen
    • Profile
    • Following 0
    • Followers 1
    • Topics 1
    • Posts 3
    • Best 1
    • Controversial 0
    • Groups 0

    johan.nanzen

    @johan.nanzen

    1
    Reputation
    36
    Profile views
    3
    Posts
    1
    Followers
    0
    Following
    Joined Last Online

    johan.nanzen Unfollow Follow

    Best posts made by johan.nanzen

    • Python TCP Client

      Hi,

      I have created a TCP Client in Python that responds to button clicks from the Flic Hub. My idea was to create an Integration to HomeAssistant, but I haven't had the time to finish it. So I wanted to share the python tcp client for other people to use and improve.

      Pull requests and feedback is appriciated 🙂

      You can find the repository here
      https://github.com/JohNan/pyflichub-tcpclient

      posted in Flic Hub SDK
      johan.nanzen
      johan.nanzen

    Latest posts made by johan.nanzen

    • RE: Flic Hub LR and Home Assistant

      I have made a lot of updates to the Home Assistant integration. Here's some screenshots showing the entities it will add. Each button and the Hub will act as a separate devices. The click type is an attribute on a binary sensor on a button.

      These entities will help you setup automations based on click type and also keep track of when it's time to change the battery, for example.

      Screenshot_20231014_205321_Home Assistant.jpg Screenshot_20231014_205349_Home Assistant.jpg

      Once the js-script is added and started on the Hub and the integration is added in HomeAssistant, the Hub will automatically be discovered in Home Assistant and the buttons will be added.

      @chris-3 Unfortunately I do not own a FlicTwist so I'm not able to add support for it. 😔 Maybe @Emil is able to help out here?

      I wish there was a websocket or something similar already built into the Hub, that would make the integration a lot easier to add from a user perspective, at least until Matter support is released.

      posted in Flic Hub
      johan.nanzen
      johan.nanzen
    • RE: Flic Hub LR and Home Assistant

      I started to make an Home Assistant Integration a while ago. You can find it here: https://github.com/JohNan/home-assistant-flichub

      I never completed it completely but I think it should work partially at least.

      It uses a TCP connection for communication that has to be setup on the Flic Hub. A linked repo is available in the above repo.

      I also just noticed that Flic have released a MQTT client which should make it a lot easier to create an HA Integration. I might give it a shot to convert this one to using MQTT instead.

      posted in Flic Hub
      johan.nanzen
      johan.nanzen
    • Python TCP Client

      Hi,

      I have created a TCP Client in Python that responds to button clicks from the Flic Hub. My idea was to create an Integration to HomeAssistant, but I haven't had the time to finish it. So I wanted to share the python tcp client for other people to use and improve.

      Pull requests and feedback is appriciated 🙂

      You can find the repository here
      https://github.com/JohNan/pyflichub-tcpclient

      posted in Flic Hub SDK
      johan.nanzen
      johan.nanzen