Skip to content
This repository was archived by the owner on Feb 9, 2026. It is now read-only.

Self reload Assist sentences on sentences updates !

Choose a tag to compare

@ooree23 ooree23 released this 31 Jan 23:36
· 140 commits to master since this release

This version adds Assist auto reload on updated Assist sentences.
The Recalbox script .sh had many improvements and optimizations

  • On first install or updates, if custom sentences have been updated,
    tries to reload Home Assistant Assist sentences without asking for a new restart.
    Only if fails to reload, it will ask the user to restart.
  • Reorder settings buttons, because save/load were not in the same order that in the card
  • Change JSON sent from Recalbox to Home Assistant, from imageUrl to imagePath.
    Home Assistant will recompose the full URL on his own, because he knowns the host+port of this Recalbox.
    Integration is still compatible with older versions, it reads imageUrl is existing in JSON, else it composes itself the URL with imagePath.
  • Duplicate Recalbox script in two versions (only one required) :
    • Recalbox/userscripts/home_assistant_notifier.sh:
      • Improve to get Home Assistant IP adress only if the event is useful
      • Optimization : as soon as the Home Assistant IP is solved, it is saved in cache to make next executions quicker
      • Add shutdown and reboot events in Recalbox script, to say to Home Assistant that the Recalbox is turning off (was only listing stop until that)
    • Recalbox/userscripts/home_assistant_notifier(permanent).sh EXPERIMENTAL :
      • New version, that is permanent : the script is launched only once, and loops on events.
      • It should be way more optimized, and waits to be connected to network to send MQTT messages.
      • Create a timestamped logs file : /recalbox/share/system/logs/home_assistant_integration/*
  • Both scripts now send their version to Home Assistant, in the JSON message,
    "scriptVersion": "home_assistant_notifier.sh:v1.3.1" or "scriptVersion": "home_assistant_notifier(permanent).sh:v1.3.1"
  • Auto clean scripts logs
  • Persist scriptVersion as Recalbox extra state attribute
  • Added host attribute, so the REcalbox card uses the configured host to access webmanager, instead of ip_adress that doesn't exist yet
  • Added recalboxIpAddress attribute, instead of setting as the host
  • When Home Assistant (re)starts, pings the Recalbox to directly set as ON (without game info) or OFF, instead of waiting for the first ON MQQT message
  • Change Recalbox Card chip color in light theme.