MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    MMM-homeassistant-sensors

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    2 Posts 2 Posters 348 Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ? Offline
      A Former User
      last edited by

      I would like to send a notification, when a sensor changes its value,
      like the solar production value.
      How to set the ‘stateVals’ array in that case ?

      Example :

                          {
                              sensor: "sensor.solarproduktion",
                              notificationName: "MMM-EnergyMonitor_SOLAR_POWER_UPDATE",
                              notificationConditions: [
      					{
      						stateVals: [?????????],
      						notificationVal: "%v%"
      					}
                              ],
                              name: "Produktion",
                          },
      
      1 Reply Last reply Reply Quote 0
      • F Offline
        Fifteen15Studios
        last edited by

        I’m the one who wrote this functionality for this module, and I didn’t exactly design it to be able to send a notification for every state change. I designed it to look for a specific state and send a notification when the state matches something you’re looking for.

        For example, if you want something to happen when your smart lock is in the unlocked state.

        That being said, I just looked at the code again, and I don’t think it would be too difficult to modify it to notify on every state change if stateVal is empty.

        Give me some time and I’ll see what I can do to make this happen for you.

        I assume you would want the notification to return the current state of the sensor?

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        Enjoying MagicMirror? Please consider a donation!
        MagicMirror created by Michael Teeuw.
        Forum managed by Sam, technical setup by Karsten.
        This forum is using NodeBB as its core | Contributors
        Contact | Privacy Policy