Site Tools


home-assistant:mqtt

MQTT

solar_assistant/inverter_1/temperature/state

voltage_point_2

mosquitto_pub -h 10.0.0.100 -t 'solar_assistant/inverter_1/voltage_point_2/set' -m '48'

mqtt pub -h 192.168.14.34 -V 3 -p 1883 -t 'solar_assistant/inverter_1/voltage_point_2/set' -m '48.0'

using centos1 to test:

Usage: mosquitto [-c config_file] [-d] [-h] [-p port]

  1. c : specify the broker config file.
  2. d : put the broker into the background after starting.
  3. h : display this help.
  4. p : start the broker listening on the specified port.

Not recommended in conjunction with the -c option.

  1. v : verbose mode - enable all logging types. This overrides

any logging options given in the config file.

See http://mosquitto.org/ for more information.

[root@centos01 ~]# mosquitto_pub -h 192.168.14.34 -t 'solar_assistant/inverter_1/voltage_point_2/set' -m '48.0' [root@centos01 ~]# mosquitto_pub -h 192.168.14.34 -t 'solar_assistant/inverter_1/inverter_power_limiter/set' -m

'2000' [root@centos01 ~]# mosquitto_pub -h 192.168.14.34 -t 'solar_assistant/inverter_1/battery_float_charge/set' -m '47' [root@centos01 ~]# mosquitto_pub -h 192.168.14.34 -t 'solar_assistant/inverter_1/battery_float_charge/set' -m

'47.0' [root@centos01 ~]#

home-assistant/mqtt.txt · Last modified: (external edit)