Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 103378

Numberbox: Where to add mqtt.publish service

$
0
0

Newbie, can’t get my head around this.

I am using this numberbox card from htmltiger.
number_box

type: custom:numberbox-card
border: true
entity: input_number.box1
name: PWM

And I have defined input number for it.

input_number:
box1:
name: “Numeric Input Box”
initial: 30
min: 0
max: 100
step: 1
mode: box

My issue is now that I want to send / publish the box1 value each time it is changed.
I have not been able to figure out where / how to add the call for the mqtt.publish service.
And how do I send it in json format

service: mqtt.publish
service_data:
  topic: /skorsten_vent/commands
  payload: xxx

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 103378

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>