Documentation IndexFetch the complete documentation index at: /docs/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
Send device state and receive entity commands from Python
from firmngin import Entity relay = Entity(1) temperature = Entity("temperature")
await client.push_entity(relay, "on") await client.push_entity(temperature, 27.5)
batch = client.push_batch_entities() batch.add(relay, "on") batch.add(temperature, 27.5) await batch.send()
from firmngin import EntityCommand @client.on_entity(relay) async def handle_relay(command: EntityCommand) -> None: print("relay:", command.value)
pip install firmngin[http]
camera = Entity("camera") await client.upload_image(camera, "snapshot.jpg")