I was trying the last days to get my Project a Little bit Forward but i still hang at the same Point like befor…
I Need help with an Input Number Component.
Until now i had working a Input_number Config for Switch the Volume from my Denon AVR .
Last week i was adding a IR Mqtt Sensor over openmqttgateway this also working with a Switch in my Config.
My Plan is when i push “VOL_UP” Button at the Ir Controller Raise up the Input_number for my Denon ARV.
The same with “VOL_DOWN” Button Change the Input_Number down.
You basically need to trigger on MQTT message, and increment the input_slider if message is VOL_UP an decrease when VOL_DOWN is received.
Can you share some info on how you’ve set this all up?
Can you try and use the mark up langage to format your code? (see the blue bar on top of the page).
I’m not sure about the retain: true bit, you’re not tracking a status but an action… There’s a chance that with that setting you’ll only be able to track “up” once (no state change when you press again) until you press down.
Here is an example of an automation triggered from an MQTT sensor:
- alias: Play Weather Greeting
trigger:
- platform: state
entity_id: sensor.Kello_MQTT
to: 'play_greeting'
action:
- service: shell_command.weather_on_kello_play
Note that this sensor has 2 states, so again not sure it would fire if you have the same status being repeated (e.g. Vol Up pressed twice).
You may have to change the trigger to be event driven:
hum that doesn’t look right. the action should have an impact on your input_number… How did you try the action? Via an automation or via the services command in the Dev tools?
Sorry it was increment not increase. I was helping while on break at work.
For the automation now you need to try and catch the mqtt message. Check the examples I sent earlier on today