# Osram Smart+ Socket with zigbee2mqtt

**URL:** <https://discourse.nodered.org/t/osram-smart-socket-with-zigbee2mqtt/18358>\
**Category:** General\
**Created:** [24 November 2019 17:33 UTC](https://discourse.nodered.org/t/osram-smart-socket-with-zigbee2mqtt/18358 "2019-11-24T17:33:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mario](https://avatars.discourse-cdn.com/v4/letter/m/8e7dd6/32.png) [@Mario](https://discourse.nodered.org/u/Mario)\
**Post date:** [24 November 2019 17:33 UTC](https://discourse.nodered.org/t/osram-smart-socket-with-zigbee2mqtt/18358/1 "2019-11-24T17:33:58Z")

</div>

I would like to be able to switch my osram socket into node red. Unfortunately that is not so easy with a switch before the mqtt\_out. what do I have to do so that I can switch my osram smart + socket? the log on my raspi currently looks like this:

```auto
zigbee2mqtt:info 2019-11-24T16:37:43: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"pairing","message":"interview_successful","meta":{"friendly_name":"0x7cb03eaa0a01a169","model":"AB3257001NJ","vendor":"OSRAM","description":"Smart+ plug","supported":true}}'
zigbee2mqtt:info 2019-11-24T16:37:43: Configuring '0x7cb03eaa0a01a169'
zigbee2mqtt:info 2019-11-24T16:37:44: Succesfully configured '0x7cb03eaa0a01a169'
zigbee2mqtt:info 2019-11-24T16:37:47: MQTT publish: topic 'zigbee2mqtt/0x7cb03eaa0a01a169', payload '{"state":"ON","linkquality":7}'

```

---

<div class="post-metadata">

**Author:** ![bohtho](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bohtho/32/6153_2.png) [@bohtho](https://discourse.nodered.org/u/bohtho)\
**Post date:** [2 December 2019 08:27 UTC](https://discourse.nodered.org/t/osram-smart-socket-with-zigbee2mqtt/18358/2 "2019-12-02T08:27:56Z")

</div>

I don't use zigbee2mqtt myself, but wouldnt a message (formed in a eg. a change node) with topic `zigbee2mqtt/0x7cb03eaa0a01a169/set` and payload `{"state":"toggle"}` to the mqtt\_out node do it, if the OSRAM is supported ?
