Save a sensor value from "Ask the AI"

To complement the capabilities of the ‹ ask the AI › action, I would find it useful to be able to do the equivalent of ‹contrôler un appareil› from an AI request.

  • An example of use (maybe not essential, but to clearly show the idea): I define an MQTT device named «nombre de voiture sur le parking», then I ask the AI «Analyse this photo, identify the number of parked vehicles, and inject that value into the MQTT device ‹nombre de voiture sur le parking›.»
  • And more concretely, I would use it so that the AI analyzes a photo of my pressure gauge and injects its value into the MQTT device I created for that. For now, I’ve managed to do it but by asking the AI to trigger one of the 20 scenes I created for each pressure between 0.8 and 2.7 bars, every 0.1 bar :rofl:

@StephaneB : Pouvoir récupérer dans une variable la reponse IA dans les scènes

1 Like

Ah yes, that’s another way to look at it, indeed…
@pierre-gilles, do you have a preference ?

I like both, I don’t know if the two are mutually exclusive :smiley: But @Terdious’s is broader, it allows you to do yours. The reverse isn’t true ^^

1 Like