Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision |
mqtt [2022-10-23 22:58] – river | mqtt [2024-06-06 23:34] – river |
---|
| |
^ Topic ^ Payload ^ Notes ^ | ^ Topic ^ Payload ^ Notes ^ |
| environment/g1/extractor | 0=off, 1=on | Note that the radio link for this is patchy so may not work immediately. Do not send multiple events to compensate as this should be done by the driver script instead. | | | environment/g1/extractor | 0=off, 1=on | [[https://github.com/edinburghhacklab/circuitpython_remote_relay|Controlled]] by {{:23-10-24_21-50-40_2656.jpg?linkonly|ESP32-S2 relay board}}. Debugging feedback availble on //debug/esp-487f307d5dad// | |
| environment/g1/heating | 0-30, off | Send a numeric value to set a target temperature for G1, off to turn the heating off | | | environment/g1/heating | 0-30, off | Send a numeric value to set a target temperature for G1, off to turn the heating off | |
| environment/g8/extractor/relay/0 | 0=off, 1=on | Wall extractor in workshop | | | environment/g8/extractor/relay/0 | 0=off, 1=on | Wall extractor in workshop | |
^ Topic ^ Payload ^ Notes ^ | ^ Topic ^ Payload ^ Notes ^ |
| dali/g1/preset/<preset> | (none) | preset=off/dim/bright/corners/movie/comfort/presentation/harmony/random or preset=<number> | | | dali/g1/preset/<preset> | (none) | preset=off/dim/bright/corners/movie/comfort/presentation/harmony/random or preset=<number> | |
| dali/g1/set/<light-id> | 0-254 | light-id=0-17, light-id=all, or light-id=social (just the end of the room with the kitchen) | | | dali/g1/set/<light-id> | [[g1_lighting#dali_light_level_presets|0-254]] | light-id=[[g1_lighting#dali_addresses|0-17]], light-id=all, or light-id=social (just the end of the room with the kitchen) | |
| dali/g1/script | json-formatted script | <code>[["set", 5,0], ["delay",2000], ["set_all",254]]</code> will set light number 5 to zero, wait for 2 seconds, then set everything to 254| | | dali/g1/script | json-formatted script | <code>[["set", 5,0], ["delay",2000], ["set_all",254]]</code> will set light number 5 to zero, wait for 2 seconds, then set everything to 254| |
| |
^ Topic ^ Payload ^ Notes ^ | ^ Topic ^ Payload ^ Notes ^ |
| display/g1/leds | <colour> | css3 web colours or hex values (e.g. ff0000) | | | display/g1/leds | <colour> | css3 web colours or hex values (e.g. ff0000) | |
| display/g1/leds | <preset> | presets include: rainbow, zap, chase, test, pixelpicker | | | display/g1/leds | <preset> | presets include: rainbow, zap, chase, test, pixelpicker, lessbeans | |
| display/g1/leds/brightness | [0-100] | changes the brightness of the leds to //n// percent | | | display/g1/leds/brightness | [0-100] | changes the brightness of the leds to //n// percent | |
| display/g1/leds/picker/json | <json> | When in the pixelpicker preset send the following example payload, '{"1":[255, 255, 0], "2":[0, 0, 255]}' , this will set LED 1 to yellow, and LED 2 to blue | | | display/g1/leds/picker/json | <json> | When in the pixelpicker preset send the following example payload, '{"1":[255, 255, 0], "2":[0, 0, 255]}' , this will set LED 1 to yellow, and LED 2 to blue | |
| |
===== Access Control ===== | ===== Access Control ===== |
| |
| Code for this can be found on ehl-vm-things:/srv/docker/py3scripts/entrance-handler |
| |
| The door is opened by a small ESP8266 and a relay connected to the intercom phone under the IRC terminal in G1 |
| |
| access/entrance/request | | Button has been pressed at the entrance //read only// | | | access/entrance/request | | Button has been pressed at the entrance //read only// | |
There are 50 pixels on our tree, so 50 RGB values should be sent in each frame. | There are 50 pixels on our tree, so 50 RGB values should be sent in each frame. |
| |
| ===== G1 Amp ===== |
| |
| ^ Topic ^ Payload ^ Notes ^ |
| | sound/g1/amp/channel | channel_name | channel name, all caps e.g. HDMI1/AUDIO1. Some macros are stored such as pi/table | |
| | sound/g1/amp/power | on/off | | |
| | sound/g1/amp/volume | up/down | currently this fades up/down the volume by 5dBm, this could be made to set the volume to a specific number, but that could go wrong... | |
===== Misc ===== | ===== Misc ===== |
| |