MQTT JSON Added

Compile with #define MQTT_MAX_PACKET_SIZE 512 modified in PubSubClient library. Default is #define MQTT_MAX_PACKET_SIZE 128, will not work here.
This commit is contained in:
Deb 2018-02-15 13:14:55 -05:00 committed by GitHub
parent 870c47ef45
commit cb824234d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,18 +1,8 @@
light:
- platform: mqtt
- platform: mqtt_json
name: "NeoPixel LEDs"
state_topic: "home/ESP8266_01_ha/state/out"
command_topic: "home/ESP8266_01_ha/state/in"
brightness_command_topic: "home/ESP8266_01_ha/brightness/in"
brightness_state_topic: "home/ESP8266_01_ha/brightness/out"
effect_command_topic: "home/ESP8266_01_ha/effect/in"
effect_state_topic: "home/ESP8266_01_ha/effect/out"
rgb_command_topic: "home/ESP8266_01_ha/rgb/in"
rgb_state_topic: "home/ESP8266_01_ha/rgb/out"
#rgb_value_template: "{{ value | join(',') }}"
rgb_value_template: "{{ value }}"
payload_on: "true"
payload_off: "false"
state_topic: "home/McLighting01_ha/state/out"
command_topic: "home/McLighting01_ha/state/in"
effect: true
effect_list:
######
@ -97,5 +87,5 @@ automation:
- data_template:
payload_template: '{{ trigger.to_state.state | int }}'
retain: true
topic: home/ESP8266_01_ha/speed
topic: home/McLighting01_ha/speed
service: mqtt.publish