miligames.blogg.se

Home assistant radbeacon
Home assistant radbeacon





home assistant radbeacon

  • setsys Nx_vars (assign system data to the list of Nx_vars).ĪCTION COMMAND LIST (called by Nextion events to perform actions in HA).
  • setdt Nx (assign Nx current data-time as “dd/mm HHhMM”).
  • setntf Nx_count (Nx_title) (Nx_msg) (n) (chars_title) (chars_msg) (assign 3 Nx variables the Count, Title and Message of the nth Persistent Notification).
  • setcl Nx_vars E (assign state and attributes of climate E to the list of Nx_vars).
  • setmp Nx_vars E (assign state and attributes of media_player E to the list of Nx_vars).
  • setlt Nx_state Nx_tp Nx_brt Nx_ct Nx_rgb565 E (assign Nx variables the state, ‘type’ (supported modes), brightness, color temperature and color of light E ).
  • setb Nx E cp x (assign Nx 0 or 1 based on comparing ( cp) the state of E to x).
  • setb Nx E (assign Nx 0 or 1 based whether the state of E is in FALSE_STATES)).
  • setn Nx scale E (d) (assign Nx the integer value of scale * state of E).
  • sett Nx len E (assign len chars of state of E, as string/text, to Nx).
  • ( Nx = Nextion variable name E is Home Assistant entity_id).

    Home assistant radbeacon update#

    ( Updated: version 0.7beta - ) SET COMMANDS (fetch HA data to update the Nextion) I have shared more details on GitHub together with some example files that can be used as templates to get going.

    home assistant radbeacon

    There are only 3 places in your HMI files that you need to add customized code (highlighted in light blue in the diagram) - the rest can use standardized template code. The diagram below summarises how it works, and I’ve listed the instruction set that nextion_handler makes available in the Nextion Editor below. This allows you to program a Nextion touch screen device (NSPanels in particular) to interact with Home Assistant (HA) without having to do any coding in ESPHome YAML or Home Assistant automations. But the approach I’m using is a bit different from what I’ve seen others doing - it uses a Python script to provide a service so that you can send instructions to Home Assistant directly in the Nextion Editor. Like quite a few other people, I’ve been working on integrating my Sonoff NSPanels into Home Assistant.







    Home assistant radbeacon