Amazon echo text to speech simple OH3

From what the docs say, you add a rule, select Run script, choose Rule DSL, and paste in your code. Check out the screenshots:

Right but in those screens there is a “When” element defined which is the one that doesn’t work by the system.

If I leave that blank and put my code from above into the Then part of things, then it doesn’t run anything either, and whenever you save in the UI, it addons the conditions and other menu headings. Either way. this still doesn’t do anything.

conditions: []
actions:
  - inputs: {}
    id: "1"
    configuration:
      type: application/vnd.openhab.dsl.rule
      script: >-
        if (DryerSonoff_Temperature.state <= 28 &&
        DryerSonoff_Temperature.previousState > 28) {
                    val myAction = getActions("pushover", "pushover:pushover-account:a3272e5b52")
                    var receipt = myAction.sendMessage("The Clothes are dry!", "Arnett Manor")
                    LivingRoomEcho_Speak.sendCommand('The clothes are moist, but not dry')}
    type: script.ScriptAction

Dude, that’s the trigger from your second post, but without the if conditions.

Becomes:

  - id: "1"
    configuration:
      itemName: Sonoff1_Temperature
    type: core.ItemStateChangeTrigger

e.g. When Sonoff1_Temperature changes, run the script.

Sorry, I thought it would be obvious that there still has to be a trigger to run the UI rule, since you had already tried to do that. All we’ve done is to move your if conditions from the trigger into a script.