Skip to content

Transform Data in 1Home Automations

Within the Dynamic input you can use mathematical equations and other data transformations.

In example below we use a + operator to increase the value of the brightness percentage by 10. Dynamic Data In Action

Using math

  • Arithmetics: +, -, *, /, ** (exponentiation)
  • Numeric operators: >, <, >=, <=, == (equal), != (not equal)
  • Boolean AND (&&): true && true - useful with dynamic data such as contact sensors and other boolean device states
  • Boolean OR (||): true || true - useful with dynamic data such as contact sensors and other boolean device states
  • Boolean inversion: !
  • Bitwise operations: | - OR, & - AND, ^ - XOR, >> - left shift, << - right shift, ~ - bitwise not
  • Inline condition: C ? A : B